Download the PHP package paymentrails/php-sdk without Composer

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

Trolley PHP SDK

Latest Stable Version PHP Version Require

The Trolley PHP SDK provides integration access to the Trolley API.

Requirements

PHP version >= 5.4.0 is required.

The following PHP extensions are required:

curl json mbstring openssl

Installation & Usage

SDK

Composer

Install PHP Composer

To install the bindings via Composer, add the following to composer.json:

Then run composer install

Getting Started

Please follow the installation procedure and then run the following:

Documentation for API Endpoints

All URIs are available at https://docs.trolley.com/

Running SDK from Source

  1. Clone this repo.
  2. Install dependencies by running composer install from the project root.
  3. Access the SDK source code from your code by using Trolley namespace as per the path you put the SDK source code on.

Environment Variables

While running from source locally, you can use a .env file to supply a custom server URL.

The tests use the .env file anyway to load the API keys.
If you're running tests, make sure the .env file exists in the project root.

For your ease, a sample .env.example file is provided, which can be copied to create the .env file:

Once copied, edit the .env file to supply the values needed.

Running the tests from SDK

To run the tests in the terminal, you'll need to setup the .env file to supply API Keys, and then use the PHPUnit test suite from within the tests directory, like the following:

If you want to provide a custom server URL, provide the server URL in the .env file , and set the sdk configuration to use the development server:

Refer to the inline documentation about this in the test setup file: /tests/Setup.php:38


All versions of php-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-curl Version *
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
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 paymentrails/php-sdk contains the following files

Loading the files please wait ....