2017 © Pedro Peláez
 

phile-plugin phile-admin

Extendable Admin Backend Framework for PhileCMS

image

siezi/phile-admin

Extendable Admin Backend Framework for PhileCMS

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 4 Open issues
  • 12 Versions
  • 1 % Grown

The README.md

Phile Admin

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., (*1)

Find plugins using it on Phile’s plugin page., (*2)

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., (*3)

2. Activation

After you have installed the plugin you activate it by adding the following line to your config.php file:, (*4)

$config['plugins']['siezi\\phileAdmin'] = ['active' => true];

The default backend URL is http://…/<phile-root>/backend/, (*5)

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., (*6)

$config['plugins']['siezi\\phileAdmin']['admin'] = [
    'name' => '<name>',
    'password' => '<password hash>'
];

4. Config

See config.php., (*7)

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)., (*8)

See the cache plugin for a simple plugin implementation., (*9)

Enable the debug mode in the config.php when you develop (disable template cache, …)., (*10)

The Versions