puneetxp/the_template_php
最新稳定版本:0.0.4.24
Composer 安装命令:
composer require puneetxp/the_template_php
包简介
PHP template for The framework
README 文档
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
统计信息
- 总下载量: 64
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2023-01-09