puneetxp / the_template_php
PHP template for The framework
Package info
github.com/puneetxp/the_template_php
Language:HTML
Type:template
pkg:composer/puneetxp/the_template_php
0.0.4.24
2024-07-31 22:53 UTC
Requires
- puneetxp/compile-php: ^0.2
README
Roadmap to compile in multiple Languages Roadmap to be decide.
First Step
Go to App/Karl/setup/model/ where is json you can create new json file accordingly
{ "name": "user",//MODEL NAME "table": "users",//TABLE NAME "crud": ["c", "r", "u","d"],//CREATE UPDATE READ DELETE "data": [{ "name": "password",//name of database "mysql_data": "varchar(255)",//mysql database "sql_attribute": "NULL",//mysql sql_attribute //if there is no sql_attribute then it is NOT NULL so you can skip it "datatype": "string"//for interface file }], "roles": { "read": ["admin"],//roles allow to read "update": ["admin"],//roles allow to update "write": ["admin"],//roles allow to write "delete": ["-"]//roles allow to delete } }
Then Run App/Karl/setup/autosetup.php
That will create Controller, Routes, Model, Also Interface in typesript for your front end