javanile/vtiger-client

安装量: 1,637

依赖关系: 1

建议者: 0

安全性: 0

星标: 10

关注者: 6

分支: 4

公开问题: 7

类型:项目

0.1.0 2022-04-07 15:38 UTC

README

StyleCI Build Status codecov Codacy Badge Latest Stable Version Total Downloads Latest Unstable Version License

寻找快速演示!访问 --> 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/'