Download the PHP package opensrs/osrs-toolkit-php without Composer

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

Official OpenSRS PHP Toolkit

The purpose in building out these libraries is to help ease the implementation of the OpenSRS API. Not only does it give a starting point in developing an application to allow for quick integration, but also incorporates new communication markup languages such as JSON and YAML.

Support

Our support team will be able to help with general connectivity issues outlined in: (http://domains.opensrs.guide/docs/troubleshooting)

If you find a bug in the sample provided with this toolkit, please contact OpenSRS Support with the XML output and response. We will not, however, be able to troubleshoot PHP configuration with your web host nor additional PHP code that you developed. Should you require assistance on those matters, please work with a website developer.

Requirements

This PHP library currently supports data being passed in JSON and YAML (it is also being extended to pass data in XML and Array format as well).

The OpenSRS PHP Tookit requires:

NOTE: It's best to use the PHP 5.3+ as json_encode and json_decode are standard on that version and above. If an earlier version of PHP 5 is needed, the php-json libraries at http://pecl.php.net/package/json will be required.

Installation

Configuration

To configure your OpenSRS API settings, copy the sample config file openSRS_config.php.template and modify with your own OpenSRS API settings. Be sure to require your config before using. For more details see the following section on Boostrapping.

For more detailed configuration information refer to (https://github.com/OpenSRS/osrs-toolkit-php/wiki/Configuration)

Bootstrapping

You can bootstrap the OpenSRS toolkit by sourcing the composer autoloader, as well as your OpenSRS config file. For example if you saved your OpenSRS config file as config/openSRS_config.php, you would bootstrap by running the following:

Using the toolkit

Refer to the OpenSRS API Documentation Page for available requests & attributes.

Backwards Compatibility

For pre v4.0.0 users, backwards compatibility has been included so you can continue using the toolkit as you were before.

Documentation

OpenSRS API Documentation Page

OpenSRS/osrs-toolkit-php Wiki


All versions of osrs-toolkit-php with dependencies

PHP Build Version
Package Version
Requires mustangostang/spyc Version ^0.5.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 opensrs/osrs-toolkit-php contains the following files

Loading the files please wait ....