samluvanda/collection

A fluent, chainable Collection class for PHP inspired by Laravel, JavaScript, and C#.

v1.0.0 2025-06-07 19:28 UTC

This package is auto-updated.

Last update: 2025-06-11 05:15:27 UTC


README

A fluent, chainable, and extensible Collection class for PHP — inspired by Laravel Collections, JavaScript arrays, and C# LINQ.

🚀 Installation

composer require samluvanda/collection

✨ Features

  • Dot notation access (get('user.profile.name'))
  • Array and object support
  • Immutable and chainable methods
  • Functional utilities: map, filter, reduce, pluck, etc.

📚 Documentation

❤️ Sponsor this Project

Support continued development and maintenance by becoming a sponsor:
👉 https://github.com/sponsors/samluvanda