PHPackages                             log1x/sage-directives - 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. log1x/sage-directives

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

log1x/sage-directives
=====================

A set of Blade directives for use with Roots Sage.

v2.0.6(1y ago)297709.3k↓11.8%33[1 issues](https://github.com/Log1x/sage-directives/issues)[2 PRs](https://github.com/Log1x/sage-directives/pulls)3MITPHPPHP &gt;=8.1CI passing

Since Oct 18Pushed 1y ago15 watchersCompare

[ Source](https://github.com/Log1x/sage-directives)[ Packagist](https://packagist.org/packages/log1x/sage-directives)[ Docs](https://github.com/log1x/sage-directives)[ GitHub Sponsors](https://github.com/Log1x)[ RSS](/packages/log1x-sage-directives/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (29)Used By (3)

Sage Directives
===============

[](#sage-directives)

[![Latest Version](https://camo.githubusercontent.com/fd6244540fb12d71876cc931decc56d976373ab2ad0494b65d7572a4b7708288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6731782f736167652d646972656374697665732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fd6244540fb12d71876cc931decc56d976373ab2ad0494b65d7572a4b7708288/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6731782f736167652d646972656374697665732e7376673f7374796c653d666c61742d737175617265)[![Total Downloads](https://camo.githubusercontent.com/09459e55bb493159445138b1b1c330fbbbffb30ee80021d2fc692fd8719a0f24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6731782f736167652d646972656374697665732e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/09459e55bb493159445138b1b1c330fbbbffb30ee80021d2fc692fd8719a0f24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6731782f736167652d646972656374697665732e7376673f7374796c653d666c61742d737175617265)[![Build Status](https://camo.githubusercontent.com/eaa02c06762bc33f4dc4486748df965252c8e2d9c420f0987b5e51c73fc492db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6731782f736167652d646972656374697665732f6d61696e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/eaa02c06762bc33f4dc4486748df965252c8e2d9c420f0987b5e51c73fc492db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6731782f736167652d646972656374697665732f6d61696e2e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)

Sage Directives adds a variety of useful Blade directives for use with Sage 10 including directives for WordPress, ACF, and various miscellaneous helpers.

Requirements
------------

[](#requirements)

- [Sage](https://github.com/roots/sage) &gt;= 10.0
- [PHP](https://secure.php.net/manual/en/install.php) &gt;= 8.1
- [Composer](https://getcomposer.org/download/)

Installation
------------

[](#installation)

Install via Composer:

```
$ composer require log1x/sage-directives
```

Build Documentation
-------------------

[](#build-documentation)

```
$ yarn install
$ yarn run docs:build
```

Support
-------

[](#support)

- [Documentation](https://log1x.github.io/sage-directives-docs/)
- [Discourse](https://discourse.roots.io/t/blade-directives-for-sage/14301)

Bug Reports
-----------

[](#bug-reports)

If you discover a bug in Sage Directives, please [open an issue](https://github.com/log1x/sage-directives/issues).

Contributing
------------

[](#contributing)

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated. When contributing code, please follow the existing directive format.

I work on Sage Directives entirely in my free time. If Sage Directives has helped you immensely and you would like to support me working on it in the future– feel free to leave a contribution using the ❤️ **Sponsor** button above.

License
-------

[](#license)

Sage Directives is provided under the [MIT License](https://github.com/log1x/sage-directives/blob/master/LICENSE.md).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance45

Moderate activity, may be stable

Popularity56

Moderate usage in the ecosystem

Community34

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 82.3% 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 ~90 days

Recently: every ~149 days

Total

27

Last Release

424d ago

Major Versions

v1.1.9 → v2.0.02023-07-29

PHP version history (4 changes)v1.0.0PHP &gt;=7.0

v1.0.4PHP &gt;=7.1

v1.0.9PHP &gt;=7.1.3

v2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5745907?v=4)[Brandon](/maintainers/Log1x)[@Log1x](https://github.com/Log1x)

---

Top Contributors

[![Log1x](https://avatars.githubusercontent.com/u/5745907?v=4)](https://github.com/Log1x "Log1x (135 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![markjaquith](https://avatars.githubusercontent.com/u/353790?v=4)](https://github.com/markjaquith "markjaquith (2 commits)")[![kevinblackdesk](https://avatars.githubusercontent.com/u/69786972?v=4)](https://github.com/kevinblackdesk "kevinblackdesk (2 commits)")[![catgofire](https://avatars.githubusercontent.com/u/4309?v=4)](https://github.com/catgofire "catgofire (2 commits)")[![Ekhaus](https://avatars.githubusercontent.com/u/19843629?v=4)](https://github.com/Ekhaus "Ekhaus (1 commits)")[![ethicka](https://avatars.githubusercontent.com/u/1000338?v=4)](https://github.com/ethicka "ethicka (1 commits)")[![jt-adwisemedia](https://avatars.githubusercontent.com/u/43418709?v=4)](https://github.com/jt-adwisemedia "jt-adwisemedia (1 commits)")[![kellymears](https://avatars.githubusercontent.com/u/397606?v=4)](https://github.com/kellymears "kellymears (1 commits)")[![LenardoDB](https://avatars.githubusercontent.com/u/54314437?v=4)](https://github.com/LenardoDB "LenardoDB (1 commits)")[![noonanwebgroup](https://avatars.githubusercontent.com/u/21362191?v=4)](https://github.com/noonanwebgroup "noonanwebgroup (1 commits)")[![shanejones](https://avatars.githubusercontent.com/u/325424?v=4)](https://github.com/shanejones "shanejones (1 commits)")[![theMosaad](https://avatars.githubusercontent.com/u/48773133?v=4)](https://github.com/theMosaad "theMosaad (1 commits)")[![alwaysblank](https://avatars.githubusercontent.com/u/23412884?v=4)](https://github.com/alwaysblank "alwaysblank (1 commits)")[![thomasbrunier](https://avatars.githubusercontent.com/u/10458344?v=4)](https://github.com/thomasbrunier "thomasbrunier (1 commits)")[![cavaquinho93](https://avatars.githubusercontent.com/u/96418574?v=4)](https://github.com/cavaquinho93 "cavaquinho93 (1 commits)")[![czernika](https://avatars.githubusercontent.com/u/86893348?v=4)](https://github.com/czernika "czernika (1 commits)")[![davidwebca](https://avatars.githubusercontent.com/u/412352?v=4)](https://github.com/davidwebca "davidwebca (1 commits)")[![dawidurbanski](https://avatars.githubusercontent.com/u/12466568?v=4)](https://github.com/dawidurbanski "dawidurbanski (1 commits)")

---

Tags

bladeblade-directivesroots-iosagesage-directiveswordpresswordpressbladerootssagedirectivesacornblade-directives

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/log1x-sage-directives/health.svg)

```
[![Health](https://phpackages.com/badges/log1x-sage-directives/health.svg)](https://phpackages.com/packages/log1x-sage-directives)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[log1x/blade-svg-sage

Composer package to add support for Blade SVG by Adam Wathan to Roots Sage.

7577.3k](/packages/log1x-blade-svg-sage)[log1x/sage-html-forms

Create forms using HTMLForms.io and Sage 10 Blade components

5636.1k](/packages/log1x-sage-html-forms)[roots/wp-blade-check

Simple Composer package that checks and displays an admin notice if your uncompiled Blade templates are publicly accessible.

161.1k](/packages/roots-wp-blade-check)[hexbit/sage-woocommerce

Woocommerce support for sage 10

257.0k](/packages/hexbit-sage-woocommerce)[fiskhandlarn/blade

A library for using Laravel Blade templates in WordPress/WordPlate.

365.8k](/packages/fiskhandlarn-blade)

PHPackages © 2026

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