masmaleki/zoho-v3
Composer 安装命令:
composer require masmaleki/zoho-v3
包简介
Zoho all in one for Laravel
关键字:
README 文档
README
Laravel package for integration with the Zoho v3 API (CRM + Books + Inventory) with multi-organization token support.
Installation
Install the package via Composer:
composer require masmaleki/zoho-one
Publish and run the migrations:
php artisan vendor:publish --tag="zoho-one-migrations"
php artisan migrate
Publish the config file:
php artisan vendor:publish --tag="zoho-one-config"
The config is published to config/zoho-one.php. Reference values in your app via config('zoho-one.*').
Upgrading from masmaleki/zoho-v3 or masmaleki/zoho-v4
This package was previously published as masmaleki/zoho-v3 and briefly as masmaleki/zoho-v4.
The package name no longer carries a version suffix; the underlying database table is still
named zoho_v4 (it is an internal implementation detail and is not renamed again to avoid
forcing another migration on existing installs).
To upgrade:
-
Swap the Composer requirement:
composer remove masmaleki/zoho-v3 # or masmaleki/zoho-v4 composer require masmaleki/zoho-one -
Publish and run the migrations. Two guarded upgrade migrations ship with the package (both are idempotent and safe to re-run):
php artisan vendor:publish --tag="zoho-one-migrations" php artisan migraterename_zoho_v3_to_zoho_v4_tablerenames the legacyzoho_v3table tozoho_v4(no-op if you are already onzoho_v4or on a fresh install).add_organization_id_to_zoho_v4_tableadds theorganization_idcolumn required by the multi-organization feature (no-op if already present).
-
Re-publish the config (it has been renamed to
config/zoho-one.php) and copy any custom values from your oldconfig/zoho-v3.phporconfig/zoho-v4.php:php artisan vendor:publish --tag="zoho-one-config"Update any
config('zoho-v3.*')orconfig('zoho-v4.*')calls in your application code toconfig('zoho-one.*').
Compatibility
| Component | Range |
|---|---|
| PHP | 8.2 / 8.3 / 8.4 |
| Laravel | 10.x / 11.x / 12.x / 13.x |
Zoho Books customization resources
The package includes helpers for Zoho Books customization resources. These methods use the configured
Books API base URL from config('zoho-one.books_api_base_url'), the saved Zoho access token, and the
Zoho Books organization ID passed to the method.
use Masmaleki\ZohoAllInOne\ZohoAllInOne; $organizationId = 123456789; $customField = ZohoAllInOne::createBooksCustomField([ 'label' => 'Internal Number', 'data_type' => 'string', ], $organizationId); $webhook = ZohoAllInOne::createBooksWebhook([ 'name' => 'Sales order sync', 'url' => 'https://example.com/api/zoho/books/webhook', ], $organizationId); $customFunction = ZohoAllInOne::createBooksCustomFunction([ 'name' => 'Sync sales order', 'script' => '// Deluge script body', ], $organizationId); $customAction = ZohoAllInOne::createBooksCustomAction([ 'name' => 'Run sync', ], $organizationId);
Available helper groups:
ZohoAllInOne::getBooksCustomFields($organizationId, $query = []); ZohoAllInOne::createBooksCustomField($data, $organizationId); ZohoAllInOne::getBooksCustomField($fieldId, $organizationId); ZohoAllInOne::updateBooksCustomField($fieldId, $data, $organizationId); ZohoAllInOne::deleteBooksCustomField($fieldId, $organizationId); ZohoAllInOne::getBooksWebhooks($organizationId, $query = []); ZohoAllInOne::createBooksWebhook($data, $organizationId); ZohoAllInOne::getBooksWebhook($webhookId, $organizationId); ZohoAllInOne::updateBooksWebhook($webhookId, $data, $organizationId); ZohoAllInOne::deleteBooksWebhook($webhookId, $organizationId); ZohoAllInOne::getBooksCustomFunctions($organizationId, $query = []); ZohoAllInOne::createBooksCustomFunction($data, $organizationId); ZohoAllInOne::getBooksCustomFunction($functionId, $organizationId); ZohoAllInOne::updateBooksCustomFunction($functionId, $data, $organizationId); ZohoAllInOne::deleteBooksCustomFunction($functionId, $organizationId); ZohoAllInOne::getBooksCustomActions($organizationId, $query = []); ZohoAllInOne::createBooksCustomAction($data, $organizationId); ZohoAllInOne::getBooksCustomAction($actionId, $organizationId); ZohoAllInOne::updateBooksCustomAction($actionId, $data, $organizationId); ZohoAllInOne::deleteBooksCustomAction($actionId, $organizationId);
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.
masmaleki/zoho-v3 适用场景与选型建议
masmaleki/zoho-v3 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 194 次下载、GitHub Stars 达 4, 最近一次更新时间为 2022 年 08 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「Zoho」 「masmaleki」 「zoho-one」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 masmaleki/zoho-v3 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 masmaleki/zoho-v3 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 masmaleki/zoho-v3 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package contains code to help you copy ZohoCRM records directly into your database.
Zoho Sign v1 API PHP Wrapper - PHP 7.4 Ready
Free and Open Source Marketing Automation API for laravel 8
A class to consume Zoho's Creator and Reports API.
Zoho OAuth 2.0 Client Provider for The PHP League OAuth2-Client
Alfabank REST API integration
统计信息
- 总下载量: 194
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-30