Description
The collection classes provide a set of tools to manipulate arrays or Traversable objects. If you have ever used underscore.js, you have an idea of what you can expect from the collection classes.
Cake Collection alternatives and similar libraries
Based on the "Data Structure and Storage" category.
Alternatively, view Cake Collection alternatives based on common mentions on social networks and blogs.
-
Porter
:lipstick: Durable and asynchronous data imports for consuming data at scale and publishing testable SDKs. -
CRUDlex
CRUDlex is an easy to use CRUD generator for Symfony 4 and Silex 2 which is great for auto generated admin pages
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Cake Collection or a related project?
README
CakePHP Collection Library
The collection classes provide a set of tools to manipulate arrays or Traversable objects. If you have ever used underscore.js, you have an idea of what you can expect from the collection classes.
Usage
Collections can be created using an array or Traversable object. A simple use of a Collection would be:
use Cake\Collection\Collection;
$items = ['a' => 1, 'b' => 2, 'c' => 3];
$collection = new Collection($items);
// Create a new collection containing elements
// with a value greater than one.
$overOne = $collection->filter(function ($value, $key, $iterator) {
return $value > 1;
});
The Collection\CollectionTrait
allows you to integrate collection-like features into any Traversable object
you have in your application as well.
Documentation
Please make sure you check the official documentation
*Note that all licence references and agreements mentioned in the Cake Collection README section above
are relevant to that project's source code only.