raphaelb / clashofapi
Laravel 包,用于官方 Clash of Clans API 的使用。
v3.0.0
2017-10-16 19:45 UTC
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: ^6.1
Requires (Dev)
- mockery/mockery: ^0.9.4
- orchestra/testbench: ~3.0
- phpunit/phpunit: 5.*
- scrutinizer/ocular: ~1.3
- squizlabs/php_codesniffer: ~3.0
This package is not auto-updated.
Last update: 2024-09-13 15:43:13 UTC
README
Laravel 包,为官方 Clash Of Clans API 提供附加功能。
Composer 需求
"raphaelb/clashofapi": "~3.0"
API 密钥
在以下功能开始工作之前,您需要从 https://developer.clashofclans.com/#/ 获取一个 API 密钥
将其插入到您的 .env 文件中。
CLASH_KEY=yourapikeyhere
示例
public function someMethodBeingCalled() { $clans = app()->make('clash') ->getClans(['name' => 'Clans', 'limit' => '20']); return view('yourview', compact('clans')); }
详细示例
请查看 examples.md 文件。
许可
有建议?请通过电子邮件联系我 raphaelbronsveld@outlook.com