Giter Club home page Giter Club logo

crudgen's Introduction

crudgen

Create, read, update, delete page generator for MySQL databases.

It's actually easy

One file and one form to fill out. All dependancies are included, you don't need anything else.

How do I use it?

1. Copy index.php somewhere on your server that has write access.
2. Fill out the form

And that's it! You'll have a full featured C.R.U.D interface for everything in your database.

How does it work?

Once your details have been grabbed, the script will access your information_schema table, which contains names and constraints on your tables and columns. For each table it finds, it builds a view page that uses the DataTables plugin, with inline editing, add and delete functionality.

What's with all the obfuscated stuff?

In order to shove everything into one file it was necessary to obfuscate it so PHP can write the files. The DateTimePicker that is used doesn't have a CDN, and there are several other files (datatables-editable and a few CSS) that required modification before they could be used properly.

So exactly what files are written?

In order of appearence in the index,

  • jquery.datetimepicker.js
  • cleanup.php
    • Script to delete unnecessary files after installation.
  • __globals.php
    • Contains mysqli connection data and global variables
  • __generator.php
    • Builds the actual functionality and files for each table encountered. So for every table you have, this will create FOUR files. A display file [tablename].php, with create-[tablename].php, edit-[tablename].php and delete-[tablename].php.
  • __layout.php
    • Contains the layout of each function page, has a bunch of inline scripts for initialising the plugins on each page.

crudgen's People

Contributors

andrew207 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.