PHPackages                             sadovojav/bitcart-sdk-php - 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. sadovojav/bitcart-sdk-php

ActiveLibrary[API Development](/categories/api)

sadovojav/bitcart-sdk-php
=========================

Bitcart API PHP client library.

339[1 issues](https://github.com/sadovojav/bitcart-sdk-php/issues)PHP

Since Aug 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sadovojav/bitcart-sdk-php)[ Packagist](https://packagist.org/packages/sadovojav/bitcart-sdk-php)[ RSS](/packages/sadovojav-bitcart-sdk-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Bitcart API PHP client library
==============================

[](#bitcart-api-php-client-library)

This library makes it easier to integrate Bitcart in your PHP application.

```
- Package is under development. The main code can completely change
```

Approach
--------

[](#approach)

This library takes an opinionated approach to API with the aim of making your developer life as easy and convenient as possible. For this reason, we have decided to structure arguments a bit differently, but still allow full and advanced use cases.

The general reasoning behind the arguments an API client takes are in this order:

- First the required parameters =&gt; method arguments with NULL not allowed
- Recommended parameters =&gt; method arguments with NULL as default
- Optional parameters =&gt; arguments with NULL as default
- Lastly the advanced parameters =&gt; Inside an extra class

How to use
----------

[](#how-to-use)

```
composer require sadovojav/bitcart-sdk-php

```

```
// Require the autoload file.
require __DIR__ . '/../src/autoload.php';

// Example to create user.
$baseUrl = ''; // e.g. https://your.bitract-server.tld

try {
    // POST /users
    $user = (new \Bitcart\Client\User($baseUrl))->createUser(\Bitcart\DTO\UserDto::fromArray([
       'email' => 'user@example.com',
       'password' => 'some_password',
       'settings' => (new \Bitcart\DTO\SettingsDto()),
    ]));
    var_dump($user);
} catch (\Throwable $e) {
    echo "Error: " . $e->getMessage();
}

```

Checklist
---------

[](#checklist)

 Open
### USERS

[](#users)

- GET /users/stats
- GET /users/me
- POST /users/me/settings
- GET /users/count
- GET /users/{model\_id}
- DELETE /users/{model\_id}
- PATCH /users/{model\_id}
- GET /users
- POST /users
- POST /users/batch

### WALLETS

[](#wallets)

- GET /wallets/history/all
- GET /wallets/history/{model\_id}
- GET /wallets/balance
- GET /wallets/{model\_id}/balance
- GET /wallets/{model\_id}/checkin
- GET /wallets/{model\_id}/channels
- POST /wallets/{model\_id}/channels/open
- POST /wallets/{model\_id}/channels/close
- POST /wallets/{model\_id}/inpay
- GET /wallets/count
- GET /wallets/{model\_id}
- DELETE /wallets/{model\_id}
- PATCH /wallets/{model\_id}
- GET /wallets
- POST /wallets POST /wallets/batch

#### STORES

[](#stores)

- GET /stores/{model\_id}/ping
- PATCH /stores/{model\_id}/checkout\_settings
- PATCH /stores/{model\_id}/theme\_settings
- PATCH /stores/{model\_id}/plugin\_settings
- GET /stores/count
- GET /stores/{model\_id}
- DELETE /stores/{model\_id}
- PATCH /stores/{model\_id}
- GET /stores
- POST /stores
- POST /stores/batch
- GET /stores/{store\_id}/integrations/shopify/{order\_id}

#### INVOICES

[](#invoices)

- GET /invoices/order\_id/{order\_id}
- GET /invoices/export
- PATCH /invoices/{model\_id}/customer
- PATCH /invoices/{model\_id}/details
- GET /invoices/count
- GET /invoices/{model\_id}
- DELETE /invoices/{model\_id}
- PATCH /invoices/{model\_id}
- GET /invoices
- POST /invoices
- POST /invoices/batch

#### PRODUCTS

[](#products)

- GET /products/maxprice
- GET /products/categories
- GET /products/count
- GET /products/{model\_id}
- DELETE /products/{model\_id}
- PATCH /products/{model\_id}
- GET /products
- POST /products
- POST /products/batch

#### PAYOUTS

[](#payouts)

- GET /payouts/count
- GET /payouts/{model\_id}
- DELETE /payouts/{model\_id}
- PATCH /payouts/{model\_id}
- GET /payouts
- POST /payouts
- POST /payouts/batch

#### TOKEN

[](#token)

- GET /token
- POST /token
- GET /token/current
- GET /token/count
- DELETE /token/{model\_id}
- PATCH /token/{model\_id}

### CRYPTOS

[](#cryptos)

- GET /cryptos
- GET /cryptos/supported
- GET /cryptos/rate
- GET /cryptos/fiatlist
- GET /cryptos/tokens/{currency}
- GET /cryptos/tokens/{currency}/abi
- GET /cryptos/explorer/{currency}
- GET /cryptos/rpc/{currency}

Best practices
--------------

[](#best-practices)

- Always use an API key with as little permissions as possible.

Contribute
----------

[](#contribute)

We run static analyzer [Psalm](https://psalm.dev/) and [PHP-CS-fixer](https://github.com/FriendsOfPhp/PHP-CS-Fixer) for codestyle when you open a pull-request. Please check if there are any errors and fix them accordingly.

### Codestyle

[](#codestyle)

We use PSR-12 code style to ensure proper formatting and spacing. You can test and format your code using composer commands. Before doing a PR you can run `composer cs-check` and `composer cs-fix` which will run php-cs-fixer.

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

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://www.gravatar.com/avatar/0c17a869a6d802f11218035a8936a1feb52479d8695584a3a8531442d5ec81bf?d=identicon)[sadovojav](/maintainers/sadovojav)

### Embed Badge

![Health badge](/badges/sadovojav-bitcart-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/sadovojav-bitcart-sdk-php/health.svg)](https://phpackages.com/packages/sadovojav-bitcart-sdk-php)
```

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