This Laravel 4 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": "4.1.*",
"davispeixoto/laravel-salesforce": "1.0.11"
}
Next, update Composer from the Terminal:
composer update
Once this operation completes, still in Terminal run:
php artisan config:publish davispeixoto/laravel-salesforce
Update the settings in the generated app/config/packages/davispeixoto/laravel-salesforce
configuration file with your salesforce credentials.
Finally add the service provider. Open app/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 projetct follows the Semantic Versioning