Download the PHP package megaads/clara-app-store without Composer
On this page you can find all versions of the php package megaads/clara-app-store. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package clara-app-store
Clara
A module management in Laravel
System requirements
- PHP: >=5.6
- Laravel Framework: >=5.4
Installation
Clara is packed as a composer package. So it can be installed quickly:
-
Require the composer package
composer require megaads/clara
-
Register the provider:
Megaads\Clara\Providers\ModuleServiceProvider
-
Register the facade:
Megaads\Clara\Facades\ModuleFacade
- Autoloading
By default the module classes are not loaded automatically. You can autoload your modules in composer.json
- Publish file config
With the module submit function, must have url configuration of store. To generate clara configuration file:
Module Management
Create module
Folder structure
- module.json: the module configuration file is based on composer composer.json. All configurations in the module.json will be merged to main composer.json.
- start.php: the module's start file that will be loaded every requests. So module actions, module views... can be registered in this file.
Install module from a file or an URL
Enable module
Disable module
Remove module
Remove all modules
Module Action
Fire a action
Using PHP
Using blade statement
Handle a action
Handle a action using a controller
By default, Clara supplies actions:
- module_made
- module_loaded
- module_disabled
- module_enabled
- module_removed
- module_removed_all
Module View
Register a view
Using PHP
Using blade statement
Handle a view
Handle a view using a controller
Module variable
Register a variable
Using PHP
Using blade statement
Handle a variable
Module Assets
Clara will create a symbol link from module asset directory app/Modules/{ModuleName}/Resources/Assets
to public/modules/{ModuleNamespace}
Include a module asset
Using PHP
Using blade statement
Create module asset link manually
Module Utility Methods
Get all modules
Get the current module
Get module options
Set module option
License
The Clara is open-sourced software licensed under the MIT license
Contact us / Instant feedback
Email: [email protected] | [email protected]
If you find a bug, please report it here on Github
All versions of clara-app-store with dependencies
laravel/framework Version 5.4.*
wikimedia/composer-merge-plugin Version 1.4.*
illuminate/support Version >=5.3
jeremeamia/superclosure Version ^2.4