PHPackages                             damax/chargeable-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. damax/chargeable-api

AbandonedArchivedLibrary[API Development](/categories/api)

damax/chargeable-api
====================

Charge credit for API calls.

v1.3.0(7y ago)362MITPHPPHP ^7.1

Since Jul 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/damax-solutions/php-chargeable-api)[ Packagist](https://packagist.org/packages/damax/chargeable-api)[ RSS](/packages/damax-chargeable-api/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (8)Versions (11)Used By (0)

Damax Chargeable API
====================

[](#damax-chargeable-api)

[![Build Status](https://camo.githubusercontent.com/3bebd45e8480aeb59183f17881b8a80213a5b84ee7f7401ee968bddbb300f0f8/68747470733a2f2f7472617669732d63692e6f72672f64616d61782d736f6c7574696f6e732f7068702d63686172676561626c652d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/damax-solutions/php-chargeable-api) [![Coverage Status](https://camo.githubusercontent.com/a9326adfd29398e7ae2af9ddf8a3f41528d0b0c38bdfbf6a27958ac11f9f183c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f64616d61782d736f6c7574696f6e732f7068702d63686172676561626c652d6170692f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/damax-solutions/php-chargeable-api?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/ee427985987430bd4943597c739fd226cccfb47ffc5c26c50eb50264c2fccbe8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616d61782d736f6c7574696f6e732f7068702d63686172676561626c652d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/damax-solutions/php-chargeable-api/?branch=master)

Charge credit for API calls. Provides integration with [Symfony Framework](https://github.com/symfony/symfony).

See [example](examples/processor.php).

Features
--------

[](#features)

- Withdraw credit from user's wallet for specific URLs of your API.
- Deny access to the service if user has insufficient funds.
- Specify different prices for various endpoints.
- Use console commands to review user's balance, deposit and withdraw credit.
- Support for various wallets: *Redis*, *MongoDB*, wallet with *fixed* credit amount or implement your own.
- Subscribe to API purchase events to notify your application and act accordingly.

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

[](#documentation)

Topics:

- [Installation](doc/installation.md)
- [Concepts](doc/concepts.md)
- [Configuration](doc/configuration.md)
- [Usage](doc/usage.md)

Contribute
----------

[](#contribute)

Install dependencies and run tests:

```
$ make
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~25 days

Recently: every ~52 days

Total

10

Last Release

2690d ago

Major Versions

0.1.1 → 1.0.02018-07-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccd032c3ed1d57f71577212cb7d1b913cc6fc8b0b2bbeff4782d384116002dc1?d=identicon)[lakiboy](/maintainers/lakiboy)

---

Top Contributors

[![lakiboy](https://avatars.githubusercontent.com/u/1089265?v=4)](https://github.com/lakiboy "lakiboy (58 commits)")

---

Tags

apibundlepaymentphpsymfonysymfony-bundle

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/damax-chargeable-api/health.svg)

```
[![Health](https://phpackages.com/badges/damax-chargeable-api/health.svg)](https://phpackages.com/packages/damax-chargeable-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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