b14t / default-theme
The default theme as a boilerplate for the butterfly effect.
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/b14t/default-theme
Requires
- php: >=7.1
- bestit/butterfly-effect: ^1.0
Requires (Dev)
- bestit/php_codesniffer: ^0.1.0
- phpunit/phpunit: ~5.0
- symfony/property-access: ^4.1@beta
This package is not auto-updated.
Last update: 2025-10-26 10:26:38 UTC
README
The default theme as a boilerplate for the butterfly effect.
Config
Theme-Config
{
"extra": {
"butterfly-effect": {
"theme": {
"asset-folder": "In which folder are your public files? optional, filled with 'public' by default.",
"css": [
"Array of your optional css files. You can use absolute URLs oder a relative path to your asset folder starting with ./."
],
"js": [
"Array of your optional css files. You can use absolute URLs oder a relative path to your asset folder starting with ./."
]
}
}
}
}
Laravel Service Provider
Create a Service provider and extend
namespace ButterflyEffect\DefaultTheme\ThemeProvider.
If you changed the standard path for our composer file, please change the provider property $composerFile to your required path.
/** * @var string Where to find the composer file for this theme. */ protected $composerFile = __DIR__ . '/../../composer.json';
Activate the theme in your butterfly effect
Please define the env var BUTTERFLY_EFFECT_THEME_DEFAULT with the name of your theme, so that it gets used.