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

This package is auto-updated.

Last update: 2023-02-17 23:54:49 UTC


README

Build Status Coverage Status Scrutinizer Code Quality

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