Download the PHP package slpxxv/stdlib without Composer
On this page you can find all versions of the php package slpxxv/stdlib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download slpxxv/stdlib
More information about slpxxv/stdlib
Files in slpxxv/stdlib
Package stdlib
Short Description An extension to the Standard PHP Library (SPL), introducing abstract data types like stacks, maps, and hash maps. Enjoy the benefits of class-based functions in PHP with an intuitive and object-oriented API.
License MIT
Informations about the package stdlib
slpxxv/stdlib
StdLib is an extension to the Standard PHP Library (SPL), introducing abstract data types like stacks, maps, and hash maps. Enjoy the benefits of class-based functions in PHP with an intuitive and object-oriented API.
Features
- Extended Abstract Data Types: Augment your PHP experience with extended abstract data types, such as stacks, maps, and hash maps, providing powerful and versatile tools for data manipulation.
- Class-Based Functions: Enjoy the benefits of PHP class-based functions, offering a more organized and object-oriented approach to handling various tasks.
- Object-Oriented API: Leverage an intuitive and object-oriented API for seamless integration and utilization of the extended SPL features.
Installation
Install the Standard Library for PHP using Composer:
Collections
ArrayCollection preserves keys and provides non-mutating functional operations:
StdArray remains available as a compatibility layer. New code should prefer
ArrayCollection and isEmpty() over StdArray and empty().
Maps and sets
Maps distinguish a missing key from a key containing null:
Sets reject duplicate values and support standard set operations:
Lazy sequences
LazySequence evaluates its source only during iteration:
The factory is called for each iteration. Pass a factory instead of a bare
Iterator when the source needs to be repeatable.
XML
Canonicalization algorithms have a typed representation:
DOMDocumentFactory disables network access by default, rejects DOCTYPE, and
restores the global libxml error state after success or failure.
Development
Development commands:
Rector is installed with project dependencies. Infection should be installed as an isolated PHAR or global tool because Composer releases compatible with PHP 8.1 conflict with the parser versions required by the current PHPUnit and Psalm. The official Infection PHAR is the recommended distribution:
The repository includes .editorconfig, rector.php and infection.json5, so
editors and tools use the same project settings locally and in CI.
License
The MIT License (MIT). Please see License for more information.
All versions of stdlib with dependencies
ext-dom Version *
ext-libxml Version *