Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

damax-solutions/php-chargeable-api

Repository files navigation

Damax Chargeable API

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