PHPackages                             tobymaxham/megapi-brawlstars - 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. tobymaxham/megapi-brawlstars

ActiveLibrary[API Development](/categories/api)

tobymaxham/megapi-brawlstars
============================

This package can be used to interact with the MegAPI and the Brawl Stars API.

1.0.0(1y ago)06MITPHPPHP &gt;=8.2

Since Mar 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/TobyMaxham/megapi-brawlstars)[ Packagist](https://packagist.org/packages/tobymaxham/megapi-brawlstars)[ Docs](https://github.com/TobyMaxham/megapi-brawlstars)[ RSS](/packages/tobymaxham-megapi-brawlstars/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

[![TobyMaxham MegAPI Brawl Stars Endpoint](https://camo.githubusercontent.com/aec3751d7d12f58bd905c1b30b5d22aefd9c88abb2d5a5f38c0b1ba72a27092d/68747470733a2f2f736f6369616c6966792e6769742e63692f746f62796d617868616d2f6d65676170692d627261776c73746172732f696d6167653f6465736372697074696f6e3d3126666f6e743d52616c65776179266973737565733d31266c616e67756167653d31266f776e65723d31267061747465726e3d436861726c696525323042726f776e2670756c6c733d31267374617267617a6572733d31267468656d653d4c69676874)](https://socialify.git.ci/tobymaxham/megapi-brawlstars?description=1&font=Raleway&issues=1&language=1&owner=1&pattern=Charlie%20Brown&pulls=1&stargazers=1&theme=Light)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2368ae89b4701eaa6d58a40a83a2f1e105860e043aec1448f2e380a16d77e670/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f62796d617868616d2f6d65676170692d627261776c73746172732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/megapi-brawlstars)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/d7d5b814707a99b5b1e24f9917c9b081793d3e92ae72a4facefada9674312914/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f62796d617868616d2f6d65676170692d627261776c73746172732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tobymaxham/megapi-brawlstars)[![Support me on Patreon](https://camo.githubusercontent.com/cef3268299ac4e91c241041bc589061c18d2c61f9e8393f33907c2fb23fe11be/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e742e7376673f75726c3d6874747073253341253246253246736869656c6473696f2d70617472656f6e2e76657263656c2e617070253246617069253346757365726e616d65253344546f62796d617868616d25323674797065253344706174726f6e73267374796c653d666c6174)](https://patreon.com/Tobymaxham)

This Package provides a wrapper for the [MegAPI](https://megapi.de) API for Brawl Stars.

You are free to use this package, but please note that you need an active account on [MegAPI](https://megapi.de) to use the service.

The MegAPI is a service by [Zhylon.net](https://id.zhylon.net/).

For the Brawl Stars API, refer to the [Brawl Stars API Documentation](https://developer.brawlstars.com/#/).

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require tobymaxham/megapi-brawlstars
```

Usage
-----

[](#usage)

To register a new endpoint to the MegAPI, you can use the following code:

```
