raphaelb / clashofapi
Laravel package for the usage of the official 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-10-25 16:11:39 UTC
README
Laravel package providing additional functionality to the official Clash Of Clans API.
Composer require
"raphaelb/clashofapi": "~3.0"
API Key
Before this is going to work you need to get an api key from https://developer.clashofclans.com/#/
Insert this into your .env file.
CLASH_KEY=yourapikeyhere
Example
public function someMethodBeingCalled() { $clans = app()->make('clash') ->getClans(['name' => 'Clans', 'limit' => '20']); return view('yourview', compact('clans')); }
In-depth examples
Please check the examples.md file.
License
Raphael Bronsveld - MIT Licensed
Suggestions? E-mail me at raphaelbronsveld@outlook.com