{"id":88266,"library":"php-ds-php-ds","title":"PHP Data Structures","description":"Specialized data structures as alternatives to the PHP array.","status":"active","version":"2.0.1","language":"php","source_language":null,"source_url":"https://github.com/php-ds/polyfill","tags":["data-structures","collections","php","ds"],"install":[{"cmd":"composer require php-ds/php-ds","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Map","correct":"use Ds\\Map;"}],"quickstart":{"code":"use Ds\\Map;\n\n$map = new Map(['a' => 1, 'b' => 2]);\necho $map->get('a'); // 1","lang":"php","description":"Create and use a Ds\\Map."},"warnings":[{"fix":"Install the ds extension via PECL or use the polyfill package.","message":"Requires PHP 7.0+ and the ds extension or polyfill.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'altern':8 'array':12 'collect':16 'data':2,5,14 'data-structur':13 'ds':18 'php':1,11,17 'special':4 'structur':3,6,15","created_at":"2026-06-19T08:29:49.367929+00:00","updated_at":"2026-06-19T08:29:49.367929+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/php-ds/polyfill","github":"https://github.com/php-ds/polyfill","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}