| Package Data | |
|---|---|
| Maintainer Username: | wallstreetio |
| Maintainer Contact: | tashkar18@gmail.com (Tamer Ashkar) |
| Package Create Date: | 2017-03-06 |
| Package Last Update: | 2021-06-29 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-11 03:14:20 |
| Package Statistics | |
|---|---|
| Total Downloads: | 235 |
| Monthly Downloads: | 4 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 2 |
| Total Forks: | 1 |
| Total Open Issues: | 3 |
Laravel Ontraport API is simply a Laravel bridge for the Ontraport API.
composer require wallstreetio/laravel-ontraport
Add \Wsio\Ontraport\OntraportServiceProvider to your providers list in config/app.php file.
'providers' => [
Wsio\Ontraport\OntraportServiceProvider::class,
]
Optionally, you may also add the Ontraport facade to your aliases list.
'aliases' => [
'OAP' => Wsio\Ontraport\Facade\Ontraport::class,
]
Publish the configuration file.
php artisan vendor:publish --provider="Wsio\Ontraport\OntraportServiceProvider"
Add your Ontraport ONTRAPORT_APP_ID and ONTRAPORT_API_KEY to your .env file.
ONTRAPORT_APP_ID="your-ontraport-app-id"
ONTRAPORT_API_KEY="your-ontraport-api-key"
public function index(\Wsio\Ontraport\Ontraport $ontraport)
{
return $ontraport->contacts->get();
}
Or using the facade
public function show($id)
{
return OAP::contacts()->find($id);
}
For full documentation, please refer to the Ontraport API package.
WallStreet.io Laravel Ontraport API is open-sourced software licensed under The MIT License (MIT).