javanile / vtiger-client
0.1.0
2022-04-07 15:38 UTC
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpunit/phpunit: ^6.5
README
寻找快速演示!访问 --> https://github.com/javanile/vtiger-demo <--
开始使用
composer require javanile/vtiger-client
<?php use Javanile\VtigerClient\VtigerClient; $client = new VtigerClient('http://my-vtiger-host'); $client->login('<<username>>', '<<accessKey>>'); $cliet->create('Leads', [ 'email' => '<<lead@email>>' ]);
命令行使用
安装
curl -sLo vtc https://github.com/javanile/vtiger-client/releases/download/0.1.0/vtc.phar chmod +x vtc sudo mv vtc /usr/local/bin/ vtc
使用方法
vtc query "SELECT * FROM Contacts"
测试
测试前
docker-compose run --rm composer install
测试全部
docker-compose run --rm phpunit tests
测试驱动开发
docker-compose run --rm phpunit tests --stop-on-failure
运行单个测试方法
docker-compose run --rm phpunit tests --filter '/::testMethod/'