1naturalway / brightree
Brightree API 包装器 for PHP
1.7.0
2023-03-26 13:26 UTC
Requires
- php: ^8.0.2
Requires (Dev)
- mockery/mockery: ^1.4.4
- nesbot/carbon: ^2.66
- phpunit/phpunit: ^9.5.10
- squizlabs/php_codesniffer: ^3.7
README
安装
使用 composer CLI
composer require 1naturalway/brightree
或手动添加到 composer.json
{ "require": { "1naturalway/brightree": "dev-master", } }
Laravel 5.1 服务提供者
在 config/app.php 中注册服务提供者
Brightree\FrameworkSupport\Laravel\BrightreeServiceProvider::class,
注册外观(可选)
'Brightree' => Brightree\FrameworkSupport\Laravel\BrightreeFacade::class
发布配置
php artisan vendor:publish --provider="Brightree\FrameworkSupport\Laravel\BrightreeServiceProvider"
设置环境变量
BRIGHTREE_USERNAME=xxxxxxxx
BRIGHTREE_PASSWORD=xxxxxxxx
通过外观或绑定访问 Brightree SDK
$service = Brightree::orderEntryService();
$service = app('brightree)->orderEntryService();
处理客户
- 创建患者
- 给患者添加保险
- 创建销售订单
- 向销售订单添加项目