New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

mncee/salesforce-sync

Package for syncing Salesforce objects with local data
2,060 3

Larablocks Analysis

mncee/salesforce-sync works with Laravel 9, 10 and 11 (latest release v2.0.0, Sep 13, 2024), all past end of life (the last on Mar 12, 2026): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 9, 10 and 11, past end of life since Mar 12, 2026
  • No release in the last 12 months (last: Sep 13, 2024)
  • 0 downloads a month (needs 10,000)
  • 3 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Sep 13, 2024.
  • No releases in the last 12 months.
  • First released: Feb 20, 2019.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 30, 2026.

Install
composer require mncee/salesforce-sync
Latest Version:v2.0.0
Laravel:9 · 10 · 11
License:MIT
Last Updated:Sep 13, 2024
Links: GitHub  ·  Packagist
Maintainer: jwilson-cee

Salesforce Sync

This package is for syncing Salesforce objects with local data in a Laravel app.

Works with Laravel 9, 10, and 11.

Use version ^1.0 for Laravel 5

Installation

This package can be installed via Composer by requiring the mncee/salesforce-sync package.

composer require mncee/salesforce-sync

For Laravel 5

composer require mncee/salesforce-sync:^1.0

Laravel Configuration

Environment Variables

Include the following environment variables in the .env file:

SALESFORCE_USERNAME=#your salesfore username#
SALESFORCE_PASSWORD=#your salesfore password#
SALESFORCE_TOKEN=#your salesfore token#
SALESFORCE_WSDL=#path to the wsdl stored in the storage/app/ directory#

Place your your Enterprise WSDL file into your app storage/app/ directory you specified in the .env file.

IMPORTANT: This package only works with Enterprise WSDL

Package Discovery

This packages Service Provider and Facade alias should be auto-discovered when requiring it with composer.

But if you need to add them manually, you can do so with the following instructions:

For Laravel 11

In the bootstrap/providers.php file add CEE\Salesforce\Laravel\SalesforceServiceProvider::class to the returned array.

// bootstrap/providers.php

return [
    App\Providers\AppServiceProvider::class,
    CEE\Salesforce\Laravel\SalesforceServiceProvider::class,
];

In the config/app.php file add these corresponding lines to the returned array.

// config/app.php

return [
    
    //...
    
    'aliases' => Facade::defaultAliases()->merge([
        'Salesforce' => \CEE\Salesforce\Laravel\Facades\Salesforce::class,
    ])->toArray(),
]
For Laravel 9 and 10

Find the providers key and aliases key in your config/app.php and add these corresponding lines to the returned array.

// config/app.php

return [
    
    //...
    
    'providers' => [
        // ...
        CEE\Salesforce\Laravel\SalesforceServiceProvider::class,
    ],
    
    'aliases' => [
        // ...
        'Salesforce' => \CEE\Salesforce\Laravel\Facades\Salesforce::class,
    ],
    
];

The SyncObject Class

This is the class to use for syncing local data with remote Salesforce objects.

Sub-class usage

Classes that inherit this class can perform functions for syncing (pushing and pulling) with a remote Salesforce object.

class Contact extends SyncObject
{
    public $objectName = 'Contact'; // Saleforce Object Name
    ...
}

$salesforceContact = new Contact();
$salesforceContact->push();
$salesforceContact->pull();

Functions need to be defined for pushing and pulling Salesforce object fields, and must use this naming convention:

public function push_<Salesforce field name>()
public function pull_<Salesforce field name>($value)

The push_...() functions should return a value that is to be pushed to the corresponding <Salesforce field name> of the remote Salesforce object.

    public function push_FirstName() {
        return DB::table('contact')->where('id', 1)->value('first_name');
    }

The pull_...($value) functions will have an argument containing the value corresponding to the <Salesforce field name> of the remote Salesforce object that can be used to update local data.

    public function pull_FirstName($firstName) {
        DB::table('contact')->where('id', 1)->update(['first_name' => $firstName]);
    }

It is not required to have both a push_...() and a pull_...() function for a given Salesforce field. Either or both can be used according to what is needed for syncing in either direction.

Static objectName() function and chaining usage

This class can also be used on it's own using the chaining functions:

SyncObject::objectName('Contact')
	->id('00A10000001aBCde')
	->pushFields(['FirstName' => 'John', 'LastName' => 'Doe'])
	->push();
	
$salesforceContact = SyncObject::objectName('Contact')
	->id('00A10000001aBCde')
	->pullFields(['FirstName', 'LastName'])
	->pull();

Related Packages

davispeixoto/laravel5-salesforce

Laravel 5 Salesforce Force.com PHP Toolkit port

143,790 47
davispeixoto/laravel-salesforce

Laravel 4 Salesforce Force.com PHP Toolkit port

34,131 13
khachik/laravel7-salesforce

Laravel 7 Salesforce Force.com PHP Toolkit port

20,004 0
kunal4sd/laravel6-salesforce-soapapi

Laravel 6 Salesforce Force.com PHP Toolkit port

1,078 0
synergitech/laravel-salesforce

This package uses omniphx/forrest to provide an Eloquent-style way of querying s...

63,331 0

Version History

Version Released Laravel License
v2.0.0 ^9.0|^10.0|^11.0 MIT
v1.0.9 MIT
v1.0.8 MIT
v1.0.7 MIT
v1.0.6 MIT