Tinly
Tinly - a minimalistic PHP framework (skeleton). Using MVC
Install / Use
/learn @qzio/TinlyREADME
see lib/COPYRIGHT for copyright license.
requirments (i think?) {TODO} php >= 5.2 pdo + mysql driver (php5-mysql?) curl with php bindings if you want to use lib/tcurl. (php5-curl) php5-cli if you whish to use scripts/*
Lets get started!
$ cp example.config.php config.php
-- edit config.php with your settings.
$ cp example.routes.php routes.php
-- edit default routes.
To generate a controller skeleton
$ ./script/generate controller <controller> <action 1> <action 2> ...
To generate a model skeleton
$ ./script generate model <model>
-- edit app/model/blog_post.php and set $tbl to plural. You might want to some add columns to $fields.
To install a model(table) [which extends tinly_model] (this will do sql create table, or sql alter table adding columns)
$ ./script/db install <model>
To drop all tables in configured database
$ ./script/db empty all
If you need more scaffolding, build your own /scripts/my_generate
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
