Download the PHP package fourmation/rest-remote-object without Composer

On this page you can find all versions of the php package fourmation/rest-remote-object. 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 rest-remote-object

Rest Remote Object

This library provide a REST adapter for the Remote Object pattern implemented by the ProxyManager project. A REST client is also provided to facilitate the REST interaction.

Build Status Coverage Status Latest Stable Version Latest Unstable Version

Installation

Rest remote objects examples

Some examples are provided in the examples/ directory : JIRA, ZenDesk, Xero, eWay, FlightStats and AgileZen ! Now, you can transform all REST API in remote objects !

Rest Adapter usages

A remote object proxy is an object that is located on a different system, but is used as if it was available locally.

To use the REST remote object, add two tags to yours services interfaces : @rest\http to define the HTTP method to use and @uri to define the resource URI :

That's all ! You are ready to use your REST API now :

Rest versioning

This project offer three way for the versioning :

Rest authentication

Three authentication strategy are available :

You can easily use an authentication with your REST client :

Feature

To apply feature on your API request, just implement the FeatureInterface and use the addFeature method. Example with the timestamp feature :

Custom response parser

Two response parser are provided : XML and JSON. The parser is selected automatically based on the response format. You can write your own parser, just implements the RestRemoteObject\Client\Rest\ResponseHandler\Parser\ParserInterface interface :

Use your parser like this :

Custom response builder

Two standards builder are provided : DefaultBuilder and GhostObjectBuilder.

The DefaultBuilder transform data (provide by the response parser) to an object. By default, the ClassMethods hydrator will use, so if you have defined your getter/setter, the object will be built easily.

The second builder is the GhostObjectBuilder which provide a proxy object (by setter/getter such as the DefaultBuilder) instead the real object, and allow remote call from uninitialized properties :

To have remote call, just define your annotations in your model :


All versions of rest-remote-object with dependencies

PHP Build Version
Package Version
Requires ocramius/proxy-manager Version 0.5.*
zendframework/zend-crypt Version >=2.2.0
zendframework/zend-filter Version >=2.2.0
zendframework/zend-http Version >=2.2.0
zendframework/zend-server Version >=2.2.0
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 fourmation/rest-remote-object contains the following files

Loading the files please wait ....