定制 a2sc/chuck-norris-jokes 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist Build Status

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

MIT

统计信息

  • 总下载量: 12
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-01-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固