2017 © Pedro Peláez
 

library laravel5-salesforce

Laravel 5 Salesforce Force.com PHP Toolkit port

image

davispeixoto/laravel5-salesforce

Laravel 5 Salesforce Force.com PHP Toolkit port

  • Monday, December 19, 2016
  • by davispeixoto
  • Repository
  • 7 Watchers
  • 41 Stars
  • 45,053 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 22 Forks
  • 1 Open issues
  • 13 Versions
  • 6 % Grown

The README.md

Laravel 5 Salesforce

This Laravel 5 package provides an interface for using Salesforce CRM through its SOAP API., (*1)

(Laravel 4 Salesforce Package can be found here), (*2)

Latest Stable Version Total Downloads Scrutinizer Code Quality Codacy Badge Code Climate Build Status SensioLabsInsight, (*3)

Major upgrade

This package is intended to support both Laravel 5.1 LTS and 5.2+., (*4)

Laravel 5.1 package will be kept under version 1.* Laravel 5.2 package will be kept under version 2.*, (*5)

Consider this when installing or upgrading, (*6)

It also fixes a too much consuming session at Salesforce, thus these new versions needs adding the section aliases under config/app.php, (*7)

Installation

The Laravel 5 package can be installed via Composer by requiring the davispeixoto/laravel5-salesforce package in your project's composer.json., (*8)

{
    "require": {
        "davispeixoto/laravel5-salesforce": "~1.0"
    }
}

And running a composer update from your terminal:, (*9)

php composer.phar update

To use the Salesforce Package, you must register the provider when bootstrapping your Laravel 5 application., (*10)

Find the providers key in your config/app.php and register the AWS Service Provider., (*11)

    'providers' => array(
        // ...
        Davispeixoto\Laravel5Salesforce\SalesforceServiceProvider::class,
    )

    'aliases' => array(
        // ...
        'Salesforce' => Davispeixoto\Laravel5Salesforce\SalesforceFacade::class,
    )

Configuration

By default, the package uses the following environment variables to auto-configure the plugin without modification:, (*12)

SALESFORCE_USERNAME
SALESFORCE_PASSWORD
SALESFORCE_TOKEN

Place your your enterprise WSDL file into your app storage/app/wsdl/ directory., (*13)

To customize the configuration file, publish the package configuration using Artisan., (*14)

php artisan vendor:publish

Update the settings in the generated config/salesforce.php configuration file with your credentials., (*15)

return [
    'username' => 'YOUR_SALESFORCE_USERNAME',
    'password' => 'YOUR_SALESFORCE_PASSWORD',
    'token' => 'YOUR_SALESFORCE_TOKEN',
    'wsdl' => 'path/to/your/enterprise.wsdl.xml',
];

IMPORTANT: the PHP Force.com Toolkit for PHP only works with Enterprise WSDL, (*16)

Usage

That's it! You're all set to go. Just use:, (*17)

    Use Salesforce;
    Route::get('/test', function() {
        try {
            echo print_r(Salesforce::describeLayout('Account'), true);
        } catch (Exception $e) {
            echo $e->getMessage();
            echo $e->getTraceAsString();
        }
    });

More Information

Check out the SOAP API Salesforce Documentation, (*18)

License

This software is licensed under the MIT license, (*19)

Versioning

This project follows the Semantic Versioning, (*20)

Thanks

An amazing "Thank you, guys!" for Jetbrains folks, who kindly empower this project with a free open-source license for PhpStorm which can bring a whole new level of joy for coding., (*21)

Jetbrains, (*22)

![PhpStorm][4], (*23)

The Versions

19/12 2016

dev-master

9999999-dev

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

19/12 2016

2.0.6

2.0.6.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

11/11 2016

2.0.5

2.0.5.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

06/10 2016

2.0.4

2.0.4.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

05/10 2016

2.0.3

2.0.3.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

12/08 2016

2.0.2

2.0.2.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

11/08 2016

2.0.1

2.0.1.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

11/08 2016

2.0.0

2.0.0.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

04/05 2015

1.0.4

1.0.4.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

04/05 2015

1.0.3

1.0.3.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

04/05 2015

1.0.2

1.0.2.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

30/04 2015

1.0.1

1.0.1.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit

30/04 2015

1.0.0

1.0.0.0

Laravel 5 Salesforce Force.com PHP Toolkit port

  Sources   Download

MIT

The Requires

 

The Development Requires

by Davis Peixoto

laravel laravel 5 salesforce crm force.com toolkit