Download the PHP package wabel/zoho-crm-copy-db without Composer
On this page you can find all versions of the php package wabel/zoho-crm-copy-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package zoho-crm-copy-db
Wabel's Zoho-CRM Database copier
What is this?
This project is a set of tools to help you copy your Zoho CRM records directly into your database. The tool will create new tables in your database matching Zoho records. If you are looking to synchronize data from ZohoCRM with your own tables, you should rather have a look at ZohoCRM Sync. It is built on top of the ZohoCRM ORM. Before reading further you should get used to working with ZohoCRM ORM, so if you do not know this library, STOP READING NOW and follow this link.
How does it work?
This projects provides a ZohoDatabaseCopier
class, with a simple fetchFromZoho
method. This method takes a ZohoDao
in argument.
ZohoDaos
can be created using the ZohoCRM ORM.
It also provides a ZohoDatabasePusher
class with a pushToZoho
method to push data to Zoho CRM.
ZohoDatabaseCopier for Module
Usage:
The copy command will create a 'zohoContacts' table in your database and copy all data from Zoho. Table names are prefixed by 'zoho'.
You can change the prefix using the second (optional) argument of the constructor:
By default, copy is performed incrementally. If you have touched some of the data in your database and want to copy again
everything, you can use the second parameter of the copy
method:
ZohoDatabaseCopier for Users
With the same $databaseCopier
you can fetch the users from zoho.
Usage:
php // $userResponse is the Zoho Client Response from zoho-crm-orm package. $databaseCopier->fetchUserFromZoho($userResponse); sh
Command to synchronize data (both ways)
$ console zoho:sync
Command to only fetch data from Zoho
$ console zoho:sync --fetch-only
Command to only push data to Zoho
$ console zoho:sync --push-only
Listeners
---------
For each `ZohoDatabaseCopier`, you can register one or many listeners. These listeners should implement the
[`ZohoChangeListener`](blob/2.0/src/ZohoChangeListener.php) interface.
You register those listener by passing an array of listeners to the 3rd parameter of the constructor:
All versions of zoho-crm-copy-db with dependencies
wabel/zoho-crm-orm Version ~1.0
doctrine/dbal Version ~2.5
symfony/console Version ~2.0 | ~3.0
mouf/utils.common.lock Version ~1.0
danielstjules/stringy Version ~2.2