Download the PHP package pragmarx/coollection without Composer
On this page you can find all versions of the php package pragmarx/coollection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pragmarx/coollection
More information about pragmarx/coollection
Files in pragmarx/coollection
Package coollection
Short Description Laravel Illuminate collection with objectified properties
License MIT
Homepage https://github.com/antonioribeiro/coollection
Informations about the package coollection
Coollection
Access collection items as objects properties
Coollection is Laravel's Illuminate\Collection repackaged to be used as all properties were objects:
Tightenco\Collect
To be agnostic and have complete idependence from Laravel's, but also to allow it to be used in Laravel applications, this package extends Tightenco\Collect, developed by Matt Stauffer from Tighten.
Why?
Answering with a question: which one is easier to look at?
or
Isn't this easier on the eyes?
Or you prefer this one?
Used with Laravel request it is useful, if you receive:
You collect()
it:
And you can just:
Instead of:
You can also use "dot notation" to get your items:
PHP Agnostic
This is an agnostic PHP package, an extraction of Illuminate\Support\Collection with all needed classes, interfaces and traits. For that if you wish just to use Illuminate's Collection, you just have to import the class Collection:
or use the usual helper:
Documentation
It's Laravel's Collection, at full power, so you can check its docs. The only difference is that you can access items (array keys) as properties, like any other PHP object:
Install
Via Composer
Usage
Instantiate, the class directly or using the helper:
Then you use it as an object:
One word keys are case insensitive:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- This package is an extension of Tightenco\Collect, developed by Matt Stauffer from Tighten.
- Tightenco\Collect is an extraction of The Laravel Framework's Collection, created by Taylor Otwell.
- Package creator Antonio Carlos Ribeiro
- Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of coollection with dependencies
pragmarx/ia-collection Version ~5.0|~6.0|~7.0
pragmarx/ia-str Version ~5.0|~6.0|~7.0
pragmarx/ia-arr Version ~5.0|~6.0|~7.0