PHPackages                             abitofmaya/blade-renderer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. abitofmaya/blade-renderer

ActiveLibrary[Templating &amp; Views](/categories/templating)

abitofmaya/blade-renderer
=========================

Standalone Blade Template Renderer

v1.0.0(1y ago)07MITPHPPHP ^8.2

Since Aug 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/frankshrestha/blade-renderer)[ Packagist](https://packagist.org/packages/abitofmaya/blade-renderer)[ Docs](https://github.com/frankshrestha/blade-renderer)[ RSS](/packages/abitofmaya-blade-renderer/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Blade Renderer
==============

[](#blade-renderer)

`Blade Renderer` is a simple wrapper around [`illuminate/view`](https://github.com/illuminate/view), the package that powers the [`Blade`](https://laravel.com/docs/master/blade) templating engine used with [`Laravel`](https://laravel.com/docs/master).

This package allows Blade's powerful and expressive syntax to be uesd in any PHP project without needing to install the full Laravel framework. It abstracts the setup and configuration needed to render blade templates, making it more accessible and straightforward for use in non-Laravel projects.

It uses a similar directory structure as Laravel for organizing `views` and `caches`.
The views are stored at the `resources/views` directory and the view caches at `storage/framework/views`.

Usage
=====

[](#usage)

`Blade Renderer` can be used in either of the following two ways.

As a Standalone Project
-----------------------

[](#as-a-standalone-project)

You can use Blade Renderer to quickly start a new standalone project. To do this, follow these steps:

1. Create a New Project

    Run the following command in your terminal to create a new project.

    ```
    composer create-project abitofmaya/blade-renderer
    ```
2. Run the Development Server

    Navigate into the project directory and start a PHP development server by running:

    ```
    php -S localhost:8000 -t public
    ```

### Example

[](#example)

- Edit `src/app.php` with the following contents:

    ```
