This Laravel 5 package provides an interface for using Salesforce CRM API.
Begin by installing this package through Composer. Edit your project's composer.json
file to require davispeixoto/laravel-salesforce
.
"require": {
"laravel/framework": "5.0",
"etelford/laravel-salesforce": "2.0.0"
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, still in Terminal run:
php artisan publish:config davispeixoto/laravel-salesforce
Update the settings in the generated config/packages/davispeixoto/laravel-salesforce
configuration file with your salesforce credentials.
Finally add the service provider. Open config/app.php
, and add a new item to the providers array.
'Davispeixoto\LaravelSalesforce\LaravelSalesforceServiceProvider'
That's it! You're all set to go. Just use:
Route::get('/test', function() {
try {
echo print_r(Salesforce::describeLayout('Account'));
} catch (Exception $e) {
Log::error($e->getMessage());
die($e->getMessage() . $e->getTraceAsString());
}
});
This Salesforce Force.com Toolkit for PHP port is open-sourced software licensed under the MIT license
This project follows the Semantic Versioning