{"id":23107039,"url":"https://github.com/ganl/phpstorm-ci","last_synced_at":"2026-04-24T23:32:31.887Z","repository":{"id":93849964,"uuid":"105233613","full_name":"ganl/PhpStorm-CI","owner":"ganl","description":"Code Completion for Codeigniter with PhpStorm","archived":false,"fork":false,"pushed_at":"2017-12-12T03:26:04.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T15:51:41.468Z","etag":null,"topics":["ci","code","code-completion","codeigniter","hmvc","phpstorm"],"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/ganl.png","metadata":{"files":{"readme":"README-cn.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-09-29T05:32:37.000Z","updated_at":"2021-04-30T19:00:03.000Z","dependencies_parsed_at":"2023-04-29T18:20:14.109Z","dependency_job_id":null,"html_url":"https://github.com/ganl/PhpStorm-CI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ganl/PhpStorm-CI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2FPhpStorm-CI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2FPhpStorm-CI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2FPhpStorm-CI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2FPhpStorm-CI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganl","download_url":"https://codeload.github.com/ganl/PhpStorm-CI/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganl%2FPhpStorm-CI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32245124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ci","code","code-completion","codeigniter","hmvc","phpstorm"],"created_at":"2024-12-17T01:12:08.837Z","updated_at":"2026-04-24T23:32:31.873Z","avatar_url":"https://github.com/ganl.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpstorm代码自动补全， CodeIgniter3 \u0026 HMVC\n\nHMVC: [https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc](https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc)\n\n# 配置\n\n## 方法一：设置Include Paths\n\n在项目目录中`External Libraries`上右键，选择`Configure PHP Include Pahts`\n![s](https://github.com/ganl/mdAssets/raw/master/img/phpStorm-ci/WX20170930-201933@2x.png) \n\n添加`PhpStorm-CI/CodeCompletion`所在位置的绝对路径。\n![s](https://github.com/ganl/mdAssets/raw/master/img/phpStorm-ci/2017-09-30%2020.15.24.png) \n\n## 方法二：设置Content Root\n\nWindows：菜单 File \u003e Settings \u003e Directories \u003e Add Content Root ，选择`PhpStorm-CI/CodeCompletion`\n\nMac: Preferences（comand+,）\u003e Directories \u003e Add Content Root ，选择`PhpStorm-CI/CodeCompletion`\n\n![s](https://github.com/ganl/mdAssets/raw/master/img/phpStorm-ci/WX20170930-203042@2x.png)\n\n\n# CodeIgniter Specific\n\n将CI的Controller和Model设为Plain text\n\n* system/core/Controller.php\n* system/core/Model.php\n* application/third_party/MX/Controller.php (mx_controller)\n\n让自己的类库和模型方法在其他地方能够自动提示补全,在`my_cc.php`文档块部分增加相应的model和library即可\n\n```\n/**\n *\n * ***************** YOUR MODELS *****************\n * @property user_model             $user_model\n * @property log_sys_model          $log_sys                // load-\u003emodel('log_sys_model', 'log_sys')\n *\n * ***************** YOUR LIBRARIES *****************\n * @property Migrate                $migrate               Migrate Class\n * @property global_functions       $global_functions      Common functions\n *\n */\n```\n\n## 自定义Library中支持自动补全（额外）\n\n在Libraries目录下增加My_class.php，并设为Plain text；然后在其他自己创建的Library类中继承My_class，就可以在自定义Library中补全了：\n\n```\napplication/libraries/My_class.php\napplication/libraries/Log_Server.php\n```\n\n* My_class.php 内容如下：\n```php\nclass My_class\n{\n\n}\n```\n\n```php\nclass Log_server extends My_class\n{\n\n}\n```\n\n* 修改config/autoload.php：\n\n`$autoload['libraries'] = array('my_class');`\n\n## 效果\n\n![s](https://github.com/ganl/mdAssets/raw/master/img/phpStorm-ci/WX20170930-205656@2x.png)\n![s](https://github.com/ganl/mdAssets/raw/master/img/phpStorm-ci/WX20170930-205735@2x.png)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganl%2Fphpstorm-ci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganl%2Fphpstorm-ci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganl%2Fphpstorm-ci/lists"}