Library for work with Vetmanager REST API. Now url address has format $domain.vetmanager.ru for example: myclinic76.vetmanager.ru But this url format can changes in future.
If you want stable application for Vetmanager REST API, please use this library
composer require otis/vetmanager-api:@dev
use function Otis22\VetmanagerApi\url;
echo url('myclinic') . "\n";
Where 'myclinic' is first part from your clinic url. $domain.vetmanager.ru
use function Otis22\VetmanagerApi\url;
use function Otis22\VetmanagerApi\credentials;
use function Otis22\VetmanagerApi\token;
$credentials = credentials('login', 'password', 'app_name');
$url = url('myclinic');
echo token($credentials, $url) . "\n";
Where:
- 'myclinic' - first part from your clinic url. $domain.vetmanager.ru
- 'login' - user login
- 'password' - user password
- 'app_name' - name application will use this token
cd docker
docker-compose up
now you can connect to terminal
docker exec -it vetmanager-api /bin/bash
#validate composer json
composer check-composer
#static analyzes and codestyle
composer static
#run unit tests
composer unit-tests
#run all tests
composer all-tests