{"id":23272824,"url":"https://github.com/fenguoz/standard","last_synced_at":"2025-07-21T05:06:09.651Z","repository":{"id":113459220,"uuid":"331860460","full_name":"Fenguoz/standard","owner":"Fenguoz","description":"PHP开发规范指南包含了项目开发规范、PHP编码规范、Mysql数据库设计规范、单元测试规范、异常日志规范、安全规范。","archived":false,"fork":false,"pushed_at":"2022-01-23T20:38:40.000Z","size":30,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T10:15:51.514Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/Fenguoz.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":"2021-01-22T06:43:49.000Z","updated_at":"2025-02-20T08:36:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7abbff4-32ae-409c-97b7-44be916b3682","html_url":"https://github.com/Fenguoz/standard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Fenguoz/standard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fenguoz%2Fstandard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fenguoz%2Fstandard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fenguoz%2Fstandard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fenguoz%2Fstandard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fenguoz","download_url":"https://codeload.github.com/Fenguoz/standard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fenguoz%2Fstandard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266242072,"owners_count":23898102,"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":[],"created_at":"2024-12-19T19:19:40.007Z","updated_at":"2025-07-21T05:06:09.635Z","avatar_url":"https://github.com/Fenguoz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP开发规范指南\n\n## 目录\n\n- [0. 介绍](README.md)\n- [1. 前言](Preface.md)\n- [2. 项目开发规范](Project.md/#project)\n- [3. PHP编码规范](PHP.md/#php)\n  - [3.1. 命名风格](PHP.md/#name)\n  - [3.2. 常量定义](PHP.md/#constant)\n  - [3.3. 代码格式](PHP.md/#format)\n  - [3.4. OOP规约](PHP.md/#oop)\n  - [3.5. 并发处理](PHP.md/#concurrent)\n  - [3.6. 控制语句](PHP.md/#control)\n  - [3.7. 其它](PHP.md/#other)\n- [4. Mysql数据库设计规范](Mysql.md/#mysql)\n  - [4.1. 建表规约](Mysql.md/#buildtable)\n  - [4.2. 索引规约](Mysql.md/#index)\n  - [4.3. SQL语句](Mysql.md/#sql)\n  - [4.4. ORM映射](Mysql.md/#orm)\n- [5. 单元测试规范](UnitTest.md/#test)\n- [6. 异常日志规范](Log.md/#exception-log)\n  - [6.1. 异常处理](Log.md/#exception)\n  - [6.2. 日志规约](Log.md/#log)\n- [7. 安全规范](Safe.md/#safe)\n\n\n## 版本历史\n\n| 版本号 | 版本名 | 更新时间 | 备注 |\n| :-----:| :----: | :----: | :---- |\n| 0.1.0 | 试读版 | 2021.01.22 | - |\n\n## 名词解释\n\n1. ORM(Object Relation Mapping): 对象关系映射，对象领域模型与底层数据之间的转换， 本文泛指 Laravel,Hyperf 等框架。\n1. NPE(java.lang.NullPointerException): 空指针异常。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffenguoz%2Fstandard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffenguoz%2Fstandard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffenguoz%2Fstandard/lists"}