2017 © Pedro Peláez
 

library scaffolding-generator

crud generator for faster build application

image

dawid-daweb/scaffolding-generator

crud generator for faster build application

  • Sunday, January 4, 2015
  • by dawid-daweb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

scaffolding-generator

very useful genearator CRUD – Create Read Update Delete., (*1)

Install

~~~ go „require”: {, (*2)

"dawid-daweb/scaffolding-generator": "dev-master" } ~~~, (*3)

Require

PHP >= 5.4, (*4)

Use

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php <command>/<param>, (*5)

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., (*6)

Create CRUD

it simple only nedd to use command, (*7)

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php create/<name_table>, (*8)

  • 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., (*9)

Change config

<vendor_path>/dawid-daweb/scaffolding-generator/crud.php change/config, (*10)

  • 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, (*11)

The Versions

04/01 2015

dev-master

9999999-dev

crud generator for faster build application

  Sources   Download

BSD

by daWeb