1naturalway/brightree

Brightree API Wrapper for PHP

1.8.1 2024-10-10 15:54 UTC

This package is auto-updated.

Last update: 2024-11-10 16:06:37 UTC


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

  1. Create Patient
  2. Add Insurance to Patient
  3. Create Sales Order
  4. Add Items to Sales Order