deniamnet/laravel4-salesforce

Laravel 4 Salesforce Force.com 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


README

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

Installation

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

Configuration

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 Force.com 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.

'Deniamnet\Laravel4Salesforce\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());
    }
});

More Information

Check out the SOAP API Salesforce Documentation

License

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

Versioning

This project follows the Semantic Versioning