2017 © Pedro Peláez
 

library dinero-php

dinero php wrapper

image

partner-it/dinero-php

dinero php wrapper

  • Wednesday, November 11, 2015
  • by darxmac
  • Repository
  • 0 Watchers
  • 0 Stars
  • 38 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Dinero PHP Wrapper

Codeship Status for partner-it/dinero-php, (*1)

Installation

Using Composer, (*2)

composer require partner-it/dinero-php

Usage

Create a new instance:, (*3)

<?php

$Dinero = new \PartnerIT\Dinero\Dinero([
            'clientId'     => 'clientId',
            'clientSecret' => 'xxx',
            'apiKey'       => 'yyy'
        ]);

Request a new token:, (*4)

<?php
$Dinero->requestToken();

Get the Organizations, (*5)

<?php
$organizations = $Dinero->Organizations->getOrganizations();
$organizationId = $organizations[0]['id'];

Create a new ledger:, (*6)

<?php

$nextVoucherNumber = $Dinero->LedgerItems->getNextVoucherNumber($organizationId);
$data = [
    [
        "Amount" => -500,
        "Description" => "produkt, lille",
        "BalancingAccountVatCode" => null,
        "AccountNumber" => 1000,
        "BalancingAccountNumber" => null,
        "VoucherDate" => "2015-05-27",
        "VoucherNumber" => $nextVoucherNumber,
        "AccountVatCode" => "I25"
    ]
];

$Dinero->LedgerItems->createLedgeritems($organizationId, $data);

Run a manual call:, (*7)

<?php

$result = $Dinero->call('/endpoint', 'GET', []);

Official API documentation:, (*8)

https://api.dinero.dk/docs, (*9)

The Versions

11/11 2015

dev-master

9999999-dev

dinero php wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

11/11 2015

1.0.2

1.0.2.0

dinero php wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

23/07 2015

1.0.1

1.0.1.0

dinero php wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

23/07 2015

1.0

1.0.0.0

dinero php wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires