PHPackages                             davispeixoto/laravel-salesforce - 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. [API Development](/categories/api)
4. /
5. davispeixoto/laravel-salesforce

ActiveLibrary[API Development](/categories/api)

davispeixoto/laravel-salesforce
===============================

Laravel 4 Salesforce Force.com PHP Toolkit port

3.0.5(9y ago)1433.1k↓37.5%16MITPHPPHP &gt;=5.4.0

Since Mar 3Pushed 9y ago3 watchersCompare

[ Source](https://github.com/davispeixoto/Laravel-4-Salesforce)[ Packagist](https://packagist.org/packages/davispeixoto/laravel-salesforce)[ RSS](/packages/davispeixoto-laravel-salesforce/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (34)Used By (0)

Laravel 4 Salesforce
====================

[](#laravel-4-salesforce)

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

[![Latest Stable Version](https://camo.githubusercontent.com/9a1f9ccc24b3da44bd6bdada18ad8cd8c48f806c4678214b522c181ba2cf796f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6461766973706569786f746f2f6c61726176656c2d73616c6573666f7263652e737667)](https://packagist.org/packages/davispeixoto/laravel-salesforce)[![Total Downloads](https://camo.githubusercontent.com/06fa0c359755273bd6614f168b92f947200e0e7cf0fc5155cc01ca0670565de1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6461766973706569786f746f2f6c61726176656c2d73616c6573666f7263652e737667)](https://packagist.org/packages/davispeixoto/laravel-salesforce)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bd246b861bf7346e629c1aad44f84ebc716a1e31479c247470fff215be029bba/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461766973706569786f746f2f4c61726176656c2d342d53616c6573666f7263652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davispeixoto/Laravel-4-Salesforce/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/b92fadbe170a663f833c566e38d12d68797e7502dc3c306d4f40a80aebfedccd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461766973706569786f746f2f4c61726176656c2d342d53616c6573666f7263652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davispeixoto/Laravel-4-Salesforce/?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/9357bc3fa3dd2e9f3bc05008f172781538a5444703e81bd66ac0ebdfcdd56ade/68747470733a2f2f7777772e636f646163792e636f6d2f70726f6a6563742f62616467652f6130653863373664303438643434313139346434636662303336343262643063)](https://www.codacy.com/app/davis-peixoto/Laravel-4-Salesforce)[![Code Climate](https://camo.githubusercontent.com/961facd253535f327735a3013b2889b7da1025753b0e31d919cad0ca3ad837db/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6461766973706569786f746f2f4c61726176656c2d342d53616c6573666f7263652f6261646765732f6770612e737667)](https://codeclimate.com/github/davispeixoto/Laravel-4-Salesforce)[![Build Status](https://camo.githubusercontent.com/e082cb7f0673f74957b7e951b74a009cf0011a3fbc0393aeb77023abb96f0eac/68747470733a2f2f7472617669732d63692e6f72672f6461766973706569786f746f2f4c61726176656c2d342d53616c6573666f7263652e7376673f6272616e63683d322e302e35)](https://travis-ci.org/davispeixoto/Laravel-4-Salesforce)[![SensioLabsInsight](https://camo.githubusercontent.com/cdd1d94ae7e7532925f14144a69f1e27157ccc9b5e5b32af557e7ac4661bf621/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f33623933313364352d313334302d343435392d393937332d3037306531396332383962632f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/3b9313d5-1340-4459-9973-070e19c289bc)

Major update notice (3.\*)
--------------------------

[](#major-update-notice-3)

I have recently changed this package structure for addressing [this issue](https://github.com/davispeixoto/Laravel-4-Salesforce/issues/13). This change will require the alias declaration into `app/config/app.php` once the package initialization is now deferred. **Please verify aliases before upgrading existing implementations to use this version**

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

[](#installation)

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

```
    "require": {
        "laravel/framework": "4.*",
        "davispeixoto/laravel-salesforce": "3.0.*"
    }
```

Next, update Composer from the Terminal:

```
    composer update
```

Once this operation completes, still in Terminal run:

```
	php artisan config:publish davispeixoto/laravel-salesforce
```

### Configuration

[](#configuration)

Update the settings in the generated `app/config/packages/davispeixoto/laravel-salesforce` configuration file with your salesforce credentials.

Ensure you put [your WSDL file](https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_quickstart_steps_generate_wsdl.htm) 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 and aliases arrays.

```
    'providers' => array(
        // other Laravel service providers ...
        'Davispeixoto\LaravelSalesforce\LaravelSalesforceServiceProvider'
    ),

    ...

    'aliases' => array(
        // other Laravel aliases
        'Salesforce' => 'Davispeixoto\LaravelSalesforce\Facades\Salesforce'
     );
```

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

[](#more-information)

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

### License

[](#license)

This Salesforce Force.com Toolkit for PHP port is open-sourced software 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

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 94% 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 ~29 days

Recently: every ~15 days

Total

33

Last Release

3507d ago

Major Versions

1.0.15 → 2.0.02014-08-12

1.0.16 → 2.0.12014-10-20

2.0.8 → 3.0.0.x-dev2015-11-21

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/77ce0bed19c054d8812aedfbd93a6d3a9e40935a818917fa4c6c5427bb447d3b?d=identicon)[davispeixoto](/maintainers/davispeixoto)

---

Top Contributors

[![davispeixoto](https://avatars.githubusercontent.com/u/1113230?v=4)](https://github.com/davispeixoto "davispeixoto (47 commits)")[![AlexLombry](https://avatars.githubusercontent.com/u/1451210?v=4)](https://github.com/AlexLombry "AlexLombry (2 commits)")[![thiagocoelho](https://avatars.githubusercontent.com/u/472693?v=4)](https://github.com/thiagocoelho "thiagocoelho (1 commits)")

---

Tags

laravelcrmLaravel 4salesforceforce.com toolkit

### Embed Badge

![Health badge](/badges/davispeixoto-laravel-salesforce/health.svg)

```
[![Health](https://phpackages.com/badges/davispeixoto-laravel-salesforce/health.svg)](https://phpackages.com/packages/davispeixoto-laravel-salesforce)
```

###  Alternatives

[davispeixoto/laravel5-salesforce

Laravel 5 Salesforce Force.com PHP Toolkit port

47142.8k1](/packages/davispeixoto-laravel5-salesforce)[asciisd/zoho

Asciisd Zoho provide an elegant and easy way to communicate with Zoho CRM.

3751.9k](/packages/asciisd-zoho)[philo/laravel-twitter

A simple Laravel 4 service provider for including the TwitterOAuth library.

5019.5k](/packages/philo-laravel-twitter)[dotzero/laravel-amocrm

ServiceProvider и Facade для Laravel 5 предоставляющие интеграцию с API amoCRM

3229.2k](/packages/dotzero-laravel-amocrm)[ricardofontanelli/laravel-telegram

A simple and lightweight Laravel 4 and 5 wrapper to interact with Telegram Bot.

103.6k](/packages/ricardofontanelli-laravel-telegram)

PHPackages © 2026

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