1naturalway/brightree

Brightree API Wrapper for PHP

1.7.0 2023-03-26 13:26 UTC

This package is auto-updated.

Last update: 2024-04-26 15:46:50 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