Download the PHP package asciisd/zoho without Composer
On this page you can find all versions of the php package asciisd/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
For a new package please visit - ZohoV3
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.
please note that for
ZOHO_REDIRECT_URI
you need to put yourapp_url
as it is in.env
file suffixed by/zoho/oauth2callback
for ex.https://asciisd.com/zoho/oauth2callback
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 ^7.0|^8.0|^9.0
nesbot/carbon Version ^2.0
asciisd/zcrm-php-sdk Version ^2.0