Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinceg/bradford-om-php
PHP Integration for the Bradford Order Management
https://github.com/vinceg/bradford-om-php
Last synced: 2 days ago
JSON representation
PHP Integration for the Bradford Order Management
- Host: GitHub
- URL: https://github.com/vinceg/bradford-om-php
- Owner: VinceG
- License: mit
- Created: 2015-09-21T18:03:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-15T21:40:15.000Z (about 9 years ago)
- Last Synced: 2024-11-11T10:16:22.396Z (2 months ago)
- Language: PHP
- Size: 163 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bradford Order Management
PHP Integration for the Bradford Order Management
## Installation
```
composer require vince-g/bradford-om-php
```## Examples
### Initiate Client
```php
$client = new Client(AMCUSERNAME, AMCPASSWORD, $httpClientOptions);
// Disable SSL
$client = new Client(AMCUSERNAME, AMCPASSWORD, ['verify' => false]);
// Set path to .pem
$client = new Client(AMCUSERNAME, AMCPASSWORD, ['verify' => '/path/to/cert.pem']);
```#### Appraiser Identity
```php
$request = new AppraiserIdentity($client);
$request->setMemberId('xxx00040');
// Or by email
// $request->setMemberEmail('[email protected]');
$request->get()->process();$memberId = $request->getResult();
```#### Create Order
```php
$request = new CreateOrder($client);
$request->setMemberId('xxx00040');$fields = new OrderFields;
$fields->setFields([
'OrderId' => '12345',
'PropAddress' => '5440 Tujunga Ave',
'PropCity' => 'North Hollywood',
'PropState' => 'CA',
'PropZip' => '91601',
'BorrowerFirstname' => 'Vincent',
'BorrowerLastname' => 'Gabriel',
'BorrowerEmail' => '[email protected]',
'BorrowerPhone' => 'xxx-xxx-xxxx',
'AppraisalType' => 'Appraisal Review','PropAddress2' => 'APT 100',
'PropType' => 'Single Family Residence',
'LenderName' => 'Landmark Network Inc.',
'LenderAddress' => '5161 Lankershim Blvd',
'LenderCity' => 'North Hollywood',
'LenderState' => 'CA',
'LenderZip' => '91601',
'LoanRefNumber' => '12345',
]);$request->setOrderFields($fields);
$request->get()->process();$confirmation = $request->getResult();
```#### Update Order
```php
$request = new UpdateOrder($client);
$request->setMemberId('xxx00040');$fields = new OrderFields;
$fields->setFields([
'OrderId' => '12345',
'PropAddress' => '5440 Tujunga Ave',
'PropCity' => 'North Hollywood',
'PropState' => 'CA',
'PropZip' => '91601',
'BorrowerFirstname' => 'Vincent',
'BorrowerLastname' => 'Gabriel',
'BorrowerEmail' => '[email protected]',
'BorrowerPhone' => 'xxx-xxx-xxxx',
'AppraisalType' => 'Appraisal Review','PropAddress2' => 'APT 100',
'PropType' => 'Single Family Residence',
'LenderName' => 'Landmark Network Inc.',
'LenderAddress' => '5161 Lankershim Blvd',
'LenderCity' => 'North Hollywood',
'LenderState' => 'CA',
'LenderZip' => '91601',
'LoanRefNumber' => '12345',
]);$request->setOrderFields($fields);
$request->get()->process();$confirmation = $request->getResult();
```#### Delete Order
```php
$request = new DeleteOrder($client);
$request->setMemberId('xxx00040');
$request->setOrderId('12345');$request->get()->process();
$confirmation = $request->getResult();
```#### Get Order Status
```php
$request = new GetOrderStatus($client);
$request->setMemberId('xxx00040');
$request->setOrderId('12345');$request->get()->process();
$status = $request->getResult();
```## Tests
```
phpunit
```