damax / chargeable-api
This package is abandoned and no longer maintained.
No replacement package was suggested.
Charge credit for API calls.
v1.3.0
2019-02-17 14:46 UTC
Requires
- php: ^7.1
Requires (Dev)
README
Charge credit for API calls. Provides integration with Symfony Framework.
See example.
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
Topics:
Contribute
Install dependencies and run tests:
$ make