Skip to content

RaphaelBronsveld-zz/clash-of-api

Repository files navigation

Laravel logo Clash Of API

Laravel package providing additional functionality to the official Clash Of Clans API.

Build Status GitHub Version StyleCI Total Downloads License

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