{"id":51431490,"url":"https://github.com/mcxiaochenn/subconverter-lite","last_synced_at":"2026-07-05T04:03:01.861Z","repository":{"id":365262285,"uuid":"1271170984","full_name":"mcxiaochenn/subconverter-lite","owner":"mcxiaochenn","description":"轻量化订阅转换工具，基于 PHP 实现，支持多订阅合并与 mihomo 配置模板","archived":false,"fork":false,"pushed_at":"2026-06-16T14:36:17.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-16T16:23:53.058Z","etag":null,"topics":["clash","mihomo","php","proxy","ssr","subconverter","subscription","trojan","v2ray"],"latest_commit_sha":null,"homepage":"https://sublite.mcxiaochen.top","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcxiaochenn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-16T12:01:04.000Z","updated_at":"2026-06-16T14:45:22.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mcxiaochenn/subconverter-lite","commit_stats":null,"previous_names":["mcxiaochenn/subconverter-lite"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mcxiaochenn/subconverter-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2Fsubconverter-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2Fsubconverter-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2Fsubconverter-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2Fsubconverter-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcxiaochenn","download_url":"https://codeload.github.com/mcxiaochenn/subconverter-lite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2Fsubconverter-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35142824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"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":["clash","mihomo","php","proxy","ssr","subconverter","subscription","trojan","v2ray"],"created_at":"2026-07-05T04:03:01.225Z","updated_at":"2026-07-05T04:03:01.843Z","avatar_url":"https://github.com/mcxiaochenn.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subconverter Lite\n\n极其轻量化的 subconverter 项目，基于 PHP 实现。\n\n## 功能特点\n\n- 轻量化设计，无需额外扩展\n- 简洁美观的前端界面\n- 支持 Clash yaml 格式订阅\n- 支持多订阅链接合并（最多 10 个）\n- 支持多种代理协议：SS、SSR、VMess、VLESS、Trojan、Hysteria 等\n- 基于 mihomo 配置模板\n\n## 环境要求\n\n- PHP \u003e= 7.4\n- PHP curl 扩展\n\n## 安装\n\n1. 克隆项目到你的 Web 服务器目录：\n```bash\ngit clone https://github.com/mcxiaochenn/subconverter-lite.git\n```\n\n2. 确保 PHP curl 扩展已安装：\n```bash\n# Ubuntu/Debian\nsudo apt-get install php-curl\n\n# CentOS/RHEL\nsudo yum install php-curl\n```\n\n## 使用方法\n\n### 方式一：前端页面（推荐）\n\n直接访问你的域名，会显示一个简洁的前端页面：\n\n```\nhttps://your-domain.com/\n```\n\n在页面中输入订阅链接，点击\"生成配置\"按钮，即可获取订阅地址。\n\n### 方式二：API 直接调用\n\n#### 多个订阅（推荐）\n\n```\nhttps://your-domain.com/api.php?sub_url_1=订阅链接1\u0026sub_url_2=订阅链接2\u0026sub_url_3=订阅链接3\n```\n\n#### 单个订阅（兼容）\n\n```\nhttps://your-domain.com/api.php?sub_url=你的订阅链接\n```\n\n#### 自定义机场名称\n\n```\nhttps://your-domain.com/api.php?sub_url_1=订阅链接1\u0026name_1=我的机场\n```\n\n## 配置说明\n\n编辑 `config.php` 文件可以修改以下配置：\n\n```php\nreturn [\n    // 模板文件路径\n    'template_path' =\u003e __DIR__ . '/templates/base.yaml',\n    \n    // 请求超时时间（秒）\n    'request_timeout' =\u003e 10,\n    \n    // 用户代理\n    'user_agent' =\u003e 'clash-verge/v2.0.0',\n];\n```\n\n## 自定义模板\n\n模板文件位于 `templates/base.yaml`，基于 mihomo 配置格式。你可以根据需要修改模板。\n\n## 项目结构\n\n```\nsubconverter-lite/\n├── index.php              # 入口文件（重定向到前端）\n├── index.html             # 前端页面\n├── api.php                # API 入口\n├── config.php             # 配置文件\n├── src/\n│   ├── Subscription.php   # 订阅解析类\n│   └── Converter.php      # 转换器类\n├── templates/\n│   └── base.yaml          # 基础模板\n├── Clash_Sample_Config_By_iKeLee.yaml  # 原始模板备份\n└── README.md\n```\n\n## 模板来源\n\n本项目的 mihomo 配置模板基于 [可莉的 ProxyResource](https://github.com/luestr/ProxyResource/blob/main/Tool/Clash/Config/Clash_Sample_Config_By_iKeLee.yaml) 项目中的 `Clash_Sample_Config_By_iKeLee.yaml` 配置文件。\n\n原始配置作者：[iKeLee](https://t.me/iKeLee)\n\n## 许可证\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcxiaochenn%2Fsubconverter-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcxiaochenn%2Fsubconverter-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcxiaochenn%2Fsubconverter-lite/lists"}