php-ds / php-ds
Specialized data structures as alternatives to the PHP array
Installs: 5 839 713
Dependents: 147
Suggesters: 4
Security: 0
Stars: 400
Watchers: 18
Forks: 47
Open Issues: 15
Requires
- php: >=7.0
- ext-json: *
Requires (Dev)
- php-ds/tests: ^1.5
Suggests
- ext-ds: to improve performance and reduce memory usage
Provides
- ext-ds: 1.5.0
This package is auto-updated.
Last update: 2024-12-03 21:26:59 UTC
README
This is a compatibility polyfill for the extension. You should include this package as a dependency of your project to ensure that your codebase would still be functional in an environment where the extension is not installed. The polyfill will not be loaded if the extension is installed and enabled.
Install
composer require php-ds/php-ds
You can also require that the extension be installed using ext-ds
.
Test
composer install
composer test
Make sure that the ds extension is not enabled, as the polyfill will not be loaded if it is. The test output will indicate whether the extension is active.
Contributing
Please see CONTRIBUTING for more information.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.