raphaelb/clashofapi

Laravel 包,用于官方 Clash of Clans API 的使用。

v3.0.0 2017-10-16 19:45 UTC

This package is not auto-updated.

Last update: 2024-09-13 15:43:13 UTC


README

Laravel 包,为官方 Clash Of Clans API 提供附加功能。

Build Status GitHub Version StyleCI Total Downloads License

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 文件。

许可

Raphael Bronsveld - MIT 许可证

有建议?请通过电子邮件联系我 raphaelbronsveld@outlook.com