1naturalway / brightree
Brightree API Wrapper for PHP
Installs: 15 029
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 6
Forks: 1
Open Issues: 0
Requires
- php: ^8.3
Requires (Dev)
- mockery/mockery: ^1.4.4
- nesbot/carbon: ^3.8
- phpunit/phpunit: ^11.0
- squizlabs/php_codesniffer: ^3.7
README
Install
Using the composer CLI:
composer require 1naturalway/brightree
Or manually add it to your composer.json:
{ "require": { "1naturalway/brightree": "dev-master", } }
Laravel 5.1 Service Provider
In config/app.php, register the service provider
Brightree\FrameworkSupport\Laravel\BrightreeServiceProvider::class,
Register the Facade (optional)
'Brightree' => Brightree\FrameworkSupport\Laravel\BrightreeFacade::class
Publish the config
php artisan vendor:publish --provider="Brightree\FrameworkSupport\Laravel\BrightreeServiceProvider"
Set your env variables
BRIGHTREE_USERNAME=xxxxxxxx
BRIGHTREE_PASSWORD=xxxxxxxx
Access Brightree SDK from the Facade or Binding
$service = Brightree::orderEntryService();
$service = app('brightree)->orderEntryService();
Processing a Customer
- Create Patient
- Add Insurance to Patient
- Create Sales Order
- Add Items to Sales Order