Download the PHP package otis22/vetmanager-token without Composer

On this page you can find all versions of the php package otis22/vetmanager-token. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package vetmanager-token

GitHub CI Coverage Status

vetmanager-token

Vetmanager - CRM for veterinary with REST API. vetmanager-token is library for work with token auth in Vetmanager API.

Vetmanager REST API Docs

Vetmanager REST API in Postman

How to use

URL library compatibility

Both vetmanager-url 0.x (~0.1) and 1.x starting from 1.1 are supported. Existing token APIs are unchanged; creating a token with token() does not perform network requests until asString() is called. Applications opting into URL 1.1 need PHP 7.4 or newer.

Use token_with_client() to obtain a token with your own HTTP client and a prepared clinic URL. It works with both supported URL versions and sends the token request only when asString() is called. Reusing the returned token object reuses the obtained token.

With vetmanager-url:^1.1, configure Billing discovery separately:

Keep CRM authorization headers on the CRM client, separate from the Billing client. The existing token($credentials, $domainName) helper retains default Guzzle clients and deferred URL discovery. Updating the dependency alone does not add a project User-Agent.

The default Billing host follows the installed URL library: billing-api.vetmanager.cloud with 0.3.2 and billing-api.vetmanager.ru with 1.1.

Billing URL resolution failures propagate separately from token endpoint responses.

Compatibility with the released token 0.2.2 API is preserved: the three-argument Token\FromGateway constructor still accepts credentials, a clinic URL and a client. Login and password values are passed through unchanged; authentication is validated by CRM. The newer response-based implementation is available separately as Token\FromResponse. A failed Billing response is not cached by the legacy helper: using the same token again retries URL discovery.

Contributing

For run all tests

or connect to terminal

Dafault php version is 8.0. Use PHP_VERSION= for using custom version. Project works only with 8.0 and 8.1 version.

For integration tests copy .env.example to .env and fill with yours values

all commands


All versions of vetmanager-token with dependencies

PHP Build Version
Package Version
Requires otis22/vetmanager-url Version ~0.1 || ^1.1
otis22/php-interfaces Version ^1.0
guzzlehttp/guzzle Version ^7.1
ext-json Version *
elegant-bro/interfaces Version ^1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package otis22/vetmanager-token contains the following files

Loading the files please wait ...