hyperbolaa/laravel-plugins

Laravel plugin management

dev-main 2021-10-15 09:27 UTC

This package is auto-updated.

Last update: 2024-10-15 15:43:50 UTC


README

Install

To install through Composer, by run the following command:

composer require hyperbolaa/laravel-plugins

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

php artisan vendor:publish --provider="Hyperbolaa\Plugins\LaravelPluginsServiceProvider"

Autoloading

By default, the plugin classes are not loaded automatically. You can autoload your plugins using psr-4. For example:

{
  "autoload": {
    "psr-4": {
      "App\\": "app/",
      "Plugins\\": "Plugins/"
    }
  }
}

Tip: don't forget to run composer dump-autoload afterwards.

Documentation

You'll find installation instructions and full documentation on https://fresns.cn/plugins/.

License

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