Skip to content

🏭 Industry Standard Vtiger API Client

License

Notifications You must be signed in to change notification settings

javanile/vtiger-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f868087 Β· May 2, 2022
Mar 8, 2022
Mar 8, 2022
Mar 8, 2022
Jul 28, 2019
Mar 8, 2022
Jul 28, 2019
Jul 28, 2019
Sep 17, 2017
Mar 8, 2022
May 2, 2022
Mar 8, 2022
Mar 8, 2022
Mar 8, 2022
Mar 8, 2022
Jul 28, 2019

Repository files navigation

vtiger-client

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

LOOKING FOR FAST DEMO! Visit --> https://github.com/javanile/vtiger-demo <--

Get Started

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>>' 
]);

Command-line usage

Intall

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

Usage

vtc query "SELECT * FROM Contacts"

Test

Before test

docker-compose run --rm composer install

Test all

docker-compose run --rm phpunit tests

Test driven development

docker-compose run --rm phpunit tests --stop-on-failure

Run single test method

docker-compose run --rm phpunit tests --filter '/::testMethod/'