suzunone / hibana
Transform your Laravel project into static websites.
Requires
- php: ^8.2
- laravel/framework: ^11.9
Requires (Dev)
- fakerphp/faker: ^1.23
- mockery/mockery: ^1.6
- phpunit/phpunit: ^11.0.1
This package is not auto-updated.
Last update: 2024-11-09 08:36:00 UTC
README
Installation
Require this package with composer using the following command:
composer require --dev suzunone/hibana dev-main
Note
If you encounter version conflicts with doctrine/dbal, please try:
composer require --dev suzunone/hibana --with-all-dependencies
This package makes use of Laravels package auto-discovery mechanism, which means if you don't install dev dependencies in production, it also won't be loaded.
If for some reason you want manually control this:
- add the package to the
extra.laravel.dont-discover
key incomposer.json
, e.g."extra": { "laravel": { "dont-discover": [ "suzunone/hibana" ] } }
- Add the following class to the providers array in bootstrap/providers.php
Suzunone\Hibana\Providers\HibanaServiceProvider::class
If you want to manually load it only in non-production environments, instead you can add this to your AppServiceProvider with the register() method:
if ($this->app->isLocal()) { $this->app->register(\Suzunone\Hibana\Providers\HibanaServiceProvider::class); }
Note: Avoid caching the configuration in your development environment, it may cause issues after installing this package; respectively clear the cache beforehand via
php artisan cache:clear
if you encounter problems when running the commands
- Publish the config file to change implementations (ie. change the storage disk from the default) or set defaults for hibana.
php artisan vendor:publish --provider="Suzunone\Hibana\Providers\HibanaServiceProvider" --tag=config