jaiwalker / bronto-laravel
Bronto Integration to laravel.
Installs: 2 143
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.9
- illuminate/support: ~5.0
- jaiwalker/bronto-api-php-client-v2: ^1.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-11-24 04:16:37 UTC
README
Installation
First, pull in the package through Composer.
Run composer require jaiwalker/bronto-laravel
And then, if using Laravel 5.2, include the service provider within config/app.php
.
'providers' => [ Jaiwalker\BrontoApi\BrontoServiceProvider::class, ];
To publish config run
php artisan vendor:publish --provider="Jaiwalker\BrontoApi\BrontoServiceProvider"
This should create a file {bronto} in config folder.
Usage
Within your controllers, before you use
public function whatever() { BrontoApi::contact()->updateOrCreate(); BrontoApi::contact()->getContactByEmail(); BrontoApi::contact()->updateByEmail(); }