Skip to content

Releases: rubricate/arr

v4.0.0

29 Jun 00:05

Choose a tag to compare

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 concrete StemArr implementation.
  • 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 native array_is_list negation layer.
  • Advanced Sorting: Dedicated sort and sortDesc methods ensuring immutable data treatment while preserving key-value association indices via asort/arsort.
  • Element Extraction: Added random to safely extract single elements or custom length slices without overflow errors.
  • Payload Filtering: Introduced only (whitelist filtering) and except (blacklist removal) for fast data sanitization.
  • Matrix Flattening: Added flatten to collapse complex nested arrays into a single, linear one-dimensional array.

v3.0.0

28 Jun 23:42

Choose a tag to compare

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 global mixed typehint 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

28 Jun 23:40

Choose a tag to compare

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

28 Jun 23:39

Choose a tag to compare

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, and IStemArr).
  • Concrete Lifecycle Implementation: Added the StemArr driver implementing the key validation and element counting protocols.
  • Legacy Compatibility: Full structural compliance with PHP >=5.4 architectures.