Skip to content

rukavina/php-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

PHP proxy

Intro

This is simple php code/class which proxies REST api calls from local domain to remote api server.

Install

Git clone then

cd php-proxy
cp dist.config.php config.php

and update configuration settings in config.php server params.

Usage

In your JS client set all urls to be:

https://your-server-path/proxy.php?path=/api_path

Example

Let's say you have api endpoint

https://api.example.com/entities

in your config.php set

return [
    'destination_url' => 'https://api.example.com'
];

let's say your domain is www.example.com, and then link to your endpoint is

https://www.example.com?path=/entities

About

PHP proxy to remote API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages