Registry / utility / php-ds-php-ds

php-ds-php-ds

JSON →
library2.0.1phppackagistunverified

Specialized data structures as alternatives to the PHP array.

composer require php-ds/php-ds
INSTALL
IMPORT
SIG · PHP-DS-PHP-DS
P
php-ds-php-ds
utilityphpv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Map
use Ds\Map;

Create and use a Ds\Map.

use Ds\Map; $map = new Map(['a' => 1, 'b' => 2]); echo $map->get('a'); // 1
Debug
Known issues
breakingRequires PHP 7.0+ and the ds extension or polyfill.
fix
Install the ds extension via PECL or use the polyfill package.
affects: >=2.0.0
Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
1
Resources
php-ds-php-ds — pip install php-ds-php-ds · libregistry