Registry / web-framework / slim-php-view

slim-php-view

JSON →
library3.4.0phppackagistunverified

Render PHP view scripts into a PSR-7 Response object.

composer require slim/php-view
INSTALL
IMPORT
SIG · SLIM-PHP-VIEW
S
slim-php-view
web-frameworkphpv3.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PhpRenderer
use Slim\Views\PhpRenderer;

Render a PHP template with variables into a PSR-7 response.

use Slim\Views\PhpRenderer; $renderer = new PhpRenderer('/path/to/templates'); $response = $renderer->render($response, 'index.php', ['name' => 'World']);
Debug
Known issues
breakingRequires PHP 7.4+ and Slim 4.
fix
Upgrade to Slim 4 and PHP 7.4+.
affects: >=3.0.0
Upgrade
Version history
3.4.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources
slim-php-view — pip install slim-php-view · libregistry