hexadog / laravel-theme-installer
Installs: 29 735
Dependents: 4
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 3
Open Issues: 0
Type:composer-plugin
pkg:composer/hexadog/laravel-theme-installer
Requires
- php: ^7.3|^8.0
- composer-plugin-api: ^1.1|^2.0
Requires (Dev)
- composer/composer: ^1.3|^2.7.7
- mockery/mockery: ^1.4
- phpunit/phpunit: ^7.0|^8.0|^9.0
README
This package is a fork of Laravel Module Installer to work with Theme packages.
It allows installation of standalone Theme package into the themes/ directory instead of vendor/.
For example if your Theme package name is hexadog/admin-theme then the package will be installed into themes/hexadog/admin directory.
You can specify an alternate directory by including a theme-dir in the extra data in your composer.json file:
"extra": {
"theme-dir": "custom"
}
Installation
- Ensure you have the
typeset tolaravel-themein your theme'scomposer.json - Require this package:
composer require hexadog/laravel-theme-installer - Require your bespoke theme using Composer
Notes
When working on a theme that is version controlled within an app that is also version controlled, you have to commit and push from inside the Theme directory and then composer update within the app itself to ensure that the latest version of your theme (dependant upon constraint) is specified in your composer.lock file.
Related projects
- Laravel Themes Manager: Develop multi-themes Laravel application with ease.