PHPackages                             pmilinvest/monetico - 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. [Payment Processing](/categories/payments)
4. /
5. pmilinvest/monetico

ActiveLibrary[Payment Processing](/categories/payments)

pmilinvest/monetico
===================

MONETICO LARAVEL SDK

026PHP

Since Feb 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/dev-pmilinvest/monetico)[ Packagist](https://packagist.org/packages/pmilinvest/monetico)[ RSS](/packages/pmilinvest-monetico/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Connecteur Laravel Monetico
===========================

[](#connecteur-laravel-monetico)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8b5f969d0d722bf9dbf70e6de6ffdd482ed155530586a8480655b13fa2a97897/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706d696c696e766573742f6d6f6e657469636f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pmilinvest/monetico)[![Total Downloads](https://camo.githubusercontent.com/644fb04b25f151366245a285b8162203ee24827b4a7267d7e77634fe35c86ba1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706d696c696e766573742f6d6f6e657469636f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pmilinvest/monetico)[![GitHub Actions](https://github.com/pmilinvest/monetico/actions/workflows/main.yml/badge.svg)](https://github.com/pmilinvest/monetico/actions/workflows/main.yml/badge.svg)

Facilite l'utilisation de l'API Monetico sous Laravel

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

[](#installation)

Vous pouvez installer le package avec composer:

```
composer require pmilinvest/monetico
```

Configuration
-------------

[](#configuration)

Vous devez renseigner les identifiants API grâce aux fichier .env de votre application.

```
MONETICO_EPT_CODE=
MONETICO_SECURITY_KEY=
MONETICO_COMPAGNY_CODE=
```

\##Usage

### Monetico

[](#monetico)

```
use Pmilinvest\Monetico\Monetico;

$monetico = new Monetico(
'EPT_CODE',
'SECURITY_KEY',
'COMPANY_CODE'
);
```

### Purchase

[](#purchase)

```
use PmilInvest\Monetico\Monetico;
use PmilInvest\Monetico\Requests\PurchaseRequest;
use PmilInvest\Monetico\Resources\BillingAddressResource;
use PmilInvest\Monetico\Resources\ShippingAddressResource;
use PmilInvest\Monetico\Resources\ClientResource;

$monetico = new Monetico(
'EPT_CODE',
'SECURITY_KEY',
'COMPANY_CODE'
);

$purchase = new PurchaseRequest([
'reference' => 'ABCDEF123',
'description' => 'Documentation',
'language' => 'FR',
'email' => 'john@snow.stark',
'amount' => 42,
'currency' => 'EUR',
'dateTime' => new DateTime(),
'successUrl' => 'http://localhost/thanks',
'errorUrl' => 'http://localhost/oops',
]);

$billingAddress = new BillingAddressResource([
'name' => 'dans ma culotte',
'addressLine1' => '42 rue des serviettes',
'city' => 'Coupeville',
'postalCode' => '42000',
'country' => 'FR',
]);
$purchase->setBillingAddress($billingAddress);

$shippingAddress = new ShippingAddressResource([
'name' => 'dans ma culotte',
'addressLine1' => '42 rue des serviettes',
'city' => 'Coupeville',
'postalCode' => '42000',
'country' => 'FR',
]);
$purchase->setShippingAddress($shippingAddress);

$client = new ClientResource([
'civility' => 'Mr',
'firstName' => 'John',
'lastName' => 'Snow',
]);
$purchase->setClient($client);

$url = PurchaseRequest::getUrl();
$fields = $monetico->getFields($purchase);
```

```
use PmilInvest\Monetico\Monetico;
use PmilInvest\Monetico\Responses\PurchaseResponse;
use PmilInvest\Monetico\Receipts\PurchaseReceipt;

$data = json_decode([/* bank request body */], true);

$monetico = new Monetico(
'EPT_CODE',
'SECURITY_KEY',
'COMPANY_CODE'
);

$response = new PurchaseResponse($data);

$result = $monetico->validate($response);

$receipt = new PurchaseReceipt($result);
```

### Recovery

[](#recovery)

```
use PmilInvest\Monetico\Monetico;
use PmilInvest\Monetico\Requests\RecoveryRequest;
use PmilInvest\Monetico\Responses\RecoveryResponse;

$monetico = new Monetico(
'EPT_CODE',
'SECURITY_KEY',
'COMPANY_CODE'
);

$recovery = new RecoveryRequest([
'reference' => 'AXCDEF123',
'language' => 'FR',
'amount' => 42.42,
'amountToRecover' => 0,
'amountRecovered' => 0,
'amountLeft' => 42.42,
'currency' => 'EUR',
'orderDate' => new DateTime(),
'dateTime' => new DateTime(),
]);

$url = RecoveryRequest::getUrl();
$fields = $monetico->getFields($recovery);

$client = new Http\Client();
$data = $client->request('POST', $url, $fields);

// $data = json_decode($data, true);

$response = new RecoveryResponse($data);
```

\###Cancel

```
use PmilInvest\Monetico\Monetico;
use PmilInvest\Monetico\Requests\CancelRequest;
use PmilInvest\Monetico\Responses\CancelResponse;

$monetico = new Monetico(
'EPT_CODE',
'SECURITY_KEY',
'COMPANY_CODE'
);

$cancel = new CancelRequest([
'dateTime' => new DateTime(),
'orderDate' => new DateTime(),
'reference' => 'ABC123',
'language' => 'FR',
'currency' => 'EUR',
'amount' => 100,
'amountRecovered' => 0,
]);

$url = CancelRequest::getUrl();
$fields = $monetico->getFields($cancel);

$client = new GuzzleHttp\Client();
$data = $client->request('POST', $url, $fields);

// $data = json_decode($data, true);

$response = new CancelResponse($data);
```

\###Refund

```
use PmilInvest\Monetico\Monetico;
use PmilInvest\Monetico\Requests\RefundRequest;
use PmilInvest\Monetico\Responses\RefundResponse;

$monetico = new Monetico(
'EPT_CODE',
'SECURITY_KEY',
'COMPANY_CODE'
);

$refund = new RefundRequest([
'dateTime' => new DateTime(),
'orderDatetime' => new DateTime(),
'recoveryDatetime' => new DateTime(),
'authorizationNumber' => '1222',
'reference' => 'ABC123',
'language' => 'FR',
'currency' => 'EUR',
'amount' => 100,
'refundAmount' => 50,
'maxRefundAmount' => 80,
]);

$url = RefundRequest::getUrl();
$fields = $monetico->getFields($refund);

$client = new GuzzleHttp\Client();
$data = $client->request('POST', $url, $fields);

// $data = json_decode($data, true);

$response = new RefundResponse($data);
```

Crédits
-------

[](#crédits)

- [PMIL Invest](https://github.com/pmilinvest)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity27

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://www.gravatar.com/avatar/00df70b7aa23b311f0920e67678ff6e4d4976db53cbe0e47b5943faf87a6863a?d=identicon)[dev3.info](/maintainers/dev3.info)

---

Top Contributors

[![daubanet](https://avatars.githubusercontent.com/u/48470756?v=4)](https://github.com/daubanet "daubanet (15 commits)")

### Embed Badge

![Health badge](/badges/pmilinvest-monetico/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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