PHPackages                             aidbull/dc-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. aidbull/dc-api

ActiveLibrary[API Development](/categories/api)

aidbull/dc-api
==============

Client service for Debit Cards API. Made for Fayrix.

00PHP

Since Apr 7Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/aidbull/dc-api)[ Packagist](https://packagist.org/packages/aidbull/dc-api)[ RSS](/packages/aidbull-dc-api/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

⭐ dc-api
========

[](#-dc-api)

Debit Card API for Fayrix.

Endpoints
---------

[](#endpoints)

Cards:

methodroutedesc\[GET\]/cards/:idget the card info\[GET\]/cards/:id/balancegets the balance of the card\[GET\]/cards/:id/pingets the pin code of the card\[GET\]/cards/:id/historyget a list of transaction history, expects a timeframe (end &amp; start dates)\[POST\]/cards/createcreates a new debit card\[POST\]/cards/:id/deactivatedeactivates a card\[POST\]/cards/:id/activateactivates a card\[POST\]/cards/:id/updateupdates the card info\[POST\]/cards/:id/updatePinupdates the pin of the card\[POST\]/cards/:id/loadloads card with a balance, expects to get the amount to load as a parameterCountries:

methodroutedesc\[GET\]/countriesa list of the available countries\[GET\]/countries/:idget a specific countryAPI-client services
-------------------

[](#api-client-services)

- CardService's methods:

    - get(int $cardId): CardDTO
    - balance(int $cardId): float|null
    - pin(int $cardId): int|null
    - history(int $cardId, DateTime $startDate, DateTime $endDate)
    - create(CardDTO $cardData): CardDTO|null
    - activate(int $cardId)
    - deactivate(int $cardId)
    - update(int $cardId, CardDTO $cardData)
    - updatePin(int $cardId, int $cardPin)
    - load(int $cardId, int $amount)
- CountryService's methods:

    - \_\_invoke(): CountryDTO\[\]
    - get(int $countryId): CountryDTO|null

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

[](#installation)

Add a package via composer:

```
composer require aidbull/dc-api

```

Register service provider (to set config):

```
php artisan vendor:publish --tag=config --provider="DebitCardsAPI\DebitCardsAPIServiceProvider"

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance56

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40740573?v=4)[$billyHomeless](/maintainers/aidbull)[@aidbull](https://github.com/aidbull)

---

Top Contributors

[![aidbull](https://avatars.githubusercontent.com/u/40740573?v=4)](https://github.com/aidbull "aidbull (13 commits)")

### Embed Badge

![Health badge](/badges/aidbull-dc-api/health.svg)

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

###  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)
