{"id":20298960,"url":"https://github.com/dofy/sevenmvc-lib","last_synced_at":"2026-05-07T23:03:27.945Z","repository":{"id":17233743,"uuid":"20002823","full_name":"dofy/SevenMVC-Lib","owner":"dofy","description":"基于 MVC 的 PHP 轻量级框架","archived":false,"fork":false,"pushed_at":"2016-10-26T07:07:57.000Z","size":1599,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T10:26:52.301Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/dofy.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}},"created_at":"2014-05-21T00:48:52.000Z","updated_at":"2016-10-26T07:08:00.000Z","dependencies_parsed_at":"2022-07-16T18:46:09.554Z","dependency_job_id":null,"html_url":"https://github.com/dofy/SevenMVC-Lib","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/dofy%2FSevenMVC-Lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2FSevenMVC-Lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2FSevenMVC-Lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dofy%2FSevenMVC-Lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dofy","download_url":"https://codeload.github.com/dofy/SevenMVC-Lib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241794138,"owners_count":20021192,"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-11-14T16:12:57.386Z","updated_at":"2026-05-07T23:03:22.906Z","avatar_url":"https://github.com/dofy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SevenMVC-Lib\n\n## 基于 MVC 的 PHP 轻量级框架\n\n```php\n\u003c?php\nsession_start();\n\n// config\ndefine('DB_HOST', 'YOUR DATABASE HOST');    // default: localhost\ndefine('DB_USER', 'YOUR DATABASE USER');\ndefine('DB_PASS', 'PASSWORD');\ndefine('DB_NAME', 'DATABASE NAME');         // default: test\n\n// project folder\ndefine('USER_CODE_PATH', dirname(__file__) . '/../');\n\n// 开发环境\n/*\ndefine('DEBUG', true);\ndefine('SMARTY_CACHE', false);\ndefine('SMARTY_DEBUG', true);\n*/\n// 生产环境\ndefine('DEBUG', false);\ndefine('SMARTY_CACHE', true);\ndefine('SMARTY_DEBUG', false);\n\n// 一般情况下库文件应放在 libs 文件夹中\ninclude USER_CODE_PATH . '../src/SevenApplication.php';\n\n// new controller\n$app = new SevenApplication();\n\n// run\n$app-\u003erun();\n?\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdofy%2Fsevenmvc-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdofy%2Fsevenmvc-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdofy%2Fsevenmvc-lib/lists"}