A skeleton for Keratine CMS project
-
Clone this repository in your new working directory.
-
Download the
composer.phar
executable or use the installer.curl -s https://getcomposer.org/installer | php
-
Run Composer:
php composer.phar update
-
Configure the
config/parameters.yml
file with your application informations like your database's connection informations and other options you want to customize. -
Execute the
install.php
script to create the essentials database tables for the application. Don't forget to delete this file after installation process. -
Execute the command
php src/console.php user:create [username] [password] [email] --roles="ROLE_SUPER_ADMIN"
to create a new super admin user to connect to the application.
The application is now ready to work!
-
Create your Doctrine Entity classes in
src/Entity
directory and related repositories insrc/Entity/Repository
. -
Create controllers in
src/Controller/Admin
directory or create your own namespace insrc/Controller
. Controller classes must extendKeratine\Controller\Controller
orKeratine\Controller\CrudController
. -
Create form types in
src/Form
directory. -
Register new controllers and related base route in
src/controllers.php
by using theApplication::mount()
method like this:$app->mount('/admin/hello', new Controller\Admin\HelloController());
For more information, refer to the Keratine library and to the documentation for Silex and Symfony.