PHPackages                             lasserafn/php-dinero - 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. lasserafn/php-dinero

ActiveLibrary[API Development](/categories/api)

lasserafn/php-dinero
====================

Dinero REST wrapper for PHP

1.0.3(5y ago)115.2k8[8 issues](https://github.com/LasseRafn/php-dinero/issues)[1 PRs](https://github.com/LasseRafn/php-dinero/pulls)MITPHPPHP &gt;=7.0

Since Sep 12Pushed 3y ago4 watchersCompare

[ Source](https://github.com/LasseRafn/php-dinero)[ Packagist](https://packagist.org/packages/lasserafn/php-dinero)[ RSS](/packages/lasserafn-php-dinero/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (18)Used By (0)

PHP Dinero REST wrapper
=======================

[](#php-dinero-rest-wrapper)

This is a PHP wrapper for Dinero. Forked from [lasserafn/laravel-dinero](https://github.com/LasseRafn/laravel-dinero).

 [![Build Status](https://camo.githubusercontent.com/4d96ed6ec4d268e995f498eec1089047d1d9a3cdeb7d0e99336ce311ebf4ae98/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4c617373655261666e2f7068702d64696e65726f2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/LasseRafn/php-dinero)[![Coverage](https://camo.githubusercontent.com/f06552a6214d6d6dab0132605b3fe4c0b27e45ba524ccb3c29b42b1834e792eb/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4c617373655261666e2f7068702d64696e65726f2e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/LasseRafn/php-dinero)[![StyleCI Status](https://camo.githubusercontent.com/71ce9f6430c79620232d41980dcd12f64b97021cb9670d8ae652c210e106dc95/68747470733a2f2f7374796c6563692e696f2f7265706f732f39393738383732352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/99788725)[![Total Downloads](https://camo.githubusercontent.com/b309bbb4281f3b3ee9444ea674773bddc4f93d51d5004ee14bd08c66f9e239b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4c617373655261666e2f7068702d64696e65726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LasseRafn/php-dinero)[![Latest Stable Version](https://camo.githubusercontent.com/d0eaa7d128021f083cd831f7a232e4f7e6b684a3ef07ad03c9637c4a3df4c05f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c617373655261666e2f7068702d64696e65726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LasseRafn/php-dinero)[![License](https://camo.githubusercontent.com/4dea7880c2e8cc42899595f7721f6af0ab78a34f33e9ed279fba84a92caf039c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f4c617373655261666e2f7068702d64696e65726f2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LasseRafn/php-dinero)

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

[](#installation)

1. Require using composer

```
composer require lasserafn/php-dinero

```

### Requirements

[](#requirements)

- PHP +5.6

### Getting started

[](#getting-started)

1. [Apply as a developer](https://api.dinero.dk/docs#apply) at Dinero
2. Get your client id and secret
3. Find the organisation id when logged into Dinero (bottom left)

[![](https://camo.githubusercontent.com/d89eee592291b5dfc9c42186bd5a66ad7af9e8d1412a0e3a6fe8c13b2072b570/68747470733a2f2f7777772e64726f70626f782e636f6d2f732f6f7677677a6b6d75753332356c636f2f53637265656e73686f74253230323031372d30382d323825323031322e35332e31392e706e673f7261773d3126646c3d30)](https://camo.githubusercontent.com/d89eee592291b5dfc9c42186bd5a66ad7af9e8d1412a0e3a6fe8c13b2072b570/68747470733a2f2f7777772e64726f70626f782e636f6d2f732f6f7677677a6b6d75753332356c636f2f53637265656e73686f74253230323031372d30382d323825323031322e35332e31392e706e673f7261773d3126646c3d30)

4. Create an API key inside Dinero
5. Utilize the wrapper as below

```
 $dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret );
 $dinero->auth( $apiKey, $orgId ); // this WILL send a request to the auth API.

 $contacts = $dinero->contacts()->perPage(10)->page(2)->get();

 // Do something with the contacts.
```

```
 $invoices = $dinero->invoices()->all();
```

```
 $products = $dinero->products()->deletedOnly()->all();
```

You can also use an old auth token, if you dont want to auth everytime you setup a new instance of Dinero.

```
 $dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret );
 $dinero->setAuth($token, $orgId); // this will NOT send a request to the auth API.

 $products = $dinero->products()->deletedOnly()->all();
```

Usage
-----

[](#usage)

### Creating Contacts

[](#creating-contacts)

```
// Create Instance
$dinero = new \LasseRafn\Dinero\Dinero( $clientId, $clientSecret );

// Auth to a Dinero account
$dinero->auth( $apiKey, $orgId );

// Create the contact
$contact = $dinero->contacts()->create([ 'IsPerson' => true, 'Name' => 'Test', 'CountryKey' => 'DK' ]);

// if the request succeeded, $contact will be a \LasseRafn\Dinero\Models\Contact object.
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity67

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 ~78 days

Recently: every ~254 days

Total

16

Last Release

2045d ago

Major Versions

0.7.8 → 1.0.02019-06-30

### Community

Maintainers

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

---

Top Contributors

[![LasseRafn](https://avatars.githubusercontent.com/u/2689341?v=4)](https://github.com/LasseRafn "LasseRafn (82 commits)")[![kg-bot](https://avatars.githubusercontent.com/u/5282920?v=4)](https://github.com/kg-bot "kg-bot (7 commits)")[![noir04](https://avatars.githubusercontent.com/u/5826699?v=4)](https://github.com/noir04 "noir04 (4 commits)")

---

Tags

apilaravelwrapperintegrationdinero

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lasserafn-php-dinero/health.svg)

```
[![Health](https://phpackages.com/badges/lasserafn-php-dinero/health.svg)](https://phpackages.com/packages/lasserafn-php-dinero)
```

###  Alternatives

[aerni/laravel-spotify

A Laravel wrapper for the Spotify Web API

208157.8k](/packages/aerni-laravel-spotify)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

72287.1k1](/packages/mozex-anthropic-laravel)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[lasserafn/laravel-economic

Economic REST wrapper for Laravel

1119.4k](/packages/lasserafn-laravel-economic)[dariusiii/tmdb-laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the wtfzdotnet/php-tmdb-api library.

1821.1k](/packages/dariusiii-tmdb-laravel)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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