a2sc/chuck-norris-jokes
Composer 安装命令:
composer require a2sc/chuck-norris-jokes
包简介
Create random Chuck Norris jokes.
README 文档
README
Create random Chuck Norris Jokes using the API from The Internet Chuck Norris Database
Purpose
This package is a test example package from the Marcel Pociot's PHP Package Development Serie. The must see serie to learn how to create a package!
This is the "Hello World" package build within the serie to learn how to properly create a PHP package and publish it on Packagist and understand all the caveats.
Requirement
PHP version 7.2+
Installation
Via Composer
composer require a2sc/chuck-norris-jokes
Usage
use A2sc\ChuckNorrisJokes\JokeFactory; $jokes = new JokeFactory(); $joke = $jokes->getRandomJoke();
Within Laravel project:
You can use the Facade:
$joke = ChuckNorris::getRandomJoke();
You can use artisan command:
php artisan chuck-norris
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-22