Download the PHP package hgists/lumener without Composer
On this page you can find all versions of the php package hgists/lumener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package lumener
Lumener
Adminer is a full-featured database management tool written in PHP. This package integrates the adminer interface into your Lumen or Laravel project by acting as a wrapper and taking care of incompatibility issues. Lumener also provides means to update, stylize or extend adminer through the artisan commands.
This was initially forked from leung/laravel-adminer. The package was developed and tested using Lumen. So, Laravel support is untested (Although no changes should break it). Feel free to test on Laravel and open issues and/or submit a pull request!
Requirements
General
- guzzlehttp/guzzle
Lumen
- illuminate/cookie
- illuminate/session
Installation
For Lumen or Laravel 5.4 or older, see the next section.
Provider
The provider will automatically create any required roots and enable the artisan commands.
Lumen
open your bootstrap/app.php
and add this line anywhere before return $app;
Laravel ≤ 5.4
Open your config/app.php
and add this line in providers section
Laravel 5.5+
Auto package discovery should add the provider.
Config
You don't need to create a config file as all configuration parameters have a fallback value. You can follow the following instructions to customize the configuration.
- Create a
config/lumener.php
file or usephp artisan vendor:publish
(Laravel only) - For Lumen, you must also add the following line to
bootstrap/app.php
beforereturn $app;
Artisan Commands
Updating Adminer
You can configure your composer.json to do this after each commit:
You can also create a route to update lumener with the action \Lumener\Controllers\LumenerController@update
.
Themes
Default
If no arguments provided, this command will install the default theme already packed in with Lumener: Material Design for Adminer
For more themes, check the Adminer website.
File
URL
For themes containing images/JavaScript you will have to copy the files manually to your public
path.
Plugins
Install or update any plugin given its path or url.
Plugins must be enabled in config('lumener.adminer.plugins.enabled')
. Refer to the config section.
Default
If no arguments provided, this command will install the plugin.php
file which is required for any plugins to run.
File
URL
Extensions
Adminer supports Extensions. In fact, Lumener takes advantage of quite a few extension functions. However, more extensions can be added using another user-defined class. This can be done all while preserving the original Lumener extensions, unless a conflict arises. Please take some time to check src/logic/adminer_object
before writing your own extensions to be aware of potential conflicts.
To add your own extensions, set config('lumener.adminer.extension_file')
.
Example file:
Custom Route
You can modify route attributes in config('lumener.route')
.
Lumen Special
You may add a route to your own routes file (e.g. routes/web.php
) with the name lumener
and it will override all attributes, except for namespace.
This also works if you add the route inside an existing group.
Using specific HTTP methods is not supported, please keep it null
.
The route path and options here will override config('lumener.route')
.
Laravel Special
You can define a middleware group named lumener
and it will be automatically used in the LumenerController
.
Additionally, add the lumener route to $except
to avoid CSRF issues
Embedding
The route can be redirected to a function in a user-defined controller. This is done by overriding the uses
option either in config('lumener.route.options.uses')
or in the user-defined route (Lumen).
The following code is a simple example of how embedding might work.
Credits
- Hesham Meneisi
-
All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of lumener with dependencies
illuminate/routing Version >=5.0
illuminate/encryption Version >=5.0
illuminate/http Version >=5.0
illuminate/console Version >=5.0
guzzlehttp/guzzle Version >=6.0
ralouphie/mimey Version >=2.1