navari / laravel-zoho-desk
This package adds Zoho Desk API support to Laravel
Fund package maintenance!
Navari
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.8
- illuminate/contracts: ^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.5
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-12-08 20:16:23 UTC
README
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Installation
You can install the package via composer:
composer require navari/laravel-zoho-desk
You can publish the config file with:
php artisan vendor:publish --tag="laravel-zoho-desk-config"
This is the contents of the published config file:
return [ 'organizationId' => env('ZOHO_DESK_ORGANIZATION_ID', ''), 'departmentId' => env('ZOHO_DESK_DEPARTMENT_ID', ''), 'clientId' => env('ZOHO_DESK_CLIENT_ID', ''), 'clientSecret' => env('ZOHO_DESK_CLIENT_SECRET', ''), 'oAuthBaseUrl' => env('ZOHO_DESK_OAUTH_BASE_URL', ''), 'refreshToken' => env('ZOHO_DESK_REFRESH_TOKEN', ''), 'baseApiUrl' => env('ZOHO_DESK_BASE_API_URL', 'https://desk.zoho.com/api/v1/'), 'agentEmail' => env('ZOHO_DESK_AGENT_EMAIL', ''), ];
Usage
$createTicketEntity = new \Navari\ZohoDesk\Entities\CreateTicketEntity(); $createTicketEntity->firstName = 'Larus'; $createTicketEntity->lastName = 'Navari'; $createTicketEntity->email = 'larustr@gmail.com'; $createTicketEntity->subject = 'Test Ticket'; $createTicketEntity->departmentId = '123456789'; $createTicketEntity->message = 'This is a test ticket'; $ticket = \Navari\ZohoDesk\ZohoDesk::createTicket($createTicketEntity);
Usage for other methods
All methods usage will be similar to the above example
Testing
composer test
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
License
The MIT License (MIT). Please see License File for more information.