Download the PHP package jplhomer/blade-library without Composer
On this page you can find all versions of the php package jplhomer/blade-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jplhomer/blade-library
More information about jplhomer/blade-library
Files in jplhomer/blade-library
Package blade-library
Short Description Develop your Blade components in-browser.
License MIT
Homepage https://github.com/jplhomer/blade-library
Informations about the package blade-library
Develop your Blade components in-browser.
Installation
You can install the package via composer:
Then, publish assets, configuration, and views with:
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
Use the @story
Blade partial to define stories in your components:
Then, open up your app and view them at the /library
route.
Named stories
You can assign stories names by passing them to the @story
directive:
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:
When you provide a book
of stories, it will be merged with any stories defined inline in your components.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Josh Larson
- All Contributors
License
The MIT License (MIT). Please see License File for more information.