Download the PHP package arthurh/rest-proxifier without Composer

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

rest-proxifier

The goal of this project is to proxy your rest api.

Why do this?

First, it was initialized when I found that some rest api doesn't handle CORS.

This project will reinject CORS headers for angularjs project for example.

This project will also cache response for read request.

NOTE: Rest-proxifier use pathinfo so set your web server to use it.

NOTE2: This project is Cloud Foundry Ready, so you can also use it inside Cloud Foundry to handle uaa rest api for example.

Installation

Through Composer, obviously:

How to use

You can use rest-proxifier in multiple ways:

Theses 3 ways can be used in same time, there is no limit.

For simple use, look at config/default.yml:

This file can be rewrite in json or in xml too, it uses this dependency noodlehaus/config so follow schemas from this dependency if you don't want use yaml.

For this default config there is an example, a route is already set.

What you should do to try is to go to http://<my hostname>/index.php/api and rest-proxifier will respond the page http://example.com with CORS headers.

If you do http://<my hostname>/index.php/api/other/verb/for/api rest-proxifier will respond http://example.com/other/verb/for/api.

Admin interface

By default you have an interface located on http://<my hostname>/index.php/admin.

You can use it to add more proxy only on a database.

Proxies from config file can't be modify with this interface with the goal make accessible all the time theses proxies.

For Cloud Foundry user

This part is only for people who use the Cloud Foundry PaaS.

You can create a service which contain proxy (use regex to find service) in his name with this json value for example:

And rest-proxifier will auto-bind to this service

You can also create a database service which should contains at least one of theses values in its name (use regex to find service):

And rest-proxifier will auto-bind database to this service


All versions of rest-proxifier with dependencies

PHP Build Version
Package Version
Requires orange-opensource/cf-helper-php Version 1.3.1
league/route Version ~1.1
league/plates Version ~3.1
composer/composer Version 1.0.0-alpha9
sphring/sphring Version ~0.9
tedivm/stash Version 0.12.*
monolog/monolog Version ~1.13
vectorface/whip Version 0.2.*
jenssegers/proxy Version ~2.2
hassankhan/config Version 0.7.*
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 arthurh/rest-proxifier contains the following files

Loading the files please wait ...