Download the PHP package mncee/salesforce-sync without Composer

On this page you can find all versions of the php package mncee/salesforce-sync. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package salesforce-sync

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.

For Laravel 5

Laravel Configuration

Environment Variables

Include the following environment variables in the .env file:

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.

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

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.

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.

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

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

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.

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:


All versions of salesforce-sync with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^9.0|^10.0|^11.0
ext-soap Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mncee/salesforce-sync contains the following files

Loading the files please wait ....