ddelrio1986 / superheroes
获取超级英雄名称
1.0.0
2016-01-26 17:48 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.1
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-09-14 17:59:02 UTC
README
获取超级英雄名称
Packagist: ddelrio1986/superheroes
安装
$ composer require ddelrio1986/superheroes
示例用法
use DDelrio1986\Superheroes\Superheroes; $superheroes = new Superheroes; $superheroes->random(); //=> 'Spider-Ham'
快速API参考
$superheroes->all
类型: array
按字母顺序排列的超级英雄名称。
$superheroes->random()
类型: function
随机超级英雄名称。
命令行界面使用
$ ./bin/ddelrio1986-superheroes.php
Spider-Ham
$ ./bin/ddelrio1986-superheroes.php -a|--all
3-D Man
A-Bomb
...
运行单元测试
phpunit
许可证
MIT © Daniel Del Rio