PHP code example of sumer5020 / laravel-zoho-books

1. Go to this page and download the library: Download sumer5020/laravel-zoho-books library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

sumer5020 / laravel-zoho-books example snippets


use Sumer5020\ZohoBooks\Facades\ZohoBooksFacade;
# or
use ZohoBooks;

$token = ZohoBooksFacade::authentications()->refreshAccessToken($refresh_token);

$status = ZohoBooksFacade::authentications()->revokeRefreshAccessToken($access_token, $refresh_token);
sh
php artisan vendor:publish --provider=Sumer5020\ZohoBooks\ZohoBooksServiceProvider
sh
php artisan vendor:publish --tag=zohoBooks.config
sh
php artisan vendor:publish --tag=zohoBooks.migrations

# Migrate the database
php artisan migrate