Download the PHP package mkwsra/zoho without Composer
On this page you can find all versions of the php package mkwsra/zoho. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package zoho
Zoho
This package used to integrate with the new Zoho CRM
Requirements
- Get yourself a Zoho CRM account.
- Register your application
- PHP >= 7.2
- Laravel >= 6.*
Installation
Add Zoho CRM to your composer file via the composer require
command:
Or add it to composer.json
manually:
Zoho CRM service providers will be automatically registered using Laravel's auto-discovery feature.
Configuration
The default configuration settings set in config/zoho.php
. Copy this file to your own config directory to modify the values. You can publish the config using this command:
You'll need to add the following variables to your .env file. Use the credentials previously obtained registering your application.
Then, follow the next steps:
- Go to Zoho CRM Developer Console.
- ADD CLIENT
Server-based Applications
. - Enter Client Name
Any name you want
- Enter Homepage URL
your base home url
- Enter Authorized Redirect URIs
config('app.url') . /zoho/oauth2callback
-
Go to your project location on terminal and enter
- Copy the generated link and past it in the browser to complete the oAuth process.
Now Zoho CRM is ready to use.
Testing
before testing make sure to create file ZCRMClientLibrary.log on
and put your zcrm_oauthtokens.txt on
finally put your Env keys
How to use
use ZOHO Facade like this
this will return an instance of ZohoModules
Model Can be used like this:-
Available only starting from v1.1.0
add Zohoable
as extended class like this:-
so now you can use invoice like this
Note: To use the Invoice like this, you must have the invoices
table in your database just like you would for any Laravel model. This allows you to save data to the database and also be able to link it to the zohos
table and use all the functions in Zohoable
. Use the CRUD functions below if you do not intend to use the Zohoable model this way.
CRUD Can be used like this:-
READ
UPDATE
CREATE
DELETE
SEARCH
Word
Phone
Criteria
Custom
you can also make CriteriaBuilder like this
International Versions
If you're using zoho.com, you don't have to change anything.
If you're using zoho.eu, add to .env
:
If you're using zoho.com.cn, add to .env
:
License
MIT License. Copyright (c) 2020, Asciisd
Support
Contact:
asciisd.com
[email protected]
+2-010-1144-1444
All versions of zoho with dependencies
ext-json Version *
illuminate/support Version ^6.0|^7.0|^8.0
nesbot/carbon Version ^2.0
zohocrm/php-sdk-archive Version ^2.2