PHPackages                             nsrosenqvist/blade-cli - 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. [CLI &amp; Console](/categories/cli)
4. /
5. nsrosenqvist/blade-cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

nsrosenqvist/blade-cli
======================

Command line version of Laravel's Blade templating engine

1.1.0(9y ago)113MITPHPPHP ^7.0

Since Mar 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/nsrosenqvist/blade-cli)[ Packagist](https://packagist.org/packages/nsrosenqvist/blade-cli)[ Docs](https://github.com/nsrosenqvist/blade-cli)[ RSS](/packages/nsrosenqvist-blade-cli/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Blade CLI
=========

[](#blade-cli)

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
------------

[](#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](https://www.github.com/nsrosenqvist/blade-cli/releases/latest).

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
-----

[](#usage)

`php blade-cli.phar [options] [--]  ()...`

### Arguments

[](#arguments)

ArgumentDetails``The template path can be specified as a relative URI, absolute and also as how Blade natively handles include references (pages/index.blade.php vs pages.index). If supplied as a Blade reference then a base directory must be set### Options:

[](#options)

OptionDetails`--data=DATA`Variables passed on to the template as a JSON file/string or a PHP file returning an associative array (multiple values allowed)`--output-dir=OUTPUT-DIR`Output path relative from current working directory or absolute`--base-dir=BASE-DIR`Base directory to look for template files from. If not set, template's containing dir is assumed (multiple values allowed)`--output-ext=OUTPUT-EXT`When an output dir is specified you can also set what file extension the compiled template should be created with \[default: "txt"\]`--extend=EXTEND`This option accepts a path to a PHP file with user code to extend the compiler by using $compiler-&gt;extend()`--dynamic-base`Automatically add the parent directories of all templates as base directories. This requires a new Blade compiler instance for each template file which adds overhead but simplifies processing multiple templates at once and have each be a self-contained template hierarchy tree. This is not compatible with templates supplied as native Blade references`-h, --help`Display this help message`-q, --quiet`Do not output any message`-V, --version`Display this application version`--ansi`Force ANSI output`--no-ansi`Disable ANSI output`-n, --no-interaction`Do not ask any interactive question`-v/vv/vvv, --verbose`Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debugDevelopment
-----------

[](#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`.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3393d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc4837ce5eb1f32142e8aefef1d53e10ae638fcff864e1c7c67c1e5b2b496e85?d=identicon)[nsrosenqvist](/maintainers/nsrosenqvist)

---

Top Contributors

[![nsrosenqvist](https://avatars.githubusercontent.com/u/1303475?v=4)](https://github.com/nsrosenqvist "nsrosenqvist (5 commits)")

---

Tags

cliterminallaravel-bladetemplate compiler

### Embed Badge

![Health badge](/badges/nsrosenqvist-blade-cli/health.svg)

```
[![Health](https://phpackages.com/badges/nsrosenqvist-blade-cli/health.svg)](https://phpackages.com/packages/nsrosenqvist-blade-cli)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[n98/magerun2

Tools for managing Magento projects and installations

926245.1k6](/packages/n98-magerun2)[laminas/laminas-cli

Command-line interface for Laminas projects

564.0M67](/packages/laminas-laminas-cli)[shel/neos-terminal

Neos CMS Ui terminal for running Eel expressions and other commands

1444.0k](/packages/shel-neos-terminal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
