| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/tree/*name(/*path) |
| route-controller | files |
| route-action | disambiguate |
| fetch-nonce | v2:8f903eb1-89ff-87cd-91b0-fd08d34df3d9 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DEAA:17029F:1D1B214:2905E29:6B07329E |
| html-safe-nonce | f42485246a223e35aeae058d36860f9ec70fb0e9a7dca663fd5e1cba81c33543 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUFBOjE3MDI5RjoxRDFCMjE0OjI5MDVFMjk6NkIwNzMyOUUiLCJ2aXNpdG9yX2lkIjoiNDA4ODYzOTE0MzM2NDk5Nzc5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 44959f240e10e782720ec8e389e7ebeef7ee22282395c729dee3eaa806420939 |
| hovercard-subject-tag | repository:204382472 |
| github-keyboard-shortcuts | repository,source-code,file-tree,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///files/disambiguate |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/alpha2016/clean-code-php/tree/patch-1 |
| twitter:image | https://opengraph.githubassets.com/ecdd09380b393f34dd32cf83bf74ad942f545b1ced4e34ef8264217df0f87743/alpha2016/clean-code-php |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecdd09380b393f34dd32cf83bf74ad942f545b1ced4e34ef8264217df0f87743/alpha2016/clean-code-php |
| og:image:alt | :bathtub: PHP版的代码整洁之道 中文翻译. Contribute to alpha2016/clean-code-php development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a60952cad7efb2604ea85e500208f51c1ec1943aa260ac605c13eb46a1ed83b |
| turbo-cache-control | no-cache |
| go-import | github.com/alpha2016/clean-code-php git https://github.com/alpha2016/clean-code-php.git |
| octolytics-dimension-user_id | 13464027 |
| octolytics-dimension-user_login | alpha2016 |
| octolytics-dimension-repository_id | 204382472 |
| octolytics-dimension-repository_nwo | alpha2016/clean-code-php |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 102061086 |
| octolytics-dimension-repository_parent_nwo | php-cpm/clean-code-php |
| octolytics-dimension-repository_network_root_id | 79111500 |
| octolytics-dimension-repository_network_root_nwo | piotrplenik/clean-code-php |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 345c27626db08417fdfc84278a4415ae9a48d8f3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/alpha2016/clean-code-php/tree/patch-1#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Falpha2016%2Fclean-code-php%2Ftree%2Fpatch-1 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Falpha2016%2Fclean-code-php%2Ftree%2Fpatch-1 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Ffiles%2Fdisambiguate&source=header-repo&source_repo=alpha2016%2Fclean-code-php |
| Reload | https://github.com/alpha2016/clean-code-php/tree/patch-1 |
| Reload | https://github.com/alpha2016/clean-code-php/tree/patch-1 |
| Reload | https://github.com/alpha2016/clean-code-php/tree/patch-1 |
| alpha2016 | https://github.com/alpha2016 |
| clean-code-php | https://github.com/alpha2016/clean-code-php |
| Code | https://github.com/alpha2016/clean-code-php |
| Pull requests | https://github.com/alpha2016/clean-code-php/pulls |
| Actions | https://github.com/alpha2016/clean-code-php/actions |
| Projects | https://github.com/alpha2016/clean-code-php/projects |
| Security and quality | https://github.com/alpha2016/clean-code-php/security |
| Insights | https://github.com/alpha2016/clean-code-php/pulse |
| https://github.com/alpha2016/clean-code-php |
| clean-code-php | https://github.com/alpha2016/clean-code-php |
| php-cpm/clean-code-php | https://github.com/php-cpm/clean-code-php |
| Notifications | https://github.com/login?return_to=%2Falpha2016%2Fclean-code-php |
| Fork0 (0) | https://github.com/login?return_to=%2Falpha2016%2Fclean-code-php |
| Star0 (0) | https://github.com/login?return_to=%2Falpha2016%2Fclean-code-php |
| Readme | https://github.com/alpha2016/clean-code-php/tree/patch-1#readme-ov-file |
| License | https://github.com/alpha2016/clean-code-php/tree/patch-1#License-1-ov-file |
| Activity | https://github.com/alpha2016/clean-code-php/activity |
| 0 forks | https://github.com/alpha2016/clean-code-php/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Falpha2016%2Fclean-code-php&report=alpha2016+%28user%29 |
| Branches | https://github.com/alpha2016/clean-code-php/branches |
| Tags | https://github.com/alpha2016/clean-code-php/tags |
| https://github.com/alpha2016/clean-code-php/branches |
| https://github.com/alpha2016/clean-code-php/tags |
| 92 Commits | https://github.com/alpha2016/clean-code-php/commits/patch-1/ |
| https://github.com/alpha2016/clean-code-php/commits/patch-1/ |
| .gitattributes | https://github.com/alpha2016/clean-code-php/blob/patch-1/.gitattributes |
| .gitattributes | https://github.com/alpha2016/clean-code-php/blob/patch-1/.gitattributes |
| LICENSE | https://github.com/alpha2016/clean-code-php/blob/patch-1/LICENSE |
| LICENSE | https://github.com/alpha2016/clean-code-php/blob/patch-1/LICENSE |
| README.md | https://github.com/alpha2016/clean-code-php/blob/patch-1/README.md |
| README.md | https://github.com/alpha2016/clean-code-php/blob/patch-1/README.md |
| README | https://github.com/alpha2016/clean-code-php/tree/patch-1 |
| License | https://github.com/alpha2016/clean-code-php/tree/patch-1 |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#clean-code-php |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| Introduction | https://github.com/alpha2016/clean-code-php/tree/patch-1#introduction |
| Variables | https://github.com/alpha2016/clean-code-php/tree/patch-1#variables |
| Functions | https://github.com/alpha2016/clean-code-php/tree/patch-1#functions |
| Objects and Data Structures | https://github.com/alpha2016/clean-code-php/tree/patch-1#objects-and-data-structures |
| Classes | https://github.com/alpha2016/clean-code-php/tree/patch-1#classes |
| S: Single Responsibility Principle (SRP) | https://github.com/alpha2016/clean-code-php/tree/patch-1#single-responsibility-principle-srp |
| O: Open/Closed Principle (OCP) | https://github.com/alpha2016/clean-code-php/tree/patch-1#openclosed-principle-ocp |
| L: Liskov Substitution Principle (LSP) | https://github.com/alpha2016/clean-code-php/tree/patch-1#liskov-substitution-principle-lsp |
| I: Interface Segregation Principle (ISP) | https://github.com/alpha2016/clean-code-php/tree/patch-1#interface-segregation-principle-isp |
| D: Dependency Inversion Principle (DIP) | https://github.com/alpha2016/clean-code-php/tree/patch-1#dependency-inversion-principle-dip |
| Don’t repeat yourself (DRY) | https://github.com/alpha2016/clean-code-php/tree/patch-1#dont-repeat-yourself-dry |
| Tanslations | https://github.com/alpha2016/clean-code-php/tree/patch-1#translations |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#introduction |
| Clean Code | https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882 |
| clean-code-javascript | https://github.com/ryanmcdermott/clean-code-javascript |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#variables |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-meaningful-and-pronounceable-variable-names |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-the-same-vocabulary-for-the-same-type-of-variable |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-searchable-names |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-explanatory-variables |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#avoid-mental-mapping |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#dont-add-unneeded-context |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-default-arguments-instead-of-short-circuiting-or-conditionals |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#functions |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#function-arguments-2-or-fewer-ideally |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#functions-should-do-one-thing |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#function-names-should-say-what-they-do |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#functions-should-only-be-one-level-of-abstraction |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#dont-use-flags-as-function-parameters |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#avoid-side-effects |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#dont-write-to-global-functions |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#dont-use-a-singleton-pattern |
| anti-pattern | https://en.wikipedia.org/wiki/Singleton_pattern |
| DSN | http://php.net/manual/en/pdo.construct.php#refsect1-pdo.construct-parameters |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#encapsulate-conditionals |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#avoid-negative-conditionals |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#avoid-conditionals |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#avoid-type-checking-part-1 |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#avoid-type-checking-part-2 |
| type declaration | http://php.net/manual/en/functions.arguments.php#functions.arguments.type-declaration |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#remove-dead-code |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#objects-and-data-structures |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-getters-and-setters |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#make-objects-have-privateprotected-members |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#classes |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#single-responsibility-principle-srp |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#openclosed-principle-ocp |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#liskov-substitution-principle-lsp |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#interface-segregation-principle-isp |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#dependency-inversion-principle-dip |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#use-method-chaining |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#prefer-composition-over-inheritance |
| Design Patterns | https://en.wikipedia.org/wiki/Design_Patterns |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#dont-repeat-yourself-dry |
| DRY | https://en.wikipedia.org/wiki/Don%27t_repeat_yourself |
| Classes | https://github.com/alpha2016/clean-code-php/tree/patch-1#classes |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| https://github.com/alpha2016/clean-code-php/tree/patch-1#translations |
| https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/China.png |
| yangweijie/clean-code-php | https://github.com/yangweijie/clean-code-php |
| php-cpm/clean-code-php | https://github.com/php-cpm/clean-code-php |
| ⬆ back to top | https://github.com/alpha2016/clean-code-php/tree/patch-1#table-of-contents |
| Readme | https://github.com/alpha2016/clean-code-php/tree/patch-1#readme-ov-file |
| License | https://github.com/alpha2016/clean-code-php/tree/patch-1#License-1-ov-file |
| Activity | https://github.com/alpha2016/clean-code-php/activity |
| 0 forks | https://github.com/alpha2016/clean-code-php/forks |
| Report repository | https://github.com/contact/report-content?content_url=https%3A%2F%2Fgithub.com%2Falpha2016%2Fclean-code-php&report=alpha2016+%28user%29 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |