Download the PHP package otis22/vetmanager-rest-api without Composer

On this page you can find all versions of the php package otis22/vetmanager-rest-api. 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-rest-api

vetmanager-rest-api

GitHub CI Coverage Status

Vetmanager Logo

Vetmanager - veterinary CRM with REST API. vetmanager-rest-api is a library to help working with REST API.

vetmanager.ru

vetmanager REST API Docs

vetmanager REST API in Postman

What for?

  1. To get full url by providing only domain name (host might change)
  2. To validate model name by function uri()
  3. To simplify apiKey and token authorization
  4. For Sorting, Filtering, etc.
  5. To get all sorted and filtered records from model

** Example: Get latest invoice for client id=1 or id=2

Warning! function url requires "otis22/vetmanager-url" package.

Installation

Usage

Usage for auth

Api key auth

or with function

With custom timezone

Token auth

or with function

Service API key auth

or with function

Usage example to create valid URI

Only model

or with function

Model with particular id

or with function

Usage example for filtering and sorting

How to use Filters

Full filter list

How to use Sorts

How to use both Sorts and Filters

How to get all records

How to get top n records

Query Builder

top(n) - return PagedQuery instance for getting top n records by user filter and sort order.

paginateAll(): return PagedQuery instance for getting all records by user filter and sort order

paginate(limit, offset): return PagedQuery instance for getting records with custom limit and offset by user filter and sort order

You can use filter class string operator instead.

Contributing

To run all tests

To connect to terminal

Default php version is 8.1. Use PHP_VERSION= to use your version. Only versions 8.0 and 8.1 are available for now.

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

all commands


All versions of vetmanager-rest-api with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3 || ^8.0
ext-json Version *
elegant-bro/interfaces Version ^1.1
otis22/php-interfaces Version ^1.1
elegant-bro/arrayee Version ^0.1.0
otis22/vetmanager-token Version ^0.2.0
elegant-bro/stringify Version >=0.3.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-rest-api contains the following files

Loading the files please wait ....