PHPackages                             stonehilt/blade - 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. stonehilt/blade

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

stonehilt/blade
===============

StoneHilt's blade directives and other view helpers

12.0.1(11mo ago)01661proprietaryPHPPHP ^8.4

Since Mar 1Pushed 11mo agoCompare

[ Source](https://github.com/StoneHilt/blade)[ Packagist](https://packagist.org/packages/stonehilt/blade)[ RSS](/packages/stonehilt-blade/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (5)Versions (11)Used By (1)

StoneHilt Blade
===============

[](#stonehilt-blade)

Adds blade directives that have not been integrated into the framework.

Overtime these directives may be deprecated and integrated into the core Laravel framework.

Installation
============

[](#installation)

Include this library:

```
~ composer require stonehilt/blade
```

The `StoneHiltBladeServiceProvider` will automatically be loaded and the new directives will be available.

**This overrides the creation of the Factory object with a custom version.**

If the project has extended the Factory object, please change the extension to use `StoneHilt\Blade\View\Factory`.

Directives
==========

[](#directives)

### form

[](#form)

Generate an HTML form element. The CSRF token is automatically included when the method if "**POST**". Automatically mocks "**PUT**", "**PATCH**" and "**DELETE**" requests via a hidden "\_**method**" input.

Signature: `@form(array $options)`

- `$options` is an associative array of attributes. Special Attributes:
    - ***method*** Form method attribute (required if route not set)
    - ***action*** Form action attribute (required if route not set)
    - ***route*** Use a named route to determine Form method and action attributes All other values are mapped directly to the HTML attribute.

Example:

```
@form(['method' => 'POST', 'action' => '/page/2', 'class' => 'class name'])

@endform

```

Signature: `@form(string $method, string $action)`

- `$method` Form method
- `$action` Form action

Example:

```
@form('POST', '/page/2')

@endform

```

### inherit

[](#inherit)

Inherit properties from the parent component into a child's component view. This is useful when the child component needs to know the id or other key attributes of the parent component.

Signature: `@inherit(array $mapping)`

- `$mapping` is an associative array of parent component field to local alias

Example:

```
@inherit(['id' => 'parentId'])
{{ $parentId }}

```

### route

[](#route)

Return the route path based upon the name.

Signature: `@route(string $name, array $parameters = [])`

- `$name` Route name
- `$parameters` Parameters for the route (if applicable)

Example:

```
@route('post.update', ['page' => 2])

```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance50

Moderate activity, may be stable

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 92.9% 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 ~164 days

Total

4

Last Release

352d ago

Major Versions

10.0.1 → 12.0.02025-07-05

PHP version history (2 changes)10.0.0PHP ^8.2

12.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b59cc708a3ea88f3d7eae5f5d51e4b3cd26984a71ae5bfbf2b0a3827aa0699d?d=identicon)[avastech](/maintainers/avastech)

---

Top Contributors

[![ahgreen](https://avatars.githubusercontent.com/u/5686621?v=4)](https://github.com/ahgreen "ahgreen (13 commits)")[![avastech](https://avatars.githubusercontent.com/u/23587318?v=4)](https://github.com/avastech "avastech (1 commits)")

---

Tags

laravelbladeStoneHilt

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M916](/packages/statamic-cms)[moonshine/moonshine

Laravel administration panel

1.3k239.9k75](/packages/moonshine-moonshine)[djl997/blade-shortcuts

Blade Shortcuts is a library of handy Laravel Blade Directives.

411.0k3](/packages/djl997-blade-shortcuts)

PHPackages © 2026

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