Releases: rubricate/arr
v4.0.0
Major structural release upgrading the core array engine to target PHP 8.2+. This version introduces a robust, modern API, native strict typing enforcement, and an expanded suite of powerful utility features for matrix manipulation.
What's Changed
Architecture & PHP 8.2 Enhancements
- Strict Types Enforcement: Integrated
declare(strict_types=1);natively across all interfaces and the concreteStemArrimplementation. - Modern Engine Compliance: Cleaned up internal syntax and formatting to strictly comply with PSR-12/PER standards.
- Upgraded package requirements to lock minimum environment compatibility to PHP
^8.2.
New Utility Features (Expanded API)
- Validation Drivers:
isMulti: Detects multidimensional arrays using fast short-circuit evaluations.isAssoc: Validates associative structures leveraging the nativearray_is_listnegation layer.
- Advanced Sorting: Dedicated
sortandsortDescmethods ensuring immutable data treatment while preserving key-value association indices viaasort/arsort. - Element Extraction: Added
randomto safely extract single elements or custom length slices without overflow errors. - Payload Filtering: Introduced
only(whitelist filtering) andexcept(blacklist removal) for fast data sanitization. - Matrix Flattening: Added
flattento collapse complex nested arrays into a single, linear one-dimensional array.
v3.0.0
Major release upgrading the core array package to target PHP 8.0+. This version leverages modern language engines to introduce advanced typing mechanisms and cleaner interface designs.
What's Changed
PHP 8.0 Modernization
- Advanced Type Safety: Integrated native Union Types (
string|int) and the globalmixedtypehint into argument definitions. - Strict Syntax Alignment: Re-formatted internal method returns and structural setups to comply with modern PSR-12/PER code quality standards.
- Upgraded configuration baselines to lock engine execution requirements to PHP
>=8.0.
v2.2.0
Stable release upgrading the array component's engine to support PHP 7.2. This version introduces initial native scalar type safety while keeping the exact same architecture and signatures inherited from the v1.x series.
What's Changed
PHP 7.2 Optimization & Type Hints
- Upgraded package constraints to require a minimum of PHP
>=7.2. - Integrated native scalar type hints (
array,string,int,bool) across all contract blueprints and methods. - Enhanced execution routine speeds by eliminating legacy docblock validations in favor of engine-level typing.
v1.0.0
Initial stable release of the Rubricate Array component. This package delivers a lightweight, focused matrix abstraction engine designed to work seamlessly under legacy object-oriented environments.
What's Included
Core Structural Layer
- Interface Segregation: Split array manipulation blueprints across dedicated interfaces (
IGetArr,IKeyCount, andIStemArr). - Concrete Lifecycle Implementation: Added the
StemArrdriver implementing the key validation and element counting protocols. - Legacy Compatibility: Full structural compliance with PHP
>=5.4architectures.