tavux/qonto-laravel
Composer 安装命令:
composer require tavux/qonto-laravel
包简介
Qonto client for Laravel 5 and 6
README 文档
README
What is Qonto ?
Qonto is a new bank company for freelancers & companies (more infos : qonto.eu)
What is qonto-laravel ?
Qonto provides an API for companies to get data from their bank account.
qonto-laravel is a client, for Laravel 5+ (and 6), to request this API. It uses qonto-php.
qonto-laravel only supports the second version of Qonto API.
How to install it ?
composer require tavux/qonto-laravel- If Laravel version < 5.8 :
- Add
\Tavux\Qonto\Laravel\QontoServiceProvider::classto your providers inconfig/app.php - Add
'Qonto' => \Tavux\Qonto\Laravel\Facades\Qonto::classto your aliases inconfig/app.php
- Add
php artisan vendor:publish --tag=qonto- edit
.envand addQONTO_LOGINandQONTO_SECRET_KEYwith your API credentials (see https://api-doc.qonto.eu/2.0/welcome/authentication)
How to use it ?
Qonto API Documentation
qonto-laravel Documentation
/** * @method static \Tavux\Qonto\Models\Attachment getAttachment(string $id) * @method static \Tavux\Qonto\Models\Organization getOrganization(string $id) * @method static \Tavux\Qonto\Models\Labels listLabels(int $current_page=null, int $per_page=null) * @method static \Tavux\Qonto\Models\Memberships listMemberships(int $current_page=null, int $per_page=null) * @method static \Tavux\Qonto\Models\Transactions listTransactions($slug, string $iban=null, string $status=null, string $updated_at_from=null, string $updated_at_to=null, string $settled_at_from=null, string $settled_at_to=null, string $sort_by=null, int $current_page=null, int $per_page=null) * @method static void setCredentials($login, $secret_key) */
Example
try { $organization = Qonto::getOrganization('company_id'); $transactions = Qonto::listTransactions($organization->bank_accounts[0]->slug); $labels = Qonto::listLabels(); $memberships = Qonto::listMemberships(); var_dump($organization, $transactions, $labels, $memberships); } catch (\GuzzleHttp\Exception\GuzzleException $e) { echo $e->getMessage(); }
Author
qonto-laravel has been initiated by Tavux.
License
MIT Licence. Refer to the LICENSE file to get more info.
tavux/qonto-laravel 适用场景与选型建议
tavux/qonto-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 12 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 tavux/qonto-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tavux/qonto-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-05