An open API service indexing awesome lists of open source software.

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

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