{"id":13813247,"url":"https://github.com/jonseg/crud-admin-generator","last_synced_at":"2025-05-14T22:32:20.230Z","repository":{"id":16196834,"uuid":"18943544","full_name":"jonseg/crud-admin-generator","owner":"jonseg","description":"An open source tool to generate a complete backend from a MySql database.","archived":false,"fork":false,"pushed_at":"2022-12-09T23:19:36.000Z","size":3703,"stargazers_count":1425,"open_issues_count":85,"forks_count":441,"subscribers_count":122,"default_branch":"master","last_synced_at":"2024-11-19T07:41:28.492Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://crud-admin-generator.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonseg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-19T15:04:48.000Z","updated_at":"2024-10-14T02:21:40.000Z","dependencies_parsed_at":"2023-01-11T20:24:38.632Z","dependency_job_id":null,"html_url":"https://github.com/jonseg/crud-admin-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonseg%2Fcrud-admin-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonseg%2Fcrud-admin-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonseg%2Fcrud-admin-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonseg%2Fcrud-admin-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonseg","download_url":"https://codeload.github.com/jonseg/crud-admin-generator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254239963,"owners_count":22037802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T04:01:09.389Z","updated_at":"2025-05-14T22:32:15.109Z","avatar_url":"https://github.com/jonseg.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"CRUD Admin Generator\n===================\n\nWhat is CRUD Admin Generator?\n-----------------------------\n\n**CRUD Admin Generator** ([http://crud-admin-generator.com][1]) is a tool to **generate a complete backend from a MySql database** where you can create, read, update and delete records in a database. \n\n**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. \n\n**The generated code is fully customizable and extensible.**\n\nIt has been programmed with the Silex framework, so the resulting code is PHP.\n\n\nInstallation\n------------\n\nClone the repository\n\n    git clone https://github.com/jonseg/crud-admin-generator.git admingenerator\n\n    cd admingenerator\n\nDownload composer:\n\n    curl -sS https://getcomposer.org/installer | php\n\nInstall vendors:\n\n    php composer.phar install\n\nYou need point the document root of your virtual host to /path_to/admingenerator/web\n\nThis is an example of VirtualHost:\n\n    \u003cVirtualHost *:80\u003e\n        DocumentRoot /path_to/admingenerator/web\n        DirectoryIndex index.php\n        \u003cDirectory \"/path_to/admingenerator/web\"\u003e\n            Options Indexes FollowSymLinks\n            Order Allow,Deny\n            Allow from all\n            AllowOverride all\n            \u003cIfModule mod_php5.c\u003e\n                php_admin_flag engine on\n                php_admin_flag safe_mode off\n                php_admin_value open_basedir none\n            \u003c/ifModule\u003e\n        \u003c/Directory\u003e\n    \u003c/VirtualHost\u003e\n    \nYou can customize the url using the .htaccess file, maybe this will help you:\n[http://stackoverflow.com/questions/24952846/how-do-i-remove-the-web-from-my-url/24953439#24953439](http://stackoverflow.com/questions/24952846/how-do-i-remove-the-web-from-my-url/24953439#24953439)\n\n\nGenerate CRUD backend\n---------------------\n\nEdit the file /path_to/admingenerator/src/app.php and set your database conection data:\n\n    $app-\u003eregister(new Silex\\Provider\\DoctrineServiceProvider(), array(\n        'dbs.options' =\u003e array(\n            'db' =\u003e array(\n                'driver'   =\u003e 'pdo_mysql',\n                'dbname'   =\u003e 'DATABASE_NAME',\n                'host'     =\u003e 'localhost',\n                'user'     =\u003e 'DATABASE_USER',\n                'password' =\u003e 'DATABASE_PASS',\n                'charset'  =\u003e 'utf8',\n            ),\n        )\n    ));\n\n\nYou need to set the url of the resources folder.\n\nChange this line:\n\n    $app['asset_path'] = '/resources';\n\nFor the url of your project, for example:\n\n    $app['asset_path'] = 'http://domain.com/crudadmin/resources';\n\n\nNow, execute the command that will generate the CRUD backend:\n\n    php console generate:admin\n\n**This is it!** Now access with your favorite web browser.\n\n\nThe command generates one menu section for each database table. **Now will be much easier to list, create, edit and delete rows!**\n\n\nCustomize the result\n--------------------\n\nThe generated code is fully configurable and editable, you just have to edit the corresponding files.\n\n - The **controller** you can find it in **/web/controllers/TABLE_NAME/index.php**\n - The **views** are in **/web/views/TABLE_NAME**\n\nIt has generated a folder for each database table.\n\n\nContributing\n------------\n\nIf you want to contribute code to CRUD Admin Generator, we are waiting for your pull requests!\n\nSome suggestions for improvement could be:\n\n - Different form fields depending on data type.: datetime, time...\n - Create admin user with a login and logout page.\n - Generate CRUD for tables with more than one primary key.\n - Any other useful functionality!\n\nAuthor\n------\n\n* Jon Segador \u003cinfo@jonsegador.com\u003e\n* Personal site: [http://jonsegador.com/](http://jonsegador.com/)\n* Twitter: *[@jonseg](https://twitter.com/jonseg)*\n* CRUD Admin Generator webpage: [http://crud-admin-generator.com](http://crud-admin-generator.com)\n\n\n  [1]: http://crud-admin-generator.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonseg%2Fcrud-admin-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonseg%2Fcrud-admin-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonseg%2Fcrud-admin-generator/lists"}