helsingborg-stad/render-blade-view

Functionality for rendering Blade components.
1,309
Install
composer require helsingborg-stad/render-blade-view
Latest Version:0.0.2
License:MIT
Last Updated:Mar 23, 2023
Links: GitHub  ·  Packagist
Maintainer: sebastianthulin

Contributors Forks Stargazers Issues License

Logo

render-blade-view

Functionality for rendering PHP Blade views.

Report bug Request Feature

Install using Composer

composer require helsingborg-stad/render-blade-view

Requirements

  • PHP ^7.4

Usage

class BladeEngine {
    // The bladeEngine to be passed to BladeView::create must have a render function following this signature.
    public function render(string $view, array $data):string;
}

$bladeEngine = new BladeEngine();
$view = 'foo';
$viewData = ['foo' => 'bar'];

$bladeView = BladeView::create($bladeEngine);
$bladeView->render($view, $viewData);

License

Distributed under the MIT License.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

391,429,217 4,660