https://github.com/1naturalway/brightree
Brightree API Wrapper
https://github.com/1naturalway/brightree
facade laravel php
Last synced: 6 months ago
JSON representation
Brightree API Wrapper
- Host: GitHub
- URL: https://github.com/1naturalway/brightree
- Owner: 1naturalway
- Created: 2018-12-12T20:01:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-17T11:23:44.000Z (12 months ago)
- Last Synced: 2025-09-28T19:59:28.402Z (9 months ago)
- Topics: facade, laravel, php
- Language: PHP
- Size: 108 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brightree PHP SDK
## Install
Using the composer CLI:
```
composer require 1naturalway/brightree
```
Or manually add it to your composer.json:
``` 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
1) Create Patient
2) Add Insurance to Patient
3) Create Sales Order
4) Add Items to Sales Order