turbolabit / php-foreachable
A PHP Trait to create custom DataSets/Collections
dev-main
2024-08-27 12:27 UTC
Requires
- php: ^8.0
Requires (Dev)
- phpunit/phpunit: @stable
This package is auto-updated.
Last update: 2024-10-27 12:47:05 UTC
README
A PHP Trait to create custom DataSets/Collections
📦 Install it with composer
composer require turbolabit/php-foreachable:dev-main
🏗️ Create your DataSet/Collection
You can now use it:
<?php $collListing = new Listing(); foreach($collListing as $oneItem) { // .. }
🧪 Test it
git clone git@github.com:TurboLabIt/php-foreachable.git
cd php-foreachable
bash script/test_runner.sh