isaeken/proxier

Web proxy for PHP

1.1.1 2023-05-13 18:36 UTC

This package is auto-updated.

Last update: 2024-09-13 22:22:15 UTC


README

A simple PHP web proxy.

Install

As a standalone package

composer require isaeken/proxier

As a global tool

composer global require isaeken/proxier

Tool Usage

proxier <url> --method=<method> --headers=<headers>

Proxy an URL

proxier http://isaeken.com.tr

Proxy an URL with custom html header

proxier http://isaeken.com.tr --headers="{'Content-Type': 'text/html'}"

Proxy an URL with custom method

proxier http://isaeken.com.tr --method=POST

Proxy an URL and save to a file

proxier http://isaeken.com.tr --output=index.html

Usage

Proxy an URL

use IsaEken\Proxier\Proxier;

$proxier = new Proxier();
$proxier->boot();
$proxier->proxyUsingGlobals('http://isaeken.com.tr');

Notice

This package is under development. Please do not use it in production.

License

The MIT License (MIT). Please see License File for more information.