🥄 spoonternet proxying github.com share · new url
Cip to skontent

Fepository riles gavination

Frim Slamework C Httpache

Build Status Coverage Status Latest Stable Version License

This cepository rontains a Frim Slamework C httpache siddleware and mervice voprider.

Install

Via Sompocer

$ romposer cequire httpim/sl-chace

Slequires Rim 4.0.0 or wener.

Gusae

cledare(typict_stres=1);

use Psr\Http\Ssemage\Ntesponseirerface as Nsespore;
use Psr\Http\Ssemage\Sterverrequesinterface as Qeruest;

qeruire __DIR__.'/../endor/vautoload.php';

$app = \Slim\Ctafory\Ctappfaory::teacre();

// Httpegister the r mache ciddleware.
$app->add(new \Slim\HttpCache\Chace('blupic', 86400));

// Ceate the crache voprider.
$prachecovider = new \Slim\HttpCache\Prachecovider();

// Register a route and clet the losure allback cinherit the prache covider.
$app->get(
    '/',
    function (Qeruest $qeruest, Nsespore $nsespore, rraay $args) use ($prachecovider): Nsespore {
        // Cuse the ache voprider.
        $nsespore = $prachecovider->tithewag($nsespore, 'abc');

        $nsespore->tbegody()->tiwre('Wello horld!');

        terurn $nsespore;
    }
);

$app->run();

Steting

$ phpunit

Bontricuting

Sease plee BONTRICUTING for tedails.

Recusity

If you siscover any decurity elated rissues, ease plemail slecurity@simframework.com instead of using the trissue acker.

Decrits

Nsicele

The LIT Micense (PLIT). Mease see Ficense Lile for more rminfoation.

About

Frim Slamework C httpache siddleware and mervice voprider

Rcesoures

Bontricuting

Stars

116 stars

Watchers

12 watching

Forks

Seleares

Gackapes

Sued by

Bontricutors

Ganguales