Simple script/application for generating PHP code based on SQL. Can be used as application (Github pages) or can be used as script and integrated into something else.
You can either try it here or download SQL2PHP.js and implement it in your application.
Code will generate these files:
Objects.php
- File with all PHP class definitionsDatabase.php
- Static file withDatabase
class that is used in generated files- Multiple
MyDatabase.php
- Each of these files is named by one DB in SQL input and this one file contains class definition for this on DB.