{"id":13398923,"url":"https://github.com/yiisoft/yii2","last_synced_at":"2026-10-18T22:04:58.159Z","repository":{"id":2459317,"uuid":"3431193","full_name":"yiisoft/yii2","owner":"yiisoft","description":"Yii 2: The Fast, Secure and Professional PHP Framework","archived":false,"fork":false,"pushed_at":"2026-10-17T09:55:34.000Z","size":91876,"stargazers_count":14278,"open_issues_count":296,"forks_count":6750,"subscribers_count":1024,"default_branch":"master","last_synced_at":"2026-10-17T19:18:53.090Z","etag":null,"topics":["framework","hacktoberfest","php","php-framework","yii","yii2"],"latest_commit_sha":null,"homepage":"http://www.yiiframework.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yiisoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"claude":null,"gemini":null,"cursor":null,"copilot":null,"dco":null,"cla":null,"disclosure":null},"funding":{"open_collective":"yiisoft","github":["yiisoft"]}},"created_at":"2012-02-13T15:32:36.000Z","updated_at":"2026-10-17T09:55:51.000Z","dependencies_parsed_at":"2026-09-24T00:38:10.939Z","dependency_job_id":null,"html_url":"https://github.com/yiisoft/yii2","commit_stats":{"total_commits":16680,"total_committers":1424,"mean_commits":"11.713483146067416","dds":0.8438848920863309,"last_synced_commit":"5ec5a4b74d06569a915cb31a20b8e07707546023"},"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"purl":"pkg:github/yiisoft/yii2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yiisoft","download_url":"https://codeload.github.com/yiisoft/yii2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yiisoft%2Fyii2/sbom","scorecard":{"id":926190,"data":{"date":"2025-08-11","repo":{"name":"github.com/yiisoft/yii2","commit":"5468bca7bca6190f8088b67732be12c4a3acff43"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.1,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 13 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":9,"reason":"Found 27/28 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 2.0.53 not signed: https://api.github.com/repos/yiisoft/yii2/releases/228284180","Warn: release artifact 2.0.52 not signed: https://api.github.com/repos/yiisoft/yii2/releases/200234825","Warn: release artifact 2.0.51 not signed: https://api.github.com/repos/yiisoft/yii2/releases/166124951","Warn: release artifact 2.0.50 not signed: https://api.github.com/repos/yiisoft/yii2/releases/158222057","Warn: release artifact 2.0.49 not signed: https://api.github.com/repos/yiisoft/yii2/releases/119086760","Warn: release artifact 2.0.53 does not have provenance: https://api.github.com/repos/yiisoft/yii2/releases/228284180","Warn: release artifact 2.0.52 does not have provenance: https://api.github.com/repos/yiisoft/yii2/releases/200234825","Warn: release artifact 2.0.51 does not have provenance: https://api.github.com/repos/yiisoft/yii2/releases/166124951","Warn: release artifact 2.0.50 does not have provenance: https://api.github.com/repos/yiisoft/yii2/releases/158222057","Warn: release artifact 2.0.49 does not have provenance: https://api.github.com/repos/yiisoft/yii2/releases/119086760"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: tests/cubrid/Dockerfile:1: pin your Docker image by updating php:5-fpm to php:5-fpm@sha256:4f070f1b7b93cc5ab364839b79a5b26f38d5f89461f7bc0cd4bab4a3ad7d67d7","Warn: containerImage not pinned by hash: tests/mssql/Dockerfile:1","Warn: downloadThenRun not pinned by hash: tests/cubrid/Dockerfile:22-24","Warn: downloadThenRun not pinned by hash: tests/mssql/Dockerfile:37-39","Info:   0 out of   3 containerImage dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-27T03:04:50.311Z","repository_id":2459317,"created_at":"2025-08-27T03:04:50.312Z","updated_at":"2025-08-27T03:04:50.312Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38335477,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-17T02:00:06.547Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","hacktoberfest","php","php-framework","yii","yii2"],"created_at":"2024-07-30T19:00:32.732Z","updated_at":"2026-10-18T22:04:58.152Z","avatar_url":"https://github.com/yiisoft.png","language":"PHP","funding_links":["https://opencollective.com/yiisoft","https://github.com/sponsors/yiisoft"],"categories":["PHP","`API Frameworks`","基础框架","Web","武器库","Essentials","API Frameworks","General"],"sub_categories":["PHP","构建/部署","Web Frameworks","后端"],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.yiiframework.com/\" target=\"_blank\"\u003e\n        \u003cpicture\u003e\n            \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://www.yiiframework.com/image/design/logo/yii3_full_for_dark.svg\"\u003e\n            \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://www.yiiframework.com/image/design/logo/yii3_full_for_light.svg\"\u003e\n            \u003cimg src=\"https://www.yiiframework.com/image/design/logo/yii3_full_for_light.svg\" alt=\"Yii Framework\" height=\"100\"\u003e\n        \u003c/picture\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nYii 2 is a modern framework designed to be a solid foundation for your PHP application.\n\nIt is fast, secure and efficient and works right out of the box pre-configured with reasonable defaults.\nThe framework is easy to adjust to meet your needs, because Yii has been designed to be flexible.\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/yiisoft/yii2.svg?logo=packagist\u0026style=for-the-badge\u0026label=Stable)](https://packagist.org/packages/yiisoft/yii2)\n[![Total Downloads](https://img.shields.io/packagist/dt/yiisoft/yii2.svg?style=for-the-badge)](https://packagist.org/packages/yiisoft/yii2)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/build.yml?style=for-the-badge\u0026logo=github\u0026label=Build)](https://github.com/yiisoft/yii2/actions/workflows/build.yml)\n[![Static Analysis](https://img.shields.io/github/actions/workflow/status/yiisoft/yii2/static.yml?style=for-the-badge\u0026label=Static\u0026logo=github)](https://github.com/yiisoft/yii2/actions/workflows/static.yml)\n[![codecov](https://img.shields.io/codecov/c/github/yiisoft/yii2.svg?style=for-the-badge\u0026logo=codecov\u0026logoColor=white\u0026label=Codecov)](https://codecov.io/gh/yiisoft/yii2)\n\nInstallation\n------------\n\n\u003e [!IMPORTANT]\n\u003e - The minimum required [PHP](https://www.php.net/) version of Yii is PHP `7.4`.\n\u003e - It works best with PHP `8`.\n\n- [Follow the Definitive Guide](https://www.yiiframework.com/doc-2.0/guide-start-installation.html)\nin order to get step by step instructions.\n\nDocumentation\n-------------\n\n- A [Definitive Guide](https://www.yiiframework.com/doc/guide/2.0) and \na [Class Reference](https://www.yiiframework.com/doc/api/2.0) cover every detail\nof the framework.\n- There is a [PDF version](https://www.yiiframework.com/doc/download/yii-guide-2.0-en.pdf) of the Definitive Guide\nand a [Definitive Guide Mirror](http://stuff.cebe.cc/yii2docs/) which is updated every 15 minutes.\n- For Yii 1.1 users, there is [Upgrading from Yii 1.1](https://www.yiiframework.com/doc/guide/2.0/en/intro-upgrade-from-v1)\nto get an idea of what has changed in 2.0.\n\nVersions \u0026 PHP compatibility\n----------------------------\n\n\u003e [!NOTE]\n\u003e See [\"Release Cycle\" at the website](https://www.yiiframework.com/release-cycle) for detailed information about supported versions.\n\nCommunity\n---------\n\n- Participate in [discussions at forums](https://www.yiiframework.com/forum/).\n- [Community Slack](https://join.slack.com/t/yii/shared_invite/MjIxMjMxMTk5MTU1LTE1MDE3MDAwMzMtM2VkMTMyMjY1Ng) and [Chat in IRC](https://www.yiiframework.com/chat/).\n- Follow us on [Facebook](https://www.facebook.com/groups/yiitalk/), [Twitter](https://twitter.com/yiiframework)\nand [GitHub](https://github.com/yiisoft/yii2).\n- Check [other communities](https://github.com/yiisoft/yii2/wiki/communities).\n\nContributing\n------------\n\nThe framework is [Open Source](LICENSE.md) powered by [an excellent community](https://github.com/yiisoft/yii2/graphs/contributors).\n\nYou may join us and:\n\n- [Report an issue](docs/internals/report-an-issue.md)\n- [Translate documentation or messages](docs/internals/translation-workflow.md)\n- [Give us feedback or start a design discussion](https://www.yiiframework.com/forum/index.php/forum/42-general-discussions-for-yii-20/)\n- [Contribute to the core code or fix bugs](docs/internals/git-workflow.md)\n- [Become a sponsor](#sponsoring)\n\n### Reporting Security issues\n\n\u003e [!WARNING]\n\u003e Please do not report security vulnerabilities through public GitHub issues.\n\nPlease refer to a [special page at the website](https://www.yiiframework.com/security/)\ndescribing proper workflow for security issue reports.\n\n### Directory Structure\n\n```\nbuild/               internally used build tools\ndocs/                documentation\nframework/           core framework code\ntests/               tests of the core framework code\n```\n\n### Spreading the Word\n\nAcknowledging or citing Yii 2 is as important as direct contributions.\n\n**In presentations**\n\nIf you are giving a presentation or talk featuring work that makes use of Yii 2 and would like to acknowledge it,\nwe suggest using [our logo](https://www.yiiframework.com/logo/) on your title slide.\n\n**In projects**\n\nIf you are using Yii 2 as part of an OpenSource project, a way to acknowledge it is to\n[use a special badge](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge\u0026logo=yii) in your README:    \n\n[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge\u0026logo=yii)](https://www.yiiframework.com/)\n\nIf your code is hosted at GitHub, you can place the following in your README.md file to get the badge:\n\n```\n[![Yii2](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=for-the-badge\u0026logo=yii)](https://www.yiiframework.com/)\n```\n\n### Sponsoring\n\nSupport this project by becoming a sponsor or a backer. \n\n[![Open Collective sponsors](https://img.shields.io/opencollective/sponsors/yiisoft?style=for-the-badge\u0026logo=opencollective)](https://opencollective.com/yiisoft) \n[![Open Collective backers](https://img.shields.io/opencollective/backers/yiisoft?style=for-the-badge\u0026logo=opencollective)](https://opencollective.com/yiisoft)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyiisoft%2Fyii2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyiisoft%2Fyii2/lists"}