Code Monkey home page Code Monkey logo

modules's Introduction

Caffeinated Modules

Laravel 5.1 Laravel 5.2 Source 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

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

Caffeinated\Modules\ModulesServiceProvider::class,

Facade

'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:

'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!

modules's People

Contributors

kaidesu avatar torrentalle avatar hamrahpay avatar mohamedsharaf avatar veneliniliev avatar nickurt avatar dakiesse avatar marcoflorian avatar syahzul avatar comenk avatar

Watchers

Žiga Pompe avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.