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

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

jplhomer/blade-library
======================

Develop your Blade components in-browser.

v0.0.2(5y ago)03[9 PRs](https://github.com/jplhomer/blade-library/pulls)MITPHPPHP ^7.4

Since Jul 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jplhomer/blade-library)[ Packagist](https://packagist.org/packages/jplhomer/blade-library)[ Docs](https://github.com/jplhomer/blade-library)[ Fund](https://jplhomer.org/open-source/support-us)[ GitHub Sponsors](https://github.com/jplhomer)[ RSS](/packages/jplhomer-blade-library/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (13)Used By (0)

Develop your Blade components in-browser.
=========================================

[](#develop-your-blade-components-in-browser)

[![Latest Version on Packagist](https://camo.githubusercontent.com/120e85a2aa064c929994100615102ffa689bfc2a1ef1be83a4e6016edfb20190/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a706c686f6d65722f626c6164652d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jplhomer/blade-library)[![GitHub Tests Action Status](https://camo.githubusercontent.com/3b33924a86e3b411d1be449bc8829a564bfeac4ff88623ce47ce5718732de66f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6a706c686f6d65722f626c6164652d6c6962726172792f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/jplhomer/blade-library/actions?query=workflow%3Arun-tests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/7d32702b5387e694cdccee18048a67f0f53abd501600a4a25c79ce54db73ac1a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a706c686f6d65722f626c6164652d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jplhomer/blade-library)

[![Blade Library screenshot](./images/library.png)](./images/library.png)

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

[](#installation)

You can install the package via composer:

```
composer require jplhomer/blade-library
```

Then, publish assets, configuration, and views with:

```
php artisan blade-library:install
```

Next, you'll want to include your app's CSS stylesheet's in your component examples, or customize the logo used in Blade Library.

Edit the `head.blade.php` and `logo.blade.php` files published to your `resources/views/vendor/library/partials` directory.

```

```

Usage
-----

[](#usage)

Use the `@story` Blade partial to define stories in your components:

```

{{ $slot }}

@story
Example
@endstory
```

Then, open up your app and view them at the `/library` route.

### Named stories

[](#named-stories)

You can assign stories names by passing them to the `@story` directive:

```
@story('My Story')
Example
@endstory
```

### Story Books

[](#story-books)

In addition to defining stories inline in your components, you can also create a dedicated `book` to provide documentation and additional story examples for your components.

First, create a file matching the name of your component within your `resources/views/books` directory:

```

Buttons are the foundation of our app:

@story
Click Me
@endstory
```

When you provide a `book` of stories, it will be merged with any stories defined inline in your components.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Josh Larson](https://github.com/jplhomer)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

2

Last Release

2122d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/848147?v=4)[Josh Larson](/maintainers/jplhomer)[@jplhomer](https://github.com/jplhomer)

---

Top Contributors

[![jplhomer](https://avatars.githubusercontent.com/u/848147?v=4)](https://github.com/jplhomer "jplhomer (28 commits)")

---

Tags

jplhomerblade-library

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[blade-ui-kit/blade-icons

A package to easily make use of icons in your Laravel Blade views.

2.5k34.2M309](/packages/blade-ui-kit-blade-icons)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[illuminate/view

The Illuminate View package.

13144.9M1.7k](/packages/illuminate-view)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[flipbox/lumen-generator

A Lumen Generator You Are Missing

8302.8M17](/packages/flipbox-lumen-generator)

PHPackages © 2026

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