{"id":22768519,"url":"https://github.com/play175/thinklite","last_synced_at":"2025-03-30T11:16:06.454Z","repository":{"id":145575876,"uuid":"166522862","full_name":"play175/thinklite","owner":"play175","description":"极致简约，只有一个文件的 “thinkphp”","archived":false,"fork":false,"pushed_at":"2019-05-25T08:39:23.000Z","size":217,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T12:52:58.776Z","etag":null,"topics":["framework","php","thinklite","thinkphp"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/play175.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-19T08:12:40.000Z","updated_at":"2022-09-19T06:54:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c38b523-e83f-4884-99d8-f788829f2970","html_url":"https://github.com/play175/thinklite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play175%2Fthinklite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play175%2Fthinklite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play175%2Fthinklite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/play175%2Fthinklite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/play175","download_url":"https://codeload.github.com/play175/thinklite/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246308048,"owners_count":20756482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","php","thinklite","thinkphp"],"created_at":"2024-12-11T14:11:48.057Z","updated_at":"2025-03-30T11:16:06.424Z","avatar_url":"https://github.com/play175.png","language":"PHP","readme":"thinklite\n=====\n\n极致简约，只有一个文件的 “thinkphp”\n\n网上能找到的PHP框架对我来说似乎都太重型了，PHP本质上是一个用于快速开发小型web应用的脚本，不太适合用来开发重型web应用，另外我觉得在PHP之上再实现一套自己的模板引擎的做法是愚蠢的，所以在这个背景下，thinklite就诞生了。\n\n**thinklite** 非常简洁，只需要引入一个文件就可以工作了，她拥有且不限于下面这些特性：\n\n* 类似 thinkphp 框架的三级路由结构，且有非常好用的 `U()` 函数用来生成路由链接\n\n* 全能的 `I()` 函数，用来捕获和验证输入参数（GET/POST/REQUEST/COOKIE）\n\n* 基于 pdo 的数据库操作类，从根源上增加安全性，杜绝 sql 拼接，而且自带了智能的数据分页处理\n\n* API 类型的应用和页面渲染型应用对于 contorller 层是透明的，甚至是可以共用一个 controller 类同时实现 API 数据输出和 HTML 渲染输出，该机制对于目前前后端分离的大环境非常友好\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplay175%2Fthinklite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplay175%2Fthinklite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplay175%2Fthinklite/lists"}