Download the PHP package php-arsenal/safe-salesforce-saver-bundle without Composer
On this page you can find all versions of the php package php-arsenal/safe-salesforce-saver-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download php-arsenal/safe-salesforce-saver-bundle
More information about php-arsenal/safe-salesforce-saver-bundle
Files in php-arsenal/safe-salesforce-saver-bundle
Package safe-salesforce-saver-bundle
Short Description Allows you to save your objects to Salesforce safely
License MIT
Homepage https://github.com/php-arsenal/safe-salesforce-saver-bundle
Informations about the package safe-salesforce-saver-bundle
SafeSalesforceSaver
About
With this bundle you can stop worrying about your data getting lost when trying to save information to Salesforce. The SafeSalesforceSaver will take the objects you give it and place them in a queue. The items are taken out of the queue one by one to prevent Salesforce from getting overwhelmed if you decide to save hundreds (or thoussands) of objects at once. If an exception does occur during the save process, rabbit will simply retry the save a few moments later while logging the error away so you can debug what went wrong.
Installation
$ composer require php-arsenal/safe-salesforce-saver-bundle
Depending on your Symfony version you either have to register the bundle in app/AppKernel.php
(Symfony 3.4 and lower):
Or (Symfony 4.0 and higher) in your config/bundles.php
:
Usage
To get this bundle to work you will have to start the queues in your rabbit client. To do this you have to add the following configuration to your projects config.yml:
It is important that you do not change the names of the queues as this could lead to issues. The above configuration assumes that you already have the default configuration for rabbitMQ set up. If not, please refer to the readme file of the rabbit bundle on github.
In order to actually save your objects to Salesforce they have to be annotated in the right way. See the mapper bundle on github.
When you have updated your configuration and models you can save them in two different ways. Synchronous or a-synchronous:
All versions of safe-salesforce-saver-bundle with dependencies
ext-ctype Version *
ext-iconv Version *
php-amqplib/rabbitmq-bundle Version ^2.6
php-arsenal/salesforce-mapper-bundle Version ^4.0
symfony/config Version ^5.2
symfony/dependency-injection Version ^5.2
symfony/dotenv Version ^5.2
symfony/http-kernel Version ^5.2
symfony/yaml Version ^5.2