sensiolabs / melody
此包已被废弃且不再维护。没有建议的替代包。
一个 composer 脚本文件
dev-master
2019-06-01 06:25 UTC
Requires
- php: >=5.5
- symfony/console: ^3.1
- symfony/filesystem: ^2.5|^3.0
- symfony/finder: ^2.5|^3.0
- symfony/process: ^2.5|^3.0
- symfony/yaml: ^2.5|^3.0
Requires (Dev)
- mikey179/vfsstream: ~1.4
- phpunit/phpunit: 4.3.*
This package is not auto-updated.
Last update: 2023-07-06 10:06:04 UTC
README
创建一个名为 test.php
的文件
<?php <<<CONFIG packages: - "symfony/finder: ~2.8" CONFIG; $finder = Symfony\Component\Finder\Finder::create() ->in(__DIR__) ->files() ->name('*.php') ; foreach ($finder as $file) { echo $file, "\n"; }
然后简单地运行它
$ melody run test.php
更多信息
阅读 文档 获取更多信息。