Laravel 4 Salesforce PHP Toolkit port

1.0 2015-12-10 07:42 UTC

This package is not auto-updated.

Last update: 2020-11-27 22:04:47 UTC


This Laravel 4 package provides an interface for using Salesforce CRM through its SOAP API.


Begin by installing this package through Composer. Edit your project's composer.json file to require deniamnet/laravel4-salesforce.

"require": {
    "laravel/framework": "4.*",
    "deniamnet/laravel4-salesforce": "dev-master"

Next, update Composer from the Terminal:

composer update

Once this operation completes, still in Terminal run:

php artisan config:publish deniamnet/laravel4-salesforce


Update the settings in the generated app/config/packages/deniamnet/laravel4-salesforce configuration file with your salesforce credentials.

Ensure you put your WSDL file into a proper place and make it readable by your Laravel Application.

IMPORTANT: the PHP Toolkit for PHP only works with Enterprise WSDL

Finally add the service provider. Open app/config/app.php, and add a new item to the providers array.


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) {
        die($e->getMessage() . $e->getTraceAsString());

More Information

Check out the SOAP API Salesforce Documentation


This Salesforce Toolkit for PHP port is open-sourced software licensed under the MIT license


This project follows the Semantic Versioning