happeak / laravel-happeak
v0.3.1
2017-08-16 15:11 UTC
Requires
- php: ~7.0
- happeak/api-client: ^3.3
- predis/predis: ^1.1
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is auto-updated.
Last update: 2018-02-07 11:11:38 UTC
README
在Laravel应用程序和Happeak.ru API库之间的小层
安装
可以使用composer安装此包
composer require happeak/laravel-happeak
将ServiceProvider添加到config/app.php文件中的providers数组中
Happeak\LaravelHappeak\NexusServiceProvider::class,
加载配置文件
php artisan vendor:publish --provider="Happeak\Nexus\NexusServiceProvider"
服务已准备就绪。
使用示例
class ProductController extends Controller
{
public function index(LaravelHappeakContract $happeak)
{
...
$products = $happeak->products(['ids' => [1,2,3]]);
...
}
}