Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/public_html/test.tradze.com/Backup25feb2025/vendor/caffeinated/modules/ |
Caffeinated Modules
===================
[](http://laravel.com)
[](http://laravel.com)
[](https://github.com/caffeinated/modules)
[](https://tldrlegal.com/license/mit-license)
Caffeinated Modules is a simple package to allow the means to separate your Laravel 5 application out into modules. Each module is completely self-contained allowing the ability to simply drop a module in for use.
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code. At the moment the package is not unit tested, but is planned to be covered later down the road.
Documentation
-------------
You will find user friendly and updated documentation in the wiki here: [Caffeinated Modules Wiki](https://github.com/caffeinated/modules/wiki)
Quick Installation
------------------
Begin by installing the package through Composer.
```
composer require caffeinated/modules
```
Once this operation is complete, simply add both the service provider and facade classes to your project's `config/app.php` file:
#### Service Provider
```php
Caffeinated\Modules\ModulesServiceProvider::class,
```
#### Facade
```php
'Module' => Caffeinated\Modules\Facades\Module::class,
```
#### Compiled File Providers Support
With the release of v3.1, register the package within your applications `compile.php` config file:
```php
'providers' => [
Caffeinated\Modules\ModulesServiceProvider::class
],
```
You may then specify a `compiles()` public static method within each of your modules' service provider to compile additional files provided by your modules generated by the `artisan optimize` command. These should include classes that are included on basically every request into your application.
And that's it! With your coffee in reach, start building out some awesome modules!