{"id":16718593,"url":"https://github.com/codfrm/icf-php","last_synced_at":"2025-07-28T16:07:33.248Z","repository":{"id":166676310,"uuid":"109821344","full_name":"CodFrm/icf-php","owner":"CodFrm","description":"一个轻量级的php框架,包括mvc,orm,路由,还在慢慢完善","archived":false,"fork":false,"pushed_at":"2018-04-14T14:29:57.000Z","size":59,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-01T00:02:32.045Z","etag":null,"topics":["framework","php"],"latest_commit_sha":null,"homepage":"","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/CodFrm.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":"2017-11-07T10:34:27.000Z","updated_at":"2020-10-18T13:13:01.000Z","dependencies_parsed_at":"2023-06-01T15:00:43.062Z","dependency_job_id":null,"html_url":"https://github.com/CodFrm/icf-php","commit_stats":null,"previous_names":["codfrm/icf-php"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/CodFrm/icf-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodFrm%2Ficf-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodFrm%2Ficf-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodFrm%2Ficf-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodFrm%2Ficf-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodFrm","download_url":"https://codeload.github.com/CodFrm/icf-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodFrm%2Ficf-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267543275,"owners_count":24104538,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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","php"],"created_at":"2024-10-12T21:37:41.732Z","updated_at":"2025-07-28T16:07:33.239Z","avatar_url":"https://github.com/CodFrm.png","language":"PHP","readme":"# ICF-PHP\n\n## 框架目录结构\n```\n|-app                        //项目目录\n    |common                  //全局的模块(可选)\n        |-ctrl\n        |-model\n    |cache                   //缓存目录\n    |-module_1               //项目各个模块目录\n        |-ctrl               //控制器\n        |-model              //模型(可选)\n        |-tpl                //视图(可选)\n        common.php           //模块的公共函数库(可选)\n        config.php           //模块的配置目录(可选)\n    |-module_2               //模块2\n    .....\n    common.php               //全局的函数库\n|-icf                        //框架目录\n    |-common                 //框架内置函数库\n        |-common.php         //框架默认的函数库\n    |-lib                    //框架类库\n        |-db.php             //数据库驱动\n        |-route.php          //路由实现\n        |-view.php           //模板引擎\n    |-config.php             //框架配置\n    |-function.php           //框架核心函数\n    |-index.php              //框架入口\n    |-loader.php             //自动加载\n|-index.php                  //启动框架\n```\n\n## 框架配置\n```\n\u003c?php\nreturn [\n    //调试模式,会输出错误信息\n    'debug' =\u003e true,                    \n    //数据库配置\n    'db' =\u003e [                           \n        'type' =\u003e 'mysql',\n        'server' =\u003e 'localhost',\n        'port' =\u003e 3306,\n        'db' =\u003e 'tmp',\n        'user' =\u003e 'root',\n        'pwd' =\u003e '',\n        'prefix' =\u003e 'test_'\n    ],\n    //开启restful\n    'rest' =\u003e true,                    \n    //模块,控制器,操作 默认关键字\n    'module_key' =\u003e 'm',\n    'ctrl_key' =\u003e 'c',\n    'action_key' =\u003e 'a',\n    //路由表\n    'route' =\u003e ['*' =\u003e [\n        'debug/{test}' =\u003e 'index-\u003edebug'     // URL样式=\u003e对应的控制器\n        ]\n    ],\n    //模板后缀\n    'tpl_suffix' =\u003e 'html',\n    //是否记录日志\n    'log' =\u003e true,\n    //url 样式\n    //0=module/ctrl/action/key1/value1/key2/value2\n    //1=module.php?{$ctrl_key}=ctrl\u0026{$action_key}=action\u0026key1=value1\n    //2=?{$module_key}=module\u0026{$ctrl_key}=ctrl\u0026{$action_key}=action\u0026key1=value1\n    'url_style' =\u003e 1\n];\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodfrm%2Ficf-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodfrm%2Ficf-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodfrm%2Ficf-php/lists"}