Skip to content

Hreacon/jensenModel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Jensen Model

A flexible PHP model class that's very easy to adapt to different databases and structures by changing one array.

Setup:

  • In the parameters change/add variables for your table name and fields(as arrays)
  • In the constructor change the tableNameFields to your table name and set it equal to an array of the fields, in order.
  • You can add custom methods at the bottom to put more specific names to your particular application

Usage:

  • Constructed using an existing PDO
  • Depending on the usage you usually just have to pass in an array of the values you want to save or update and the table name.
  • More documentation can be found in the php file

About

A flexible PHP model base class for easy database handling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages