PHPackages                             mitloshuk/moneycare - 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. mitloshuk/moneycare

ActiveLibrary

mitloshuk/moneycare
===================

PHP library for MoneyCare API. MoneyCare is the leading credit platform for PIC lending in stores. More than 15 solutions from banks and MFIs in 2 minutes

1.0.2(5y ago)055MITPHPPHP ^7.2CI failing

Since Jul 14Pushed 5y agoCompare

[ Source](https://github.com/mitloshuk/moneycare)[ Packagist](https://packagist.org/packages/mitloshuk/moneycare)[ RSS](/packages/mitloshuk-moneycare/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

MoneyCare API library
=====================

[](#moneycare-api-library)

### About package

[](#about-package)

PHP library for MoneyCare API [www.moneycare.su](http://www.moneycare.su). MoneyCare is the leading credit platform for PIC lending in stores. More than 15 solutions from banks and MFIs in 2 minutes

### How to start

[](#how-to-start)

1. Install package via `composer require mitloshuk/moneycare` command or add `"mitloshuk/moneycare": "^1.0"` to your `composer.json`
2. Init `MoneyCare/MoneyCare` via your DI or use `$moneyCare = new \MoneyCare\MoneyCare($username, $password);` where `$username` and `$password` are your auth data to MoneyCare API

### How to create order

[](#how-to-create-order)

1. Create Order model like `$order = new \MoneyCare\Models\OrderCreation();`
2. Create Good model like `$good = new \MoneyCare\Models\Good();`
3. Add price and another optional parameters to Good model `$good->setPrice(100)->setTitle('Good Title');`. You can use any parameter from docs with `set` prefix like `->setBrand('This is my brand')`.
4. For predefined parameter `goodType` can use dictionary `GoodTypesDictionary`, for example `\MoneyCare\Dictionaries\GoodTypesDictionary::PRODUCT`
5. Add required Good and point id to your Order model `$order->addGood($good)->setPointId('point');`. You can use any parameter from docs with `set` prefix like `->setGenerateForm(true)`.
6. Execute sending of order model with `$response = $moneyCare->createOrder($order);`
7. Check response `$response->getIsAccepted()` or get form url with `$response->getFormUrl()` if you requested it on previous step
8. For predefined parameters `creditTypes`, `formMode` and `creditStatus` you can use `CreditTypesDictionary`, `FormModesDictionary` and `CreditTypesDictionary` dictionaries.

So ready example code of creating order will look like

```
$moneyCare = new \MoneyCare\MoneyCare($username, $password);

$order = new \MoneyCare\Models\OrderCreation();
$good = new \MoneyCare\Models\Good();

$good->setPrice(100)->setTitle('Good Title');
$order->addGood($good)->setPointId('point');

$response = $moneyCare->createOrder($order);

if ($response->getIsAccepted()) {
    echo $response->getFormUrl();
}

```

### How to update order

[](#how-to-update-order)

1. Get `order id` of existing order via `$orderId = $response->getOrderId();` of previous response
2. Create new Order model like `$newOrderData = new \MoneyCare\Models\OrderUpdating();`
3. Create one more Good model like `$good2 = new \MoneyCare\Models\Good();`
4. Add price and another optional parameters to Good model `$good2->setPrice(100)->setTitle('Good Title');`.
5. Add that Good to your new Order model `$newOrderData->addGood($good)`.
6. Execute sending of order model with `$moneyCare->updateOrder($orderId, $newOrderData);`
7. There are no response from request, but you can get info with `details request`

Ready code of updating previous example order will look like

```
$orderId = $response->getOrderId();
$newOrderData = new \MoneyCare\Models\OrderUpdating();
$good2 = new \MoneyCare\Models\Good();

$good2->setPrice(100)->setTitle('Good Title');
$newOrderData->addGood($good2);

$moneyCare->updateOrder($orderId, $newOrderData);

```

### How to get order details

[](#how-to-get-order-details)

1. Get `order id` of existing order via `$orderId = $response->getOrderId();` of previous response
2. Execute request like `$response = $moneyCare->orderDetails($orderId);`
3. Response will contain all parameters from doc, they will accessible via their names with `get` prefix

Ready code of getting details

```
$orderId = $response->getOrderId();
$response = $moneyCare->orderDetails($orderId);
echo $response->getCreditLimit();

```

### How to change order status

[](#how-to-change-order-status)

1. Get `order id` of existing order via `$orderId = $response->getOrderId();` of previous response
2. Execute request like `$moneyCare->updateStatus($orderId, OrderStatusesDictionary::DELIVERY);`
3. Second method argument is `orderStatus` and it predefined, so you can take `OrderStatusesDictionary` for simpler usage
4. There are no response from request, but you can get info with `details request`

Ready code of getting details

```
$orderId = $response->getOrderId();
$moneyCare->updateStatus($orderId, OrderStatusesDictionary::DELIVERY);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~83 days

Total

3

Last Release

1959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9c213ce0eec0e9fc169992df2d7a65cc178a204b61702a7b0a8ba1de6eb57a6?d=identicon)[mitloshuk](/maintainers/mitloshuk)

---

Top Contributors

[![mitloshuk](https://avatars.githubusercontent.com/u/7550737?v=4)](https://github.com/mitloshuk "mitloshuk (10 commits)")

---

Tags

creditmoneycare

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/mitloshuk-moneycare/health.svg)

```
[![Health](https://phpackages.com/badges/mitloshuk-moneycare/health.svg)](https://phpackages.com/packages/mitloshuk-moneycare)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k20](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[mrprompt/cielo

Integration with Cielo gateway.

481.9k1](/packages/mrprompt-cielo)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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