Download the PHP package salernolabs/rescuegroups without Composer

On this page you can find all versions of the php package salernolabs/rescuegroups. 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 rescuegroups

salernolabs/rescuegroups

Latest Stable Version License Build Status

An unofficial rescuegroups.org HTTP API PHP SDK. This package is not stable yet and still under development. Please note much of this is automatically generated via the Define queries. Due to naming conventions the "list" actions are encapsulated in "GetList" classes because "List" is a reserved word in PHP7.

Please read the RescueGroups.org API specification and documentation thoroughly before attempting to use this library. https://rescuegroups.org/services/adoptable-pet-data-http-json-api/

Query Documentation

Installation and Setup

The easiest way to install this package is with composer:

composer require salernolabs/rescuegroups

Afterwards you can either specify your API key in the constructor to the API class or the preferred method is to use the following environment variables:

For just using public queries:

For using queries that require a login you can also specify:

You can instantiate the API handler in either way:

//Use environment variables
$api = new \RescueGroups\API();

//Use specific api key
$api = new \RescueGroups\API("Your API Key")

Logging In

To make non-public/authenticated queries against the HTTP API you need to log in. You can either spoecify the environment variables or set them in the login query.

//Use environment variables
$login = new \RescueGroups\Request\Actions\Login();

//Use specific login credentials
$login = new \RescueGroups\Request\Actions\Login("Username", "Password", 1235);

//Then just run it with the API handler
$api->executeRequest($login);

Alternatively, if you already have a valid token and tokenHash from the Rescuegroups API, you can just call the ->setToken() function on the API handler to skip the step.

$api->setToken('token', 'tokenHash');

Testing

You can run phpunit tests from the command line by just running phpunit but make sure you've set the API Key environment variable.

phpunit

If you don't have it installed on your computer, then you can just run it from the vendor folder if you've composer installed with dev dependencies.

#From the folder you have this project check out in
php vendor/phpunit/phpunit/phpunit

All versions of rescuegroups with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
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 salernolabs/rescuegroups contains the following files

Loading the files please wait ....