organit / zoho
zoho crud
Requires (Dev)
- guzzlehttp/psr7: ^1.3.1
This package is auto-updated.
Last update: 2024-09-09 13:28:00 UTC
README
phpunit --test-suffix ContactTest.php phpunit --filter it_fetch_the_invoices_for_a_given_contact
## 安装 composer require organit/zoho
app/config App\Providers\RouteServiceProvider::class,
用法
Zoho::organization()->get()
--
$PICAFLOR = Zoho::organization()->init('84525121'); //organization_id $contacts = $PICAFLOR->contacts()->index()['data'];
贡献
Organit
安全漏洞
如果你在 Laravel 中发现安全漏洞,请发送电子邮件到 Taylor Otwell(taylor@laravel.com)。所有安全漏洞都将得到及时处理。
许可证
Laravel 框架是开源软件,使用 MIT 许可证授权。
1 - 创建目录;/Packages/Organit/zoho 2 - 终端:cd Packages/Organit/zoho 3 - 终端 composer init 4 - 从示例复制 src 目录(此处) 5 - 自定义 6 - 修改 composer.json(主要) ... "autoload": { "classmap": [ "database" ], "psr-4": { "App": "app/", "Organit\Zoho\"::"Packages/Organit/Zoho" } }, ... 7 - 从主目录 composer dump-autoload 8 - 在 config/app 中添加 serviceprovider:Organit\Zoho\ZohoServiceProvider::class, +facade 'Zoho' => Organit\Zoho\ZohoFacade::class, 9 - cd Packages/Organit/Zoho > git init
10 - 获取 github 的 url 并粘贴到 packagist 11 - 在 packagist 上创建 repo + 添加 webhook
创建版本 Tag git tag -a 1.0.0 -m "第一个版本" git push --tags
测试 - phpunit 12 - 将此添加到 phpunit.xml
...
<testsuites>
<testsuite name="Application Test Suite">
<directory suffix="Test.php">./tests</directory>
</testsuite>
<testsuite name="Package Test Suite">
<directory suffix="Test.php">./Packages/Organit/Zoho/tests</directory>
</testsuite>
</testsuites>
...
////////// 添加类 Snippets(例如==>创建发票) 1 - /tests/TestCase.php
public function zoho()
{
return new ZohoSnippets;
}
2 - 在 packages/Test 中创建名为 Snippets 的类
3 - //使用:Parent::zoho()->createContact()