ultiweb-nl/factuursturen-php-client

A PHP Client for the FactuurSturen/DigiRechnung API

v0.1-alpha 2021-04-26 11:50 UTC

This package is auto-updated.

Last update: 2021-10-07 06:37:03 UTC


README

stability-wip Unit Tests MIT License Maintenance

STILL WORK IN PROGRESS

factuursturen-php-client

An unofficial client for the Factuursturen/DigiRechnung API.

Installation

This project can easily be installed through Composer.

composer require ultiweb-nl/factuursturen-php-client

Set-up connection

Prepare the client for connecting to FactuurSturen with your API key and API secret. (Optionally you can send your Partner id as 3rd param.)

$factuurSturen = new \UltiwebNL\FactuurSturenPhpClient\FactuurSturen();
$factuurSturen->setUsername($username);
$factuurSturen->setPassword($password);

Get all invoices

Returns an array of Parcel objects

$invoices = $factuurSturen->invoices()->all();

Get a single invoice

Returns a Parcel object

$invoice = $factuurSturen->invoices()->find(1234);

Create a new invoice

$invoice = $factuurSturen->invoices();

$invoice->company_name = 'Company name';

$invoice->save();

Supported endpoints

  • Categories
  • Profiles
  • Clients
  • Products
  • Invoices
  • Quotation

Not (yet) supported endpoints (feel free to contribute)

  • Invoice Payment
  • Invoice Reminder
  • Saved Invoices
  • Repeating Invoices
  • Balance
  • Get Invoices PDF
  • Get Quotation PDF
  • Country list
  • Taxes
  • Search