otis22 / vetmanager-url
Vetmanager - CRM for veterinary. All vetmanager clients has access to their crm via URL. Now Vetmanager is changing server architecure and URL can changes. This project for getting full URL by only first part. Use this library avoid hardcode.
Installs: 1 094
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Requires
- php: ^7.4 | ^8.0
- ext-json: *
- elegant-bro/interfaces: ^1.1
Requires (Dev)
- otis22/php-coverage-checker: ^1.2
- php-coveralls/php-coveralls: ^2.2
- phpstan/phpstan: ^0.12.19
- phpunit/phpcov: ^8.0
- phpunit/phpunit: ^9.1
- squizlabs/php_codesniffer: 3.*
- wapmorgan/php-deprecation-detector: ^2.0
README
Vetmanager Url
Vetmanager - CRM for veterinary. All vetmanager clients has access to their crm via URL. Now Vetmanager is changing server architecure and URL can changes. This project for getting full URL by only first part. Use this library avoid hardcode.
Now url address has format $domain.vetmanager.ru for example: myclinic76.vetmanager.ru, but it url format will be change.
Vetmanager REST API in Postman
How to use
Installation
composer require otis22/vetmanager-url
Examples
use function Otis22\VetmanagerUrl\url; /* return Url object, which can be convert to string with full url address https://$domain.vetmanager.ru */ echo url('myclinic')->asString();
Where 'myclinic' is first part from your clinic url. $domain.vetmanager.ru and "vetmanager.ru" is a variable
Contributing
For run all tests
make all
or connect to terminal
make exec
Dafault php version is 8.2. Use PHP_VERSION= for using custom version.
make all PHP_VERSION=8.0 # run both make all PHP_VERSION=7.4 && make all PHP_VERSION=8.0
For integration tests copy .env.example to .env and fill with yours values
all commands
# security check make security # composer install make install # composer install with --no-dev make install-no-dev # check code style make style # run static analyze tools make static-analyze # run unit tests make unit # check coverage make coverage # check integration, .env required make integration