{"id":20441800,"url":"https://github.com/mix-php/mix-phar-skeleton","last_synced_at":"2025-04-12T23:32:54.389Z","repository":{"id":57017779,"uuid":"161310660","full_name":"mix-php/mix-phar-skeleton","owner":"mix-php","description":"Phar command line program development skeleton","archived":false,"fork":false,"pushed_at":"2020-10-28T10:09:32.000Z","size":47,"stargazers_count":78,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T17:41:55.080Z","etag":null,"topics":["cli","console","mix","phar","swoole"],"latest_commit_sha":null,"homepage":"https://openmix.org/mix-php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mix-php.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}},"created_at":"2018-12-11T09:36:49.000Z","updated_at":"2024-12-16T14:59:36.000Z","dependencies_parsed_at":"2022-08-22T12:00:22.512Z","dependency_job_id":null,"html_url":"https://github.com/mix-php/mix-phar-skeleton","commit_stats":null,"previous_names":[],"tags_count":12,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmix-phar-skeleton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmix-phar-skeleton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmix-phar-skeleton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mix-php%2Fmix-phar-skeleton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mix-php","download_url":"https://codeload.github.com/mix-php/mix-phar-skeleton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647257,"owners_count":21139081,"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":["cli","console","mix","phar","swoole"],"created_at":"2024-11-15T09:35:01.675Z","updated_at":"2025-04-12T23:32:54.369Z","avatar_url":"https://github.com/mix-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Mix Phar Skeleton\n\n命令行单执行文件 `Phar` 开发程序骨架，Mix 封装的命令行基础设施在骨架中都可使用。\n\n我们提供了打包工具 [mix-pack](https://github.com/mix-php/mix-pack)，可以将本项目打包为 Phar 文件（就像 golang 编译成执行文件一样）。\n\nPHP 原本就是一个动态版本的 C 库集合，现在基于 Swoole 的协程支持，再加上 Mix 封装的大量基础设施，Mix 基本等同于一个动态版本的 Golang，极大的扩展了 PHP 的开发领域，可以用来快速开发各种高性能的 CLI 程序，如：核心业务的守护程序、轻量级中间件、运维工具、系统命令、开发辅助工具等。\n\n## 开发文档\n\nMixPHP 开发指南：https://openmix.org/mix-php/doc\n\n## 环境要求\n\n* PHP \u003e= 7.2\n* Swoole \u003e= 4.4.4 (可选)\n\n## 快速开始\n\n推荐使用 [composer](https://www.phpcomposer.com/) 安装。\n\n安装最新版本：\n\n```shell\ncomposer create-project --prefer-dist mix/mix-phar-skeleton phar ~2.2.0\n```\n\n开发方式与 MixPHP 的命令行开发一样，参见 MixPHP 开发指南。\n\n\u003e 注意：本骨架 composer 依赖只安装了命令行所需要的 [最小依赖](https://github.com/mix-php/mix-phar-skeleton/blob/master/composer.json#L19)，像 mix/cache、mix/server 等其他库都需用户自行安装\n\n## License\n\nApache License Version 2.0, http://www.apache.org/licenses/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix-php%2Fmix-phar-skeleton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmix-php%2Fmix-phar-skeleton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmix-php%2Fmix-phar-skeleton/lists"}