PHPackages                             vragovr/safecrow-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. [HTTP &amp; Networking](/categories/http)
4. /
5. vragovr/safecrow-api

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

vragovr/safecrow-api
====================

SafeCrow API v3 Client

1.0.7(6y ago)08.4k11MITPHPPHP &gt;=7.0.0

Since Mar 14Pushed 6y agoCompare

[ Source](https://github.com/vragovR/safecrow-api)[ Packagist](https://packagist.org/packages/vragovr/safecrow-api)[ RSS](/packages/vragovr-safecrow-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (11)Versions (9)Used By (1)

SafeCrow API v3
===============

[](#safecrow-api-v3)

A PHP wrapper to be used with SafeCrow API v3.

[![Build Status](https://camo.githubusercontent.com/9a87f8b73b95741de6af7c54e505e33d42759d74019399cf78ed22dd220ebb82/68747470733a2f2f7472617669732d63692e6f72672f767261676f76522f7361666563726f772d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vragovR/safecrow-api)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3442afd28b46e43290326d610bc7300ec51521a77bbb9e5239129dd6574cc4dd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f767261676f76522f7361666563726f772d6170692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vragovR/safecrow-api/?branch=master)[![Code Climate](https://camo.githubusercontent.com/b2e7cc74d258c0e730b5fdb3ee8b2e1d53d8ae2199a1242cb025abc0fd823812/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f767261676f76522f7361666563726f772d6170692f6261646765732f6770612e737667)](https://codeclimate.com/github/vragovR/safecrow-api)

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

[](#installation)

### 1: Download

[](#1-download)

```
$ composer require vragovr/safecrow-api "^1.0"
```

### 2: Configure

[](#2-configure)

```
$config = new \SafeCrow\Config('key', 'secret');

$client = new \SafeCrow\Client();

$client->authenticate($config);
```

### 3.1: Usage User Api

[](#31-usage-user-api)

```
# Add user
$user = $client->getUserApi()->add([
    'name' => 'Ivan Ivanov',
    'phone' => '79009996666',
    'email' => 'email@example.org',
]);

# Edit user
$user = $client->getUserApi()->edit([
    'name' => 'Ivan Ivanov',
    'phone' => '79009996666',
    'email' => 'email@example.org',
]);

# All users
$users = $client->getUserApi()->all();

# Show user
$user = $client->getUserApi()->show(1);

# All user orders
$orders = $client->getUserApi()->orders(1);

# Bind user card
$url = $client->getUserApi()->bind(1, [
    'callback_url' => 'https://example.org/success-card',
]);

# All users cards
$cards = $client->getUserApi()->cards([
    'all' => true,
]);
```

### 3.2: Usage Order Api

[](#32-usage-order-api)

```
# Add order
$order = $client->getOrderApi()->add([
    'consumer_id' => 1,
    'supplier_id' => 2,
    'price' => 10000,
    'description' => 'description...',
    'service_cost_payer' => Order::PAYER_HALF, // or Order::PAYER_CONSUMER or Order::PAYER_SUPPLIER
]);

# All order
$orders = $client->getOrderApi()->all();

# Show order
$order = $client->getOrderApi()->show(1);

# Pay order
$url = $client->getOrderApi()->pay([
    'callback_url' => 'https://example.org/success-order',
]);

# Annul order
$order = $client->getOrderApi()->annul([
    'reason' => 'reason...',
]);

# Cancel order
$order = $client->getOrderApi()->cancel([
    'reason' => 'reason...',
]);

# Close order
$order = $client->getOrderApi()->close(1, [
    'reason' => 'reason...',
]);

# Escalate order
$order = $client->getOrderApi()->escalate(1, [
    'reason' => 'reason...',
]);

# Bind card to order
$order = $client->getOrderApi()->bind(1, 1, [
    'supplier_payout_card_id' => 1,
]);
```

### 3.3: Usage Setting Api

[](#33-usage-setting-api)

```
# Show setting
$setting = $client->getSettingApi()->show();

# Edit setting
$setting = $client->getSettingApi()->edit([
    'callback_url' => 'https://example.org/callback-order',
]);
```

### 3.4: Usage Calculate Api

[](#34-usage-calculate-api)

```
# Calculate
$calculate = $client->getCalculateApi()->calculate([
    'price' => 1000,
    'service_cost_payer' => Order::PAYER_HALF, // or Order::PAYER_CONSUMER or Order::PAYER_SUPPLIER
]);
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 88.2% 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.

###  Release Activity

Cadence

Every ~65 days

Recently: every ~112 days

Total

8

Last Release

2518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23840f325ba59ecb80d92e14f2def7956ac11ac8d36714d2a8c6a6af46939bef?d=identicon)[vragovR](/maintainers/vragovR)

---

Top Contributors

[![vragovR](https://avatars.githubusercontent.com/u/2576829?v=4)](https://github.com/vragovR "vragovR (15 commits)")[![Degox](https://avatars.githubusercontent.com/u/4077157?v=4)](https://github.com/Degox "Degox (2 commits)")

---

Tags

httpapiSafeCrow

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vragovr-safecrow-api/health.svg)

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

###  Alternatives

[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.0M53](/packages/php-http-httplug-bundle)[php-http/client-common

Common HTTP Client implementations and tools for HTTPlug

1.0k225.5M571](/packages/php-http-client-common)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48247.0M383](/packages/php-http-curl-client)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
