Download the PHP package optimacloud/zoho-laravel without Composer
On this page you can find all versions of the php package optimacloud/zoho-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download optimacloud/zoho-laravel
More information about optimacloud/zoho-laravel
Files in optimacloud/zoho-laravel
Package zoho-laravel
Short Description Laravel Zoho API V3 Package
License MIT
Homepage https://github.com/optimacloud/zoho-laravel
Informations about the package zoho-laravel
Zoho Laravel API V6 Package
This package used to integrate with the Zoho V6 Api CRM
Requirements
- PHP >= 8.0
- Laravel >= 8.0
Registering a Zoho Client
Since Zoho CRM APIs are authenticated with OAuth2 standards, you should register your client app with Zoho. To register your app:
- Visit this page https://api-console.zoho.com/
- Click on
ADD CLIENT
. - Choose a
Self Client
. - Create grant token by providing the necessary scopes, time duration (the duration for which the generated token is valid) and Scope Description.
- Your Client app would have been created and displayed by now.
- Select the created OAuth client.
- User this scope
aaaserver.profile.READ,ZohoCRM.modules.ALL,ZohoCRM.settings.ALL
when you create the grant token.
Installation
You can install the package via composer require
:
After installing the package you can publish the config file with:
after that you need to create the OAuth client and get the credentials from Zoho by run the following command:
You'll need to add the following variables to your .env file. Use the credentials previously obtained registering your application.
After that you need to run the following command to add token and refresh token to your storage
You can publish the config file with:
You can publish and run the migrations with:
Environments
maybe in some cases you wish to enforce zoho to use one of zoho's environments, so you can go to AppServiceProvider
and use Zoho::useEnvironment()
method
So that will override config settings.
Usage
To retrieve all modules from Zoho.
Models 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
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
:
Support
Contact:
optimacloud.com
[email protected]
+2-010-1144-1444
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- aemaddin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of zoho-laravel with dependencies
illuminate/contracts Version ^9.0|^10.0
spatie/laravel-package-tools Version ^1.14.2
zohocrm/php-sdk-6.0 Version ^1.0