{"id":28429527,"url":"https://github.com/top-think/think-orm","last_synced_at":"2025-07-04T18:31:18.490Z","repository":{"id":26359828,"uuid":"108497438","full_name":"top-think/think-orm","owner":"top-think","description":"Think ORM——the PHP Database\u0026ORM Framework","archived":false,"fork":false,"pushed_at":"2025-06-26T06:09:00.000Z","size":2484,"stargazers_count":430,"open_issues_count":178,"forks_count":182,"subscribers_count":24,"default_branch":"4.0","last_synced_at":"2025-07-02T05:04:06.146Z","etag":null,"topics":["database","orm"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/top-think.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2017-10-27T03:59:12.000Z","updated_at":"2025-06-26T06:05:52.000Z","dependencies_parsed_at":"2023-01-14T04:29:25.380Z","dependency_job_id":"2ffb104d-c708-43d6-84d0-cf0d99c8e856","html_url":"https://github.com/top-think/think-orm","commit_stats":{"total_commits":730,"total_committers":64,"mean_commits":11.40625,"dds":"0.33287671232876714","last_synced_commit":"db96895739cc0322ffd92de309ebdbb33d46cd2d"},"previous_names":[],"tags_count":170,"template":false,"template_full_name":null,"purl":"pkg:github/top-think/think-orm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/top-think%2Fthink-orm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/top-think%2Fthink-orm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/top-think%2Fthink-orm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/top-think%2Fthink-orm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/top-think","download_url":"https://codeload.github.com/top-think/think-orm/tar.gz/refs/heads/4.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/top-think%2Fthink-orm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263325777,"owners_count":23449296,"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":["database","orm"],"created_at":"2025-06-05T13:38:18.199Z","updated_at":"2025-07-04T18:31:18.485Z","avatar_url":"https://github.com/top-think.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThinkORM4.0\n\n基于PHP8.0+ 和PDO实现的轻量级ORM，完全重构的Model层，支持实体模型和分层（[新特性盘点](https://doc.thinkphp.cn/@think-orm/v4_0/new-features.html)），并基本兼容3.0（参考[升级指导](https://doc.thinkphp.cn/@think-orm/v4_0/upgrade.html)）。\n\n## 特性\n\n* 基于PDO和PHP强类型实现\n* 原生查询支持\n* 灵活的查询构造器和链式查询\n* 自动参数绑定和预查询\n* 聚合查询\n* 强大的模型及关联定义\n* 模型获取器和修改器\n* 虚拟模型支持\n* 实体模型和视图模型支持\n* 支持ActiveRecord模式和仓储模式\n* 模型事件和类型自动转换\n* 数据自动写入和延迟写入\n* 搜索器和查询范围\n* 预载入关联查询和延迟关联查询\n* 数据写入自动验证\n* 多数据库和`MongoDb`支持\n* 分布式及事务、断点重连\n* `JSON`及枚举类支持\n* `PSR-16`缓存及`PSR-3`日志规范\n\n## 安装\n~~~\ncomposer require topthink/think-orm\n~~~\n\n## 文档\n\n详细参考 [ThinkORM开发指南](https://doc.thinkphp.cn/@think-orm)\n\n基于官方手册的数据训练和提供精准解答服务\n[官方专家智能体](https://chat.topthink.com/chat/e7m6qe)\n\n你可以使用官方提供的[ThinkChat](https://chat.topthink.com/)，让你在学习 ThinkPHP 的旅途中享受私人 AI 助理服务！\n\n[![](https://www.topthink.com/uploads/assistant/20230630/4d1a3f0ad2958b49bb8189b7ef824cb0.png)](https://chat.topthink.com/)\n\nThinkPHP 生态服务由[顶想云](https://www.topthink.com)（TOPThink Cloud）提供，为生态提供专业的开发者服务和价值之选。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftop-think%2Fthink-orm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftop-think%2Fthink-orm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftop-think%2Fthink-orm/lists"}