PHP Classes

Proxier PHP Web Proxy: Retrieve and serve content from remote Web sites

Recommend this page to a friend!

  Author Author  
Picture of Isa Eken
Name: Isa Eken <contact>
Classes: 19 packages by
Country: Turkey Turkey
Innovation award
Innovation award
Nominee: 12x


  Detailed description   Download Download .zip .tar.gz  
This package can retrieve and process content from remote Web sites.

It can retrieve the content of a remote server with a given URL.

The package can process the retrieved content by converting the URLs, so the retrieved content can be served from the current site. This package serves the content to the users.

Details

PHP Web Proxy

A simple PHP web proxy.

Usage

Install

composer require "isaeken/proxier"

Proxy an URL

<?php

require_once __DIR__ . '/vendor/autoload.php';

use IsaEken\Proxier\Proxier;

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

Proxy an URL with custom html header

$proxier = new Proxier();
$proxier->setUrl('http://isaeken.com.tr');
$proxier->setHeader(<<<HTML
<!--
Your html code is here.
-->
HTML
);
$proxier->run();

Proxy with custom logger

Create a logger class

<?php
class Logger implements \IsaEken\Proxier\LoggerInterface
{
    public function log(string $url): void
    {
        echo $url;
    }
}

Create your proxy

$proxier = new Proxier();
$proxier->setUrl('http://isaeken.com.tr');
$proxier->setLogger(new Logger());
$proxier->run();

Notice

Do not use this package with a framework.

License

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


  Classes of Isa Eken  >  Proxier PHP Web Proxy  >  Download Download .zip .tar.gz  >  Support forum Support forum (2)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Proxier PHP Web Proxy
Base name: proxier-class
Description: Retrieve and serve content from remote Web sites
Version: -
PHP version: 7
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image HTML HTML generation and processing View top rated classes
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image Web services Web data clipping, SOAP or XML-RPC clients and servers View top rated classes
Group folder image PHP 7 Classes using PHP 7 specific features View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagebin (1 file)
Files folder imageexamples (1 file)
Files folder imageresources (1 file)
Files folder imagesrc (5 files)
Files folder imagetests (1 file)
Plain text file composer.json Data Auxiliary data
Plain text file composer.lock Data Auxiliary data
Plain text file LICENCE.md Lic. License text
Plain text file README.md Doc. Read me

  Files folder image Files  /  bin  
File Role Description
  Plain text file proxier Appl. Application script

  Files folder image Files  /  examples  
File Role Description
  Plain text file index.php Example Example script

  Files folder image Files  /  resources  
File Role Description
  Plain text file script.js Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file Converter.php Class Class source
  Plain text file Html.php Class Class source
  Plain text file LoggerInterface.php Class Class source
  Plain text file Proxier.php Class Class source
  Plain text file Response.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file Feature.php Class Class source

Download Download all files: proxier-class.tar.gz proxier-class.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
  Files folder image Files  
File Role Description
Files folder imagebin (1 file)
Files folder imageexamples (1 file)
Files folder imageresources (1 file)
Files folder imagesrc (5 files)
Files folder imagetests (1 file)
Plain text file composer.json Data Auxiliary data
Plain text file composer.lock Data Auxiliary data
Plain text file LICENCE.md Lic. License text
Plain text file README.md Doc. Read me

  Files folder image Files  /  bin  
File Role Description
  Plain text file proxier Appl. Application script

  Files folder image Files  /  examples  
File Role Description
  Plain text file index.php Example Example script

  Files folder image Files  /  resources  
File Role Description
  Plain text file script.js Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file Converter.php Class Class source
  Plain text file Html.php Class Class source
  Plain text file LoggerInterface.php Class Class source
  Plain text file Proxier.php Class Class source
  Plain text file Response.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file Feature.php Class Class source

Download Download all files: proxier-class.tar.gz proxier-class.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.