PHPackages                             polakosz/clash-of-clans-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. polakosz/clash-of-clans-api

AbandonedArchivedLibrary[API Development](/categories/api)

polakosz/clash-of-clans-api
===========================

PHP wrapper for SuperCell's official ClashOfClans API.

v2.1.0(8y ago)017MITPHPPHP &gt;=5.3.0

Since Mar 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/PoLaKoSz/ClashOfClansAPI)[ Packagist](https://packagist.org/packages/polakosz/clash-of-clans-api)[ Docs](https://github.com/PoLaKoSz/ClashOfClansAPI)[ RSS](/packages/polakosz-clash-of-clans-api/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (2)Used By (0)

Clash Of Clans API
==================

[](#clash-of-clans-api)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2ecea7b56ae08b90a11d8700ac99e04fc4a7029e4254d3f5186cb6b3e7e34a9d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c616b6f737a2f636c6173682d6f662d636c616e732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polakosz/clash-of-clans-api)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/0b220afc99c0c6c89b752a9089b2e264febb724c99d420532bd3154b213698f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706f6c616b6f737a2f636c6173682d6f662d636c616e732d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/polakosz/clash-of-clans-api)

Install
-------

[](#install)

Via Composer

```
$ composer require polakosz/clash-of-clans-api
```

Usage
-----

[](#usage)

```
use PoLaKoSz\ClashOfClansAPI as CoC;
...
$apiKey = 'eyJ0eX...';
$api = new CoC\ClashOfClansApi($apiKey);
$response = $api->getClanyByTag('#Y0PPL9V');

echo $response;
```

Testing
-------

[](#testing)

See [this](https://github.com/PoLaKoSz/ClashOfClansAPI/issues/5) issue.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Tom PoLáKoSz](https://github.com/PoL%C3%A1KoSz)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4ac08d91c2738e59431a0b4c0dd0bdef8d939f213a296955bd3ca2810b9f84a?d=identicon)[PoLáKoSz](/maintainers/PoL%C3%A1KoSz)

---

Top Contributors

[![1n9i9c7om](https://avatars.githubusercontent.com/u/5725457?v=4)](https://github.com/1n9i9c7om "1n9i9c7om (26 commits)")[![PoLaKoSz](https://avatars.githubusercontent.com/u/1327533?v=4)](https://github.com/PoLaKoSz "PoLaKoSz (16 commits)")[![RepeaterCreeper](https://avatars.githubusercontent.com/u/2164489?v=4)](https://github.com/RepeaterCreeper "RepeaterCreeper (2 commits)")[![tom982](https://avatars.githubusercontent.com/u/10913121?v=4)](https://github.com/tom982 "tom982 (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

---

Tags

apiclansclashclash-of-clansofsupercellwrapperapiwrapperPoLáKoSzClashOfClansAPICoCSuperCell

### Embed Badge

![Health badge](/badges/polakosz-clash-of-clans-api/health.svg)

```
[![Health](https://phpackages.com/badges/polakosz-clash-of-clans-api/health.svg)](https://phpackages.com/packages/polakosz-clash-of-clans-api)
```

###  Alternatives

[gabrielbull/ups-api

PHP UPS API

4562.3M10](/packages/gabrielbull-ups-api)[wtfzdotnet/php-tmdb-api

PHP wrapper for TMDB (TheMovieDatabase) API v3. Supports two types of approaches, one modelled with repositories, models and factories. And the other by simple array access to RAW data from The Movie Database.

4242.9k](/packages/wtfzdotnet-php-tmdb-api)[walle89/swedbank-json

Unofficial API client for the Swedbank's and Sparbanken's mobile apps in Sweden.

752.5k](/packages/walle89-swedbank-json)[lasserafn/php-dinero

Dinero REST wrapper for PHP

115.2k](/packages/lasserafn-php-dinero)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
