PHPackages                             kunal4sd/laravel6-salesforce-soapapi - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kunal4sd/laravel6-salesforce-soapapi

ActiveLibrary

kunal4sd/laravel6-salesforce-soapapi
====================================

Laravel 6 Salesforce Force.com PHP Toolkit port

3.7(5y ago)01.0k↓100%MITPHPPHP &gt;=7.2.0CI failing

Since Apr 30Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kunal4sd/laravel6-salesforce-soapapi)[ Packagist](https://packagist.org/packages/kunal4sd/laravel6-salesforce-soapapi)[ RSS](/packages/kunal4sd-laravel6-salesforce-soapapi/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (4)Versions (20)Used By (0)

Laravel 5 Salesforce
====================

[](#laravel-5-salesforce)

This Laravel 5 package provides an interface for using [Salesforce CRM](http://www.salesforce.com/) through its **SOAP API**.

*(Laravel 4 Salesforce Package can be found [here](https://github.com/davispeixoto/Laravel-4-Salesforce))*

[![Latest Stable Version](https://camo.githubusercontent.com/04ce6a0b3347f43c354560f8806e278f23198e6118300142ebbbeb7ba25d74e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766973706569786f746f2f6c61726176656c352d73616c6573666f7263652e737667)](https://packagist.org/packages/davispeixoto/laravel5-salesforce)[![Total Downloads](https://camo.githubusercontent.com/efb695af332aaa044161ce027537e59e05e7d6fe3a61be2228030b2f573cc10b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461766973706569786f746f2f6c61726176656c352d73616c6573666f7263652e737667)](https://packagist.org/packages/davispeixoto/laravel5-salesforce)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3c2ebd38b845b065a7482c3009b9485e96680618dd57c2c811e132047c0acc42/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461766973706569786f746f2f4c61726176656c2d352d53616c6573666f7263652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davispeixoto/Laravel-5-Salesforce/?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/1377474c889f0c63b3c0d093b8395bdf7c43657783dad9f9f08968a71d8de836/68747470733a2f2f7777772e636f646163792e636f6d2f70726f6a6563742f62616467652f6266353531636539306333343439326361353463343734383233346137326361)](https://www.codacy.com/app/davis-peixoto/Laravel-5-Salesforce)[![Code Climate](https://camo.githubusercontent.com/a51f0e8a30670d87d079f251ce27ceeeb6d2a071c97bd11560d7b5db3f9a7f3f/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6461766973706569786f746f2f4c61726176656c2d352d53616c6573666f7263652f6261646765732f6770612e737667)](https://codeclimate.com/github/davispeixoto/Laravel-5-Salesforce)[![Build Status](https://camo.githubusercontent.com/c333b5edad803d331edaf8b52c3e3451cab5891d02b9148ad645330ec3b59c4f/68747470733a2f2f7472617669732d63692e6f72672f6461766973706569786f746f2f4c61726176656c2d352d53616c6573666f7263652e737667)](https://travis-ci.org/davispeixoto/Laravel-5-Salesforce)[![SensioLabsInsight](https://camo.githubusercontent.com/e63e5d21b4621c9c85980acdbdd81217abb3ed66d4e2b16f098a4f43841c52d5/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30303439393264312d393061372d346264362d396461652d3264386235343133383661652f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/004992d1-90a7-4bd6-9dae-2d8b541386ae)

Major upgrade
-------------

[](#major-upgrade)

This package is intended to support both Laravel 5.1 LTS and 5.2+.

Laravel 5.1 package will be kept under version 1.\* Laravel 5.2 package will be kept under version 2.\*

Consider this when installing or upgrading

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

Installation
------------

[](#installation)

The Laravel 5 package can be installed via [Composer](http://getcomposer.org) by requiring the `davispeixoto/laravel5-salesforce` package in your project's `composer.json`.

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

And running a composer update from your terminal:

```
php composer.phar update
```

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

Find the `providers` key in your `config/app.php` and register the AWS Service Provider.

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

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

Configuration
-------------

[](#configuration)

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

```
SALESFORCE_USERNAME
SALESFORCE_PASSWORD
SALESFORCE_TOKEN

```

Place your [your **enterprise** WSDL file](https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps_generate_wsdl.htm) into your app `storage/app/wsdl/` directory.

To customize the configuration file, publish the package configuration using Artisan.

```
php artisan vendor:publish
```

Update the settings in the generated `config/salesforce.php` configuration file with your credentials.

```
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

Usage
-----

[](#usage)

That's it! You're all set to go. Just use:

```
    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
----------------

[](#more-information)

Check out the [SOAP API Salesforce Documentation](http://www.salesforce.com/us/developer/docs/api/index_Left.htm)

License
-------

[](#license)

This software is licensed under the [MIT license](http://opensource.org/licenses/MIT)

Versioning
----------

[](#versioning)

This project follows the [Semantic Versioning](http://semver.org/)

Thanks
------

[](#thanks)

An amazing "Thank you, guys!" for [Jetbrains](https://www.jetbrains.com/) folks, who kindly empower this project with a free open-source license for [PhpStorm](https://www.jetbrains.com/phpstorm/) which can bring a whole new level of joy for coding.

[![Jetbrains](https://camo.githubusercontent.com/e587725eb6fa1bcaa58f3a064c2d5ee1da5160886d694fff14c4ad3b5c3939ec/68747470733a2f2f7777772e6a6574627261696e732e636f6d2f636f6d70616e792f646f63732f6c6f676f5f6a6574627261696e732e706e67)](https://www.jetbrains.com/)

[![PhpStorm](https://camo.githubusercontent.com/e32c61f7eb5653957b4572800397cff97a37a4999054b7b48bb3610cb4c762ce/68747470733a2f2f64336e6d7435766c7a756e6f61312e636c6f756466726f6e742e6e65742f70687073746f726d2f66696c65732f323031352f31322f50687053746f726d5f343030783430305f547769747465725f6c6f676f5f77686974652e706e67)](https://www.jetbrains.com/phpstorm/)

###  Health Score

32

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Recently: every ~75 days

Total

19

Last Release

1909d ago

Major Versions

1.0.4 → 2.0.02016-08-11

2.0.6 → 3.0.02019-04-03

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

3.0.0PHP ^7.1.3

3.7PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c5587a1b0222401527355aa2ce2b1a6e6a0296fb3e72496c1eca9b905ca8526?d=identicon)[kunal4sd](/maintainers/kunal4sd)

---

Top Contributors

[![davispeixoto](https://avatars.githubusercontent.com/u/1113230?v=4)](https://github.com/davispeixoto "davispeixoto (20 commits)")[![kunal4sd](https://avatars.githubusercontent.com/u/33282993?v=4)](https://github.com/kunal4sd "kunal4sd (8 commits)")[![AlexLombry](https://avatars.githubusercontent.com/u/1451210?v=4)](https://github.com/AlexLombry "AlexLombry (1 commits)")[![josecanhelp](https://avatars.githubusercontent.com/u/2329654?v=4)](https://github.com/josecanhelp "josecanhelp (1 commits)")[![karlpatrickespiritu](https://avatars.githubusercontent.com/u/10472504?v=4)](https://github.com/karlpatrickespiritu "karlpatrickespiritu (1 commits)")[![robdudley](https://avatars.githubusercontent.com/u/1560505?v=4)](https://github.com/robdudley "robdudley (1 commits)")

---

Tags

laravellaravel 6crmsalesforceforce.com toolkit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kunal4sd-laravel6-salesforce-soapapi/health.svg)

```
[![Health](https://phpackages.com/badges/kunal4sd-laravel6-salesforce-soapapi/health.svg)](https://phpackages.com/packages/kunal4sd-laravel6-salesforce-soapapi)
```

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 6/7/8/9/10/11/12 service provider for including the AWS SDK for PHP.

1.7k34.8M69](/packages/aws-aws-sdk-php-laravel)[davispeixoto/laravel5-salesforce

Laravel 5 Salesforce Force.com PHP Toolkit port

47142.5k1](/packages/davispeixoto-laravel5-salesforce)[davispeixoto/laravel-salesforce

Laravel 4 Salesforce Force.com PHP Toolkit port

1332.9k](/packages/davispeixoto-laravel-salesforce)[efficiently/jquery-laravel

This package provides jQuery and the jQuery-ujs driver for your Laravel &gt;= 6 application.

1411.0k](/packages/efficiently-jquery-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
