Looking to hire Laravel developers? Try LaraJobs

laravel-componentutils maintained by anooserve

Description
A Laravel package to list your components and how often they are referenced.
Author
Last update
2021/11/18 00:22 (dev-master)
License
Downloads
257

Comments
comments powered by Disqus

A Laravel package to help manage your blade components.

Component Utilities Screenshot Latest Version on Packagist pipeline status Total Downloads

Installation

You can install the package via composer:

composer require --dev anooserve/laravel-componentutils

It is not recommended to install this package in a production environment unless you know what you are doing.

Usage

Visit <your website>/components to get a list of components.

It's not a beautiful list, but it works. Usually.

Advanced Usage

You can publish the config file with:

php artisan vendor:publish --tag="componentutils-config"

These are the contents of the published config file

return [

    /**
     * The endpoint to access the components.
     */
    'url' => 'components',

    /**
     * The middleware(s) to apply before attempting to access components page.
     */
	'middlewares' => [],

    /**
     * The components to hide with regular expression.
     */
    'hide_matching' => [],
];

You can publish the views with:

php artisan vendor:publish --tag="componentutils-views"

To Do

  • Add component searching
  • Add component filtering
  • Atomic design helper functions

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.