定制 casdr/laravel-moneybird 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

casdr/laravel-moneybird

最新稳定版本:v1.1.0

Composer 安装命令:

composer require casdr/laravel-moneybird

包简介

Moneybird package for Laravel based on Picq'ers client

README 文档

README

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

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Laravel without auto-discovery:

If you don't use auto-discovery, 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.

统计信息

  • 总下载量: 10.18k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-05-25