ezitisitis/component-factory

Some description here

v1.1.2 2021-05-06 20:40 UTC

This package is auto-updated.

Last update: 2024-04-10 03:38:56 UTC


README

This package is made to ease a little "element-component" pattern development.

Setup

This section contains all the information regarding to setup and environment configuration.

Composer

To install this package run:

composer require --dev ezitisitis/component-factory

NB! This package is not thought for production environment.

Config

To publish config execute:

php artisan vendor:publish --tag=component-factory-config

Configurable

.env variable Config key Description
COMPONENT_FACTORY_COMPONENT_VIEW_PATH component-factory.path.component.view Defines resource path of component .blade.php files
COMPONENT_FACTORY_COMPONENT_STYLE_PATH component-factory.path.component.style Defines resource path of component .scss/.sass files
COMPONENT_FACTORY_ELEMENT_VIEW_PATH component-factory.path.element.view Defines resource path of element .blade.php files
COMPONENT_FACTORY_ELEMENT_STYLE_PATH component-factory.path.element.style Defines resource path of element .scss/.sass files

TO-DO

  1. Add flag in case when livewire is in use.
  2. Comment config file.
  3. Comment and document code
  4. Add tests
  5. Add check for already existing file
  6. Refactor