siezi / phile-admin
Extendable Admin Backend Framework for PhileCMS
Installs: 195
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 5
Type:phile-plugin
Requires
- cakephp/utility: ^3.0
- components/jquery: ^2.1
- ircmaxell/password-compat: ^1.0
- phile-cms/phile: ^1.5
- silex/silex: ^1.2
- symfony/config: ^2.6
- symfony/form: ^2.6
- symfony/options-resolver: 2.6.*
- symfony/security: 2.6
- symfony/translation: ^2.6
- symfony/twig-bridge: ^2.6
- symfony/validator: ^2.6
- twitter/bootstrap: ^3.3
README
What
A small admin backend framework for PhileCMS based on Silex (symfony components) and Bootstrap. Takes care of the backend boilerplate (login/logout, templating, localization) and makes it easy to develop admin plugins.
Find plugins using it on Phile’s plugin page.
Installation
1.1 Installation (composer)
"require": { "siezi/phile-admin": "*" }
1.2 Installation (Download)
Download the latest archive from the release page into plugins/siezi/phileAdmin
.
2. Activation
After you have installed the plugin you activate it by adding the following line to your config.php
file:
$config['plugins']['siezi\\phileAdmin'] = ['active' => true];
The default backend URL is http://…/<phile-root>/backend/
3. Start
To login you have to chose an admin password, create an hash for it (see login page) and put it into the plugin config.
$config['plugins']['siezi\\phileAdmin']['admin'] = [ 'name' => '<name>', 'password' => '<password hash>' ];
4. Config
See config.php
.
Plugin Development
The backend is essentially a Silex app and a admin-plugin repository containing admin-plugins. On a callback in a standard Phile Plugin-class you create a new admin-plugin, configure it and add it to the repository. Then you create Silex routes and controllers (extending AdminController
).
See the cache plugin for a simple plugin implementation.
Enable the debug mode in the config.php
when you develop (disable template cache, …).