PHPackages                             foxworn3365/topphp - 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. foxworn3365/topphp

ActiveLibrary[API Development](/categories/api)

foxworn3365/topphp
==================

An unofficial Object Oriented API wrapper for top.gg written in PHP .

v0.7(3y ago)05MITPHPPHP &gt;=8.0

Since Mar 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/FoxWorn3365/TopPHP)[ Packagist](https://packagist.org/packages/foxworn3365/topphp)[ RSS](/packages/foxworn3365-topphp/feed)WikiDiscussions main Synced today

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

TopPHP2 - The ultimate API wrapper for [top.gg](https://top.gg/)
================================================================

[](#topphp2---the-ultimate-api-wrapper-for-topgg)

**TopPHP2** is the **unofficial** successor of [TopPHP](https://github.com/top-gg/php-sdk). This library, unlike its predecessor has many advantages that will allow you safe, easy and complete integration of the library with whatever development environment you are using.

What is different from TopPHP?
------------------------------

[](#what-is-different-from-topphp)

- Webhook integration and management with [ReactPHP](https://github.com/reactphp).
- Built-in small, simple and PHP-native cache system.
- Object oriented.
- Internal exception management.
- Fully documented with code examples.

What can you do with this library?
----------------------------------

[](#what-can-you-do-with-this-library)

- Getting bots informations.
- Getting users informations.
- Checking if an user has voted your bot.
- Checking if an user has voted your bot **but** with webhooks *yey*
- Update your bot's stats.

Documentation
-------------

[](#documentation)

See [here](/docs.md) for the official information. **[HERE](https://foxworn3365.github.io/TopPHP/TopPHP) you can access to the Class Reference**

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

[](#installation)

TopPHP uses composer to download. In order to install the library, use the following line:

`composer require foxworn3365/topphp`

Why the library's namespace is `TopPHP` and not `TopPHP2`?
----------------------------------------------------------

[](#why-the-librarys-namespace-is-topphp-and-not-topphp2)

Good question dear detective-programmer friend, simply because the namespace of the former library (TopPHP) is not `\TopPHP` but rather `\DBL` therefore we take advantage of it 😎

Coming Soon
-----------

[](#coming-soon)

- Forced library global rate-limiting.

Contact me
----------

[](#contact-me)

You can be a cool person and contact me via:

- Email: `foxworn3365@gmail.com`
- Discord: `FoxWorn#0001`

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

1194d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/44c9b3207b141026e35c2a63a5773f563ca278bd5ede43a2cbdbce6e5c183718?d=identicon)[FoxWorn3365](/maintainers/FoxWorn3365)

---

Top Contributors

[![FoxWorn3365](https://avatars.githubusercontent.com/u/61429263?v=4)](https://github.com/FoxWorn3365 "FoxWorn3365 (5 commits)")

---

Tags

phpphp-libraryphp8topggtopgg-apitopgg-phptopgg-sdktopgg-webhooks

### Embed Badge

![Health badge](/badges/foxworn3365-topphp/health.svg)

```
[![Health](https://phpackages.com/badges/foxworn3365-topphp/health.svg)](https://phpackages.com/packages/foxworn3365-topphp)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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