{"id":29956091,"url":"https://github.com/workbunny/bny.php","last_synced_at":"2026-06-09T11:00:40.523Z","repository":{"id":305314010,"uuid":"1022540338","full_name":"workbunny/bny.php","owner":"workbunny","description":"💕 Bny.php 一 个 简 易 的 PHP 管 理 工 具  运 行 cli、编 译 应 用、管 理 PHP 版 本 等 ","archived":false,"fork":false,"pushed_at":"2026-06-04T10:04:09.000Z","size":32014,"stargazers_count":25,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T11:14:02.268Z","etag":null,"topics":["compiler","php","php-tool","v"],"latest_commit_sha":null,"homepage":"","language":"V","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/workbunny.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-19T09:44:18.000Z","updated_at":"2026-06-04T09:56:05.000Z","dependencies_parsed_at":"2025-08-05T04:11:53.432Z","dependency_job_id":"479012ec-f748-404b-aaff-545baafc2106","html_url":"https://github.com/workbunny/bny.php","commit_stats":null,"previous_names":["workbunny/bny.php"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/workbunny/bny.php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workbunny%2Fbny.php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workbunny%2Fbny.php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workbunny%2Fbny.php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workbunny%2Fbny.php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workbunny","download_url":"https://codeload.github.com/workbunny/bny.php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workbunny%2Fbny.php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34103357,"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-06-09T02:00:06.510Z","response_time":63,"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":["compiler","php","php-tool","v"],"created_at":"2025-08-03T18:10:01.993Z","updated_at":"2026-06-09T11:00:40.516Z","avatar_url":"https://github.com/workbunny.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bny.php\n\n一个简易的 PHP 管理工具，基于 [V 语言](https://vlang.io/) 开发。\n\n```sh\n    __                        __\n   / /_  ____  __  __  ____  / /_  ____\n  / __ \\/ __ \\/ / / / / __ \\/ __ \\/ __ \\\n / /_/ / / / / /_/ / / /_/ / / / / /_/ /\n/_.___/_/ /_/\\__, (_) .___/_/ /_/ .___/\n            /____/ /_/         /_/\n\nBny: v0.0.0 PHP: 已安装 Composer: 已安装 2025-07-19 09:50:12\n\n用法:\n  bny \u003c指令\u003e [参数] [选项]\n\n\n指令:\n  run                   运行主程序\n  php                   运行PHP\n  composer              运行Composer\n  compile               编译项目\n  add                   添加/选择php版本\n  search                搜索php版本\n  delete                删除php版本\n  lists                 查看已安装的php\n  clean                 清理缓存垃圾\n  mirror                更新代理\n\n\n选项:\n  -h                      显示帮助信息\n  -v                      显示版本信息\n```\n\n## 特性\n\n- 轻量简洁，无需复杂配置\n- PHP 版本管理，支持多版本切换\n- 项目一键编译，将 PHP CLI 项目打包为单个可执行文件\n- 内置 Composer 支持\n\n## 平台支持\n\n| 平台 | 架构 | 状态 |\n|------|------|------|\n| Windows | x86_64 | 已支持 |\n| Linux | x86_64, aarch64 | 已支持 |\n| macOS | arm64 | 已支持 |\n\n## 快速开始\n\n### 安装\n\n下载对应平台的预编译版本，添加到系统 PATH 即可使用。\n\n### 基本用法\n\n```sh\n# 查看帮助\nbny -h\n\n# 查看版本\nbny -v\n\n# 运行 PHP 脚本\nbny run index.php\n\n# 运行 Composer 命令\nbny composer require package/name\n\n# 添加 PHP 版本\nbny add 8.4\n\n# 切换 PHP 版本\nbny add 8.5\n\n# 查看已安装的 PHP 版本\nbny lists\n\n# 编译当前项目\nbny compile .\n\n# 编译为指定名称\nbny compile index.php -o myapp\n\n# 编译为指定名称并设置图标\nbny compile index.php -o myapp -icon app.ico\n\n# 清理缓存\nbny clean\n```\n\n## 编译配置\n\n在项目根目录创建 `bny.json` 配置文件：\n\n```json\n{\n    \"name\": \"myapp\",\n    \"main\": \"./index.php\",\n    \"icon\": \"./icon.png\",\n    \"ini\": \"./php.ini\",\n    \"define\": [\n        \"memory_limit=256M\",\n        \"max_execution_time=300\"\n    ],\n    \"ignore\": [\n        \"runtime/\",\n        \".git/\",\n        \"test/\"\n    ]\n}\n```\n\n### 配置说明\n\n| 字段 | 类型 | 说明 |\n|------|------|------|\n| `name` | string | 编译后的可执行文件名 (默认: `index`) |\n| `main` | string | 项目入口文件 (默认: `./index.php`) |\n| `icon` | string | 应用程序图标路径 |\n| `ini` | string | PHP 配置文件路径 |\n| `define` | array | PHP 运行参数，与 `php -d` 相同 |\n| `ignore` | array | 打包时忽略的文件或文件夹 |\n\n### 编译说明\n\n- Windows 是采用 `EVB` 进行封包, `内存运行` ，安全指数：⭐⭐⭐⭐ \n- Linux 是采用 `AppImage` 进行封包, `解压运行` ，安全指数：无 \n- MacOs 暂不支持封包\n\n### Linux compile 运行/打包要求\n\n```sh\napt install -y file\nexport APPIMAGE_EXTRACT_AND_RUN=1\n```\n\n## 下载源配置\n\n在 `info.json` 中可以手动配置 PHP 下载源：\n\n```json\n{\n    \"php\": 1, // 已经启动的php版本 从0开始选择php_list序列\n    \"php_list\": [ // 已经安装的php版本，可手动添加和修改\n        {\n            \"path\": \"...\",\n            \"name\": \"8.4\"\n        },\n        {\n            \"path\": \"...\",\n            \"name\": \"8.3\"\n        }\n    ],\n    \"url\": { // 默认下载源，可手动添加和修改\n        \"windows\": [\n            {\"name\": \"8.5\", \"url\": \"https://...\"}\n        ],\n        \"linux\": { // linux 和 macos 最好采用 static-php-cli \n            \"x86_64\": [\n                {\"name\": \"8.4\", \"url\": \"https://...\"}\n            ],\n            \"aarch64\": []\n        },\n        \"macos\": []\n    }\n}\n```\n\n## 许可证\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkbunny%2Fbny.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkbunny%2Fbny.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkbunny%2Fbny.php/lists"}