jonseg/crud-admin-generator
jonseg/crud-admin-generator has 1,418 GitHub stars and 431 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 06:23 UTC. Last push 2022-12-09.
An open source tool to generate a complete backend from a MySql database.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalCRUD Admin Generator
What is CRUD Admin Generator?
CRUD Admin Generator (http://crud-admin-generator.com) is a tool to generate a complete backend from a MySql database where you can create, read, update and delete records in a database.
The backend is generated in seconds without configuration files where there is a lot of "magic" and is very difficult to adapt to your needs.
The generated code is fully customizable and extensible.
It has been programmed with the Silex framework, so the resulting code is PHP.
Installation
Clone the repository
git clone https://github.com/jonseg/crud-admin-generator.git admingenerator
cd admingenerator
Download composer:
curl -sS https://getcomposer.org/installer | php
Install vendors:
php composer.phar install
You need point the document root of your virtual host to /path_to/admingenerator/web
This is an example of VirtualHost:
<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>
You can customize the url using the .htaccess file, maybe this will help you: http://stackoverflow.com/questions/24952846/how-do-i-remove-the-web-from-my-url/24953439#24953439
Generate CRUD backend
Edit the file /path_to/admingenerator/src/app.php and set your database conection data:
$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',
),
)
));
You need to set the url of the resources folder.
Change this line:
$app['asset_path'] = '/resources';
For the url of your project, for example:
$app['asset_path'] = 'http://domain.com/crudadmin/resources';
Now, execute the command that will generate the CRUD backend:
php console generate:admin
This is it! Now access with your favorite web browser.
The command generates one menu section for each database table. Now will be much easier to list, create, edit and delete rows!
Customize the result
The generated code is fully configurable and editable, you just have to edit the corresponding files.
- The controller you can find it in /web/controllers/TABLE_NAME/index.php
- The views are in /web/views/TABLE_NAME
It has generated a folder for each database table.
Contributing
If you want to contribute code to CRUD Admin Generator, we are waiting for your pull requests!
Some suggestions for improvement could be:
- Different form fields depending on data type.: datetime, time...
- Create admin user with a login and logout page.
- Generate CRUD for tables with more than one primary key.
- Any other useful functionality!
Author
Jon Segador [email protected]
Personal site: http://jonsegador.com/
Twitter: @jonseg
CRUD Admin Generator webpage: http://crud-admin-generator.com
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,303 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,725 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,268 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,439 stars