PHPackages                             jamesyps/laravel-myriad - 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. jamesyps/laravel-myriad

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

jamesyps/laravel-myriad
=======================

Provides a way of displaying the components available in your Laravel project

0.5.0(7y ago)03MITJavaScriptPHP &gt;=7.1

Since Apr 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Jamesyps/Laravel-Myriad)[ Packagist](https://packagist.org/packages/jamesyps/laravel-myriad)[ RSS](/packages/jamesyps-laravel-myriad/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Laravel Myriad
==============

[](#laravel-myriad)

A simple pattern library package to document and display blade components.

[![License](https://camo.githubusercontent.com/a00ab86a49adbef633fae6731559b904fc4f4d82e5c758bf70184cd03d9e7efd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a616d65737970732f4c61726176656c2d4d79726961642e737667)](https://camo.githubusercontent.com/a00ab86a49adbef633fae6731559b904fc4f4d82e5c758bf70184cd03d9e7efd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4a616d65737970732f4c61726176656c2d4d79726961642e737667)[![Latest Release](https://camo.githubusercontent.com/64f53a005a415d72487df54fc0443579251cd5a5126449d9553ad10a0788ad96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4a616d65737970732f4c61726176656c2d4d79726961642e737667)](https://camo.githubusercontent.com/64f53a005a415d72487df54fc0443579251cd5a5126449d9553ad10a0788ad96/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4a616d65737970732f4c61726176656c2d4d79726961642e737667)[![PHP Version Support](https://camo.githubusercontent.com/a39565d8905d23f2842ae3e73317ecab3d133df0b57938007f183af509b4412e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a616d65737970732f6c61726176656c2d6d79726961642e737667)](https://camo.githubusercontent.com/a39565d8905d23f2842ae3e73317ecab3d133df0b57938007f183af509b4412e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a616d65737970732f6c61726176656c2d6d79726961642e737667)[![Build Status](https://camo.githubusercontent.com/b612147798f9e431799bba6cdf262505dd6bb9c742176e3039cbf0012285ab29/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4a616d65737970732f4c61726176656c2d4d79726961642e737667)](https://camo.githubusercontent.com/b612147798f9e431799bba6cdf262505dd6bb9c742176e3039cbf0012285ab29/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4a616d65737970732f4c61726176656c2d4d79726961642e737667)

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

[](#installation)

Install via Composer:

```
composer require jamesyps/laravel-myriad

```

Publish assets:

```
php artisan vendor:publish --tag myriad-assets

```

You can then visit the pattern library at `https://your-app.xxx/myriad/components`

Components
----------

[](#components)

The primary purpose of this package is to document the components within a Laravel project. For more information on how components can be used, see the [Laravel documentation](https://laravel.com/docs/5.8/blade#components-and-slots).

To get started create a new component in the configured components directory, in this case let's start with a button:

```

	{{ $slot }}

```

Now it needs some documentation to show others how it can be used, what slots are available and what attributes can be passed through. This can be done with a blade comment and yaml front matter:

```
{{--

---
slots:
    - default: My Button
variables:
    - type: primary
---

--}}

	{{ $slot }}

```

Within the preview view two buttons will now appear, one with the class `btn-default` and another with a class of `btn-primary`. Each one will have the text of *My Button*.

The front matter supports custom properties too which will be visible on the preview screen, for example if you wanted to show the current status or browser support.

You can also provide further information by adding text below the last `---`. There is full markdown support within this section so you can provide nicely formatted documentation like so:

```
{{--

---
slots:
    - default: My Button
variables:
    - type: primary
---

# Instructions

This is a button and should be used when an interaction is required.
**Do not** use this for navigation, instead use an `` tag for this.

--}}

	{{ $slot }}

```

Customisation
-------------

[](#customisation)

Myriad has been developed to be full configurable to the needs of your application and workflow.

### Config

[](#config)

Basic customisation can be made through the config file. Use the following command to publish it:

```
php artisan vendor:publish --tag myriad-config

```

To see what options are available you can view the [source code here](./config/myriad.php).

### Templates

[](#templates)

To modify the default templates publish them with the following command:

```
php artisan vendor:publish --tag myriad-views

```

You can then find them in `resources/views/vendor/myriad`.

### Contracts

[](#contracts)

If you need to add or modify functionality for your app, you can swap out the default Component Repository and Component Model classes with your own.

```
[
    'model' => \App\Components\Models\Component::class,
    'repository' => \App\Components\Repositories\ComponentRepository::class,
]
```

If you are not extending the original classes, you must ensure that any new code adheres to the following contracts:

```
Jamesyps\Myriad\Contracts\ComponentRepositoryInterface
Jamesyps\Myriad\Contracts\ComponentInterface

```

These can be found in the [Contracts](./src/Contracts) namespace.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2581d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e1108d89c650e3ef1d723428d7c0afdec33b7ee4855a466b3ab3f7e3ab1c635?d=identicon)[Jamesyps](/maintainers/Jamesyps)

---

Tags

bladelaravel-packagepattern-librarylaravelcomponentsstyleguidepattern library

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jamesyps-laravel-myriad/health.svg)

```
[![Health](https://phpackages.com/badges/jamesyps-laravel-myriad/health.svg)](https://phpackages.com/packages/jamesyps-laravel-myriad)
```

###  Alternatives

[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[area17/blast

Storybook for Laravel Blade

308664.1k](/packages/area17-blast)

PHPackages © 2026

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