Download the PHP package megaads/clara without Composer

On this page you can find all versions of the php package megaads/clara. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package clara

Clara

A module management in Laravel

System requirements

Installation

Clara is packed as a composer package. So it can be installed quickly:

  1. Require the composer package

    composer require megaads/clara

  2. Register the provider:

    Megaads\Clara\Providers\ModuleServiceProvider

  3. Register the facade:

    Megaads\Clara\Facades\ModuleFacade

  4. Autoloading

By default, Module classes are not loaded automatically. You can autoload your modules in composer.json

  1. Publish Clara configurations

To override Clara default configuration options, you will need to publish Clara configuration file to the application's config directory.

Module Management

Create module

Naming conventions

Module names should follow UpperCamelCase syntax (without any space characters). For example: FacebookComment

and module namespace in kebab-case that correspond to a module name in CamelCase. For example: facebook-comment

Folder structure

Module installing

Install a module using the module name

Clara takes the name of the module that requested to search for it in the app repository that you have registered in config/clara.php configuration, after downloading the module files, Clara adds the module configuration to the module.json file

Install module list from module.json

This will searches and downloads the modules listed in module.json from the app repository into the app/Modules/ directory

Install a module from a zip file or an URL

Enable a module

Disable a module

Remove a 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 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/{module-namespace} while a module was installed, made or enabled.

Include a module asset

Using PHP

Using blade statement

Create module asset link manually

Create module asset link manually for all activated modules

Module Configurations

All of the configuration files for the module are stored in the {ModuleName}/Config directory

Accessing Configuration Values

Sometimes you may need to access configuration values at run-time. You may do so using the Config class

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 with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
laravel/framework Version 5.4.*
megaads/composer-merge-plugin Version *
illuminate/support Version >=5.3
jeremeamia/superclosure Version ^2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package megaads/clara contains the following files

Loading the files please wait ....