Skip to content

Array Model — Initial Release

Choose a tag to compare

@basantashubhu basantashubhu released this 15 Apr 06:33
· 1 commit to main since this release

Array Model — Initial Release

First public release of basanta/array-model, a lightweight Laravel-friendly package for model-like operations on in-memory arrays.

Highlights

  • In-memory model class support (no database required)
  • Collection-style querying with where() and multi-condition filters
  • Bulk update() and delete() on filtered records
  • Relationship support:
    • hasMany
    • hasOne
    • belongsTo
  • Lazy loading support:
    • On first property access (e.g. $user->posts)
    • Bulk relationship loading via Model::load(...)

Installation

composer require basanta/array-model