javanile / vtiger-client
Installs: 1 712
Dependents: 1
Suggesters: 0
Security: 0
Stars: 10
Watchers: 6
Forks: 4
Open Issues: 7
Type:project
Requires
- php: >=7.0
- ext-json: *
- guzzlehttp/guzzle: ^7.4
Requires (Dev)
- phpunit/phpunit: ^6.5
README
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/'