casdr / laravel-moneybird by casdr

Moneybird package for Laravel based on Picq'ers client
8,046
8
5
Package Data
Maintainer Username: casdr
Maintainer Contact: cdreuver@blalabs.com (Cas de Reuver)
Package Create Date: 2017-05-25
Package Last Update: 2020-10-09
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:24:47
Package Statistics
Total Downloads: 8,046
Monthly Downloads: 77
Daily Downloads: 3
Total Stars: 8
Total Watchers: 5
Total Forks: 8
Total Open Issues: 0

laravel-moneybird

Latest Version on Packagist Software License Total Downloads

This Laravel package is a wrapper for picqer/moneybird-php-client.

Install

Via Composer

$ composer require casdr/laravel-moneybird

Add the ServiceProvider and the Facade to your config/app.php:

'providers' => [
  ...
  Casdr\Moneybird\MoneybirdServiceProvider::class,
],
'aliases' => [
  ...
  'Moneybird' => Casdr\Moneybird\MoneybirdFacade::class,
]

Then run the following command to publish the config to your config/ directory.

$ php artisan vendor:publish --tag=config

You then need to generate an application in the Moneybird interface and set the configuration for this module.

return [
    'redirect_uri' => 'urn:ietf:wg:oauth:2.0:oob',
    'client_id' => 'ij8uhui34g1409fn', // The client ID of your Moneybird application
    'client_secret' => 'hu4ht89y0rfhbsduofas', // The client secret of your Moneybird application
    'authorization_token' => '', // The authorization token for your account (https://developer.moneybird.com/authentication/#authentication) (optional)
    'access_token' => '', // The access token for your account  (optional)
    'administration_id' => '' // The administration ID you want to use (optional)
];

Usage

$contact = Moneybird::contact();

$contact->company_name = 'BlaLabs';
$contact->firstname = 'Cas';
$contact->lastname = 'de Reuver';
$contact->save();

For more usage information, see picqer/moneybird-php-client

Credits

License

The MIT License (MIT). Please see License File for more information.