Giter Site home page Giter Site logo

scaffolding-generator's Introduction

scaffolding-generator

very useful genearator CRUD – Create Read Update Delete.

Install

„require”: {

   "dawid-daweb/scaffolding-generator": "dev-master"
}

Require

PHP >= 5.4

Use

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php <command>/<param>

Allowed Commands

  • create/<name_table> - create scaffolding
  • back - delete last created crud file
  • change/config - change config file
  • help – show allowed commands

How it works?

Module retrieves info on the table columns based on collected info are created class with query(selct, insert, delete, update) in PDO handle PDO is always put to constructor class, check default generated CRUD file . You can change template generated file.

Create CRUD

it simple only nedd to use command

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php create/<name_table>

  • replace „<name_table>” to real name

Change generated template CRUD

when you need change template you must create template class instanceof daweb\crud\scaffoldingTemplate and pass name your new template with namespaces to config file.

Change config

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php change/config

  • this command will return path to config file edit him in your favorite file editor

Delete last created CRUD file

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php back

scaffolding-generator's People

Contributors

dawid-bednarz avatar easysolid avatar

Watchers

James Cloos 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.