Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
web
 
 
 
 
 
 

PHP PSR-7 Proxy

Some example code that demonstrates how to write a simple proxy using PSR-7 http message objects.

See this blog post for more info.

Usage

Run the example:

php -S localhost:8080 web/proxy.php

Then use CURL, Postman, or your favourite API testing tool to run some requests. The example code proxies connections to the JSONPlaceholder fake API.

So instead of /posts you can try /posts. Or, instead of /posts?userId=1 you can use /posts?userId=1.

License

WTFPL "The WTFPL is a very permissive license for software and other scientific or artistic works that offers a great degree of freedom. In fact, it is probably the best license out there."

About

Example code that demponstrates how to write a simple proxy using PSR-7 HTTP message objects.

Resources

Releases

No releases published

Packages

No packages published

Languages