Installation

git clone https://github.com/jonseg/crud-admin-generator.git admingenerator

cd admingenerator

curl -sS https://getcomposer.org/installer | php

php composer.phar install

<VirtualHost *:80> DocumentRoot /path_to/admingenerator/web DirectoryIndex index.php <Directory "/path_to/admingenerator/web"> Options Indexes FollowSymLinks Order Allow,Deny Allow from all AllowOverride all <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir none </ifModule> </Directory> </VirtualHost>

Generate CRUD backend

Clone GitHub repository:Download composer:Install vendors:You need point the document root of your virtual host to /path_to/admingenerator/webThis is an example of VirtualHost:You can customize the url using the .htaccess file, maybe this will help you:

$app->register(new Silex\Provider\DoctrineServiceProvider(), array( 'dbs.options' => array( 'db' => array( 'driver' => 'pdo_mysql', 'dbname' => 'DATABASE_NAME', 'host' => 'localhost', 'user' => 'DATABASE_USER', 'password' => 'DATABASE_PASS', 'charset' => 'utf8', ), ) ));

$app['asset_path'] = '/resources';

$app['asset_path'] = 'http://domain.com/crudadmin/resources';

php console generate:admin

Edit the file /path_to/admingenerator/src/app.php and set your database conection data:You need to set the url of the resources folder.Change this line:For the url of your project, for example:Now, execute the command that will generate the CRUD backend:Now access with your favorite web browser.The command generates one menu section for each database table.