turbolabit / php-foreachable
PHP 特性:创建自定义数据集/集合
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-09-27 12:37:31 UTC
README
PHP 特性:创建自定义数据集/集合
📦 使用 composer 安装
composer require turbolabit/php-foreachable:dev-main
🏗️ 创建您的数据集/集合
现在您可以使用了
<?php $collListing = new Listing(); foreach($collListing as $oneItem) { // .. }
🧪 测试它
git clone git@github.com:TurboLabIt/php-foreachable.git
cd php-foreachable
bash script/test_runner.sh