organit / google
google 登录 - 邮箱 - 驱动器等...
Requires (Dev)
- guzzlehttp/psr7: ^1.3.1
This package is auto-updated.
Last update: 2024-09-09 14:09:12 UTC
README
phpunit --test-suffix ContactTest.php phpunit --filter it_fetch_the_invoices_for_a_given_contact
##安装 !!!!! 不起作用 composer require organit/google
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 0.0.1 -m "first version" 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 的 Snippets 类
3 - //使用:Parent::zoho()->createContact()