nsrosenqvist / blade-cli
Command line version of Laravel's Blade templating engine
Requires
- php: ^7.0
- nsrosenqvist/blade-compiler: ^1.0.0
- symfony/console: ^3.2
- symfony/event-dispatcher: ^3.2
This package is auto-updated.
Last update: 2024-12-05 19:00:37 UTC
README
Blade CLI is a command line compiler for the Laravel Blade templating engine. You simply specify what templates you want to process as arguments.
Installation
To install you can either clone this repo and run composer install && composer build
or simply retrieving the latest PHAR from the releases page.
I also have a convenience feature configured that install the PHAR to /usr/bin
by running composer build:install
but it makes a whole lot of assumptions of your OS and probably only works on Linux and macOS. Use at your own risk.
Usage
php blade-cli.phar [options] [--] <template> (<template>)...
Arguments
Options:
Development
Clone and run composer install
. You can then run the app by executing php bin/blade
from the root directory. To create a distributable PHAR you run composer build
. To verify that templates are processed correctly you can run composer test
.