LOOKING FOR FAST DEMO! Visit --> 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>>'
]);
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/'