{"id":90245,"library":"ramsey-collection","title":"ramsey/collection","description":"A PHP library for representing and manipulating collections.","status":"active","version":"2.1.1","language":"php","source_language":null,"source_url":"https://github.com/ramsey/collection","tags":["collections","data-structures","utility","typed"],"install":[{"cmd":"composer require ramsey/collection","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Collection","correct":"use Ramsey\\Collection\\Collection;"}],"quickstart":{"code":"use Ramsey\\Collection\\Collection;\n\n$collection = new Collection('int', [1, 2, 3]);\n$collection->add(4);","lang":"php","description":"Create a typed collection and add elements"},"warnings":[{"fix":"Use PHP 8.0 or later, or use untyped collections with older versions","message":"Requires PHP 8.0+ for typed collections","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'collect':9,10 'data':12 'data-structur':11 'librari':4 'manipul':8 'php':3 'ramsey/collection':1 'repres':6 'structur':13 'type':15 'util':14","created_at":"2026-06-19T08:59:54.541822+00:00","updated_at":"2026-06-19T08:59:54.541822+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/ramsey/collection","github":"https://github.com/ramsey/collection","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}}