mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
deploy: 345fe783cc24b572f4214b247ed6ee1fcf6339b6
This commit is contained in:
parent
b8206888fa
commit
eda16adbc5
@ -1 +0,0 @@
|
||||
import{_ as t,c as i,o,ah as r}from"./chunks/framework.Bhsyh9kO.js";const h=JSON.parse('{"title":"Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/index.md","filePath":"en/guide/index.md"}'),n={name:"en/guide/index.md"};function a(s,e,d,l,p,c){return o(),i("div",null,[...e[0]||(e[0]=[r('<h1 id="guide" tabindex="-1">Guide <a class="header-anchor" href="#guide" aria-label="Permalink to “Guide”"></a></h1><p>Static php cli is a tool used to build statically compiled PHP binaries, currently supporting Linux and macOS systems.</p><p>In the guide section, you will learn how to use static php cli to build standalone PHP programs.</p><ul><li><a href="./manual-build.html">Build (local)</a></li><li><a href="./action-build.html">Build (GitHub Actions)</a></li><li><a href="./extensions.html">Supported Extensions</a></li></ul><h2 id="compilation-environment" tabindex="-1">Compilation Environment <a class="header-anchor" href="#compilation-environment" aria-label="Permalink to “Compilation Environment”"></a></h2><p>The following is the architecture support situation, where ⚙️ represents support for GitHub Action build, 💻 represents support for local manual build, and empty represents temporarily not supported.</p><table tabindex="0"><thead><tr><th></th><th>x86_64</th><th>aarch64</th></tr></thead><tbody><tr><td>macOS</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Linux</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Windows</td><td>⚙️ 💻</td><td></td></tr><tr><td>FreeBSD</td><td>💻</td><td>💻</td></tr></tbody></table><p>Among them, Linux is currently only tested on Ubuntu, Debian, and Alpine distributions, and other distributions have not been tested, which cannot guarantee successful compilation. For untested distributions, local compilation can be done using methods such as Docker to avoid environmental issues.</p><p>There are two architectures for macOS: <code>x86_64</code> and <code>Arm</code>, but binaries compiled on one architecture cannot be directly used on the other architecture. Rosetta 2 cannot guarantee that programs compiled with <code>Arm</code> architecture can fully run on <code>x86_64</code> environment.</p><p>Windows currently only supports the x86_64 architecture, and does not support 32-bit x86 or arm64 architecture.</p><h2 id="supported-php-version" tabindex="-1">Supported PHP Version <a class="header-anchor" href="#supported-php-version" aria-label="Permalink to “Supported PHP Version”"></a></h2><p>Currently, static php cli supports PHP versions 8.1 to 8.5, and theoretically supports PHP 8.0 and earlier versions. Simply select the earlier version when downloading. However, due to some extensions and special components that have stopped supporting earlier versions of PHP, static-php-cli will not explicitly support earlier versions. We recommend that you compile the latest PHP version possible for a better experience.</p>',12)])])}const m=t(n,[["render",a]]);export{h as __pageData,m as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as t,c as i,o,ah as r}from"./chunks/framework.Bhsyh9kO.js";const h=JSON.parse('{"title":"Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/index.md","filePath":"en/guide/index.md"}'),n={name:"en/guide/index.md"};function a(s,e,d,l,p,c){return o(),i("div",null,[...e[0]||(e[0]=[r("",12)])])}const m=t(n,[["render",a]]);export{h as __pageData,m as default};
|
||||
1
assets/en_guide_index.md.C0gwKWb1.js
Normal file
1
assets/en_guide_index.md.C0gwKWb1.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e,c as r,o,ah as d}from"./chunks/framework.Bhsyh9kO.js";const c=JSON.parse('{"title":"Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/index.md","filePath":"en/guide/index.md"}'),i={name:"en/guide/index.md"};function a(n,t,s,p,l,u){return o(),r("div",null,[...t[0]||(t[0]=[d('<h1 id="guide" tabindex="-1">Guide <a class="header-anchor" href="#guide" aria-label="Permalink to “Guide”"></a></h1><p>Static php cli is a tool used to build statically compiled PHP binaries, currently supporting Linux and macOS systems.</p><p>In the guide section, you will learn how to use static php cli to build standalone PHP programs.</p><ul><li><a href="./manual-build.html">Build (local)</a></li><li><a href="./action-build.html">Build (GitHub Actions)</a></li><li><a href="./extensions.html">Supported Extensions</a></li></ul><h2 id="compilation-environment" tabindex="-1">Compilation Environment <a class="header-anchor" href="#compilation-environment" aria-label="Permalink to “Compilation Environment”"></a></h2><p>The following is the architecture support situation, where ⚙️ represents support for GitHub Action build, 💻 represents support for local manual build, and empty represents temporarily not supported.</p><table tabindex="0"><thead><tr><th></th><th>x86_64</th><th>aarch64</th></tr></thead><tbody><tr><td>macOS</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Linux</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Windows</td><td>⚙️ 💻</td><td></td></tr><tr><td>FreeBSD</td><td>💻</td><td>💻</td></tr></tbody></table><p>Current supported PHP versions for compilation:</p><blockquote><p>⚠️ Partial support, there may be issues with new beta versions and old versions.</p><p>✔️ Supported</p><p>❌ Not supported</p></blockquote><table tabindex="0"><thead><tr><th>PHP Version</th><th>Status</th><th>Comment</th></tr></thead><tbody><tr><td>7.2</td><td>❌</td><td></td></tr><tr><td>7.3</td><td>❌</td><td>phpmicro and many extensions do not support 7.3, 7.4 versions</td></tr><tr><td>7.4</td><td>❌</td><td>phpmicro and many extensions do not support 7.3, 7.4 versions</td></tr><tr><td>8.0</td><td>⚠️</td><td>PHP official has stopped maintaining 8.0, we no longer handle 8.0 related backport support</td></tr><tr><td>8.1</td><td>⚠️</td><td>PHP official only provides security updates for 8.1, we no longer handle 8.1 related backport support after 8.5 release</td></tr><tr><td>8.2</td><td>✔️</td><td></td></tr><tr><td>8.3</td><td>✔️</td><td></td></tr><tr><td>8.4</td><td>✔️</td><td></td></tr><tr><td>8.5 (beta)</td><td>⚠️</td><td>PHP 8.5 is currently in beta stage</td></tr></tbody></table><blockquote><p>This table shows the support status of static-php-cli for building corresponding versions, not the PHP official support status for that version.</p></blockquote><h2 id="php-support-versions" tabindex="-1">PHP Support Versions <a class="header-anchor" href="#php-support-versions" aria-label="Permalink to “PHP Support Versions”"></a></h2><p>Currently, static-php-cli supports PHP versions 8.2 ~ 8.5, and theoretically supports PHP 8.1 and earlier versions, just select the earlier version when downloading. However, due to some extensions and special components that have stopped supporting earlier versions of PHP, static-php-cli will not explicitly support earlier versions. We recommend that you compile the latest PHP version possible for a better experience.</p>',13)])])}const m=e(i,[["render",a]]);export{c as __pageData,m as default};
|
||||
1
assets/en_guide_index.md.C0gwKWb1.lean.js
Normal file
1
assets/en_guide_index.md.C0gwKWb1.lean.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as e,c as r,o,ah as d}from"./chunks/framework.Bhsyh9kO.js";const c=JSON.parse('{"title":"Guide","description":"","frontmatter":{},"headers":[],"relativePath":"en/guide/index.md","filePath":"en/guide/index.md"}'),i={name:"en/guide/index.md"};function a(n,t,s,p,l,u){return o(),r("div",null,[...t[0]||(t[0]=[d("",13)])])}const m=e(i,[["render",a]]);export{c as __pageData,m as default};
|
||||
1
assets/zh_guide_index.md.BBGjnhq-.js
Normal file
1
assets/zh_guide_index.md.BBGjnhq-.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as d,c as a,o as e,ah as r}from"./chunks/framework.Bhsyh9kO.js";const P=JSON.parse('{"title":"指南","description":"","frontmatter":{},"headers":[],"relativePath":"zh/guide/index.md","filePath":"zh/guide/index.md"}'),i={name:"zh/guide/index.md"};function h(p,t,l,o,c,n){return e(),a("div",null,[...t[0]||(t[0]=[r('<h1 id="指南" tabindex="-1">指南 <a class="header-anchor" href="#指南" aria-label="Permalink to “指南”"></a></h1><p>static-php-cli 是一个用于构建静态编译的 PHP 二进制的工具,目前支持 Linux 和 macOS 系统。</p><p>在指南章节中,你将了解到如何使用 static-php-cli 构建独立的 php 程序。</p><ul><li><a href="./manual-build.html">本地构建</a></li><li><a href="./action-build.html">Action 构建</a></li><li><a href="./extensions.html">扩展列表</a></li></ul><h2 id="编译环境" tabindex="-1">编译环境 <a class="header-anchor" href="#编译环境" aria-label="Permalink to “编译环境”"></a></h2><p>下面是架构支持情况,⚙️ 代表支持 GitHub Action 构建,💻 代表支持本地构建,空 代表暂不支持。</p><table tabindex="0"><thead><tr><th></th><th>x86_64</th><th>aarch64</th></tr></thead><tbody><tr><td>macOS</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Linux</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Windows</td><td>⚙️ 💻</td><td></td></tr><tr><td>FreeBSD</td><td>💻</td><td>💻</td></tr></tbody></table><p>当前支持编译的 PHP 版本:</p><blockquote><p>⚠️ 部分支持,对于新的测试版和旧版本可能存在问题。</p><p>✔️ 支持</p><p>❌ 不支持</p></blockquote><table tabindex="0"><thead><tr><th>PHP Version</th><th>Status</th><th>Comment</th></tr></thead><tbody><tr><td>7.2</td><td>❌</td><td></td></tr><tr><td>7.3</td><td>❌</td><td>phpmicro 和许多扩展不支持 7.3、7.4 版本</td></tr><tr><td>7.4</td><td>❌</td><td>phpmicro 和许多扩展不支持 7.3、7.4 版本</td></tr><tr><td>8.0</td><td>⚠️</td><td>PHP 官方已停止 8.0 的维护,我们不再处理 8.0 相关的 backport 支持</td></tr><tr><td>8.1</td><td>⚠️</td><td>PHP 官方仅对 8.1 提供安全更新,在 8.5 发布后我们不再处理 8.1 相关的 backport 支持</td></tr><tr><td>8.2</td><td>✔️</td><td></td></tr><tr><td>8.3</td><td>✔️</td><td></td></tr><tr><td>8.4</td><td>✔️</td><td></td></tr><tr><td>8.5 (beta)</td><td>⚠️</td><td>PHP 8.5 目前处于 beta 阶段</td></tr></tbody></table><blockquote><p>这个表格的支持状态是 static-php-cli 对构建对应版本的支持情况,不是 PHP 官方对该版本的支持情况。</p></blockquote><h2 id="php-支持版本" tabindex="-1">PHP 支持版本 <a class="header-anchor" href="#php-支持版本" aria-label="Permalink to “PHP 支持版本”"></a></h2><p>目前,static-php-cli 对 PHP 8.2 ~ 8.5 版本是支持的,对于 PHP 8.1 及更早版本理论上支持,只需下载时选择早期版本即可。 但由于部分扩展和特殊组件已对早期版本的 PHP 停止了支持,所以 static-php-cli 不会明确支持早期版本。 我们推荐你编译尽可能新的 PHP 版本,以获得更好的体验。</p>',13)])])}const b=d(i,[["render",h]]);export{P as __pageData,b as default};
|
||||
1
assets/zh_guide_index.md.BBGjnhq-.lean.js
Normal file
1
assets/zh_guide_index.md.BBGjnhq-.lean.js
Normal file
@ -0,0 +1 @@
|
||||
import{_ as d,c as a,o as e,ah as r}from"./chunks/framework.Bhsyh9kO.js";const P=JSON.parse('{"title":"指南","description":"","frontmatter":{},"headers":[],"relativePath":"zh/guide/index.md","filePath":"zh/guide/index.md"}'),i={name:"zh/guide/index.md"};function h(p,t,l,o,c,n){return e(),a("div",null,[...t[0]||(t[0]=[r("",13)])])}const b=d(i,[["render",h]]);export{P as __pageData,b as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as a,c as e,o as d,ah as i}from"./chunks/framework.Bhsyh9kO.js";const _=JSON.parse('{"title":"指南","description":"","frontmatter":{},"headers":[],"relativePath":"zh/guide/index.md","filePath":"zh/guide/index.md"}'),r={name:"zh/guide/index.md"};function n(h,t,l,p,c,o){return d(),e("div",null,[...t[0]||(t[0]=[i('<h1 id="指南" tabindex="-1">指南 <a class="header-anchor" href="#指南" aria-label="Permalink to “指南”"></a></h1><p>static-php-cli 是一个用于构建静态编译的 PHP 二进制的工具,目前支持 Linux 和 macOS 系统。</p><p>在指南章节中,你将了解到如何使用 static-php-cli 构建独立的 php 程序。</p><ul><li><a href="./manual-build.html">本地构建</a></li><li><a href="./action-build.html">Action 构建</a></li><li><a href="./extensions.html">扩展列表</a></li></ul><h2 id="编译环境" tabindex="-1">编译环境 <a class="header-anchor" href="#编译环境" aria-label="Permalink to “编译环境”"></a></h2><p>下面是架构支持情况,⚙️ 代表支持 GitHub Action 构建,💻 代表支持本地构建,空 代表暂不支持。</p><table tabindex="0"><thead><tr><th></th><th>x86_64</th><th>aarch64</th></tr></thead><tbody><tr><td>macOS</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Linux</td><td>⚙️ 💻</td><td>⚙️ 💻</td></tr><tr><td>Windows</td><td>⚙️ 💻</td><td></td></tr><tr><td>FreeBSD</td><td>💻</td><td>💻</td></tr></tbody></table><p>其中,Linux 目前仅在 Ubuntu、Debian、Alpine 发行版测试通过,其他发行版未进行测试,不能保证编译成功。 对于未经过测试的发行版,可以使用 Docker 等方式本地编译,避免环境导致的问题。</p><p>macOS 下支持 x86_64 和 Arm 两种架构,但在其中一个架构上编译的二进制无法直接在另一个架构上使用。 Rosetta 2 不能保证 Arm 架构编译的程序可以完全运行在 x86_64 环境下。</p><p>Windows 目前只支持 x86_64 架构,不支持 32 位 x86、不支持 arm64 架构。</p><h2 id="php-支持版本" tabindex="-1">PHP 支持版本 <a class="header-anchor" href="#php-支持版本" aria-label="Permalink to “PHP 支持版本”"></a></h2><p>目前,static-php-cli 对 PHP 8.1 ~ 8.5 版本是支持的,对于 PHP 8.0 及更早版本理论上支持,只需下载时选择早期版本即可。 但由于部分扩展和特殊组件已对早期版本的 PHP 停止了支持,所以 static-php-cli 不会明确支持早期版本。 我们推荐你编译尽可能新的 PHP 版本,以获得更好的体验。</p>',12)])])}const m=a(r,[["render",n]]);export{_ as __pageData,m as default};
|
||||
@ -1 +0,0 @@
|
||||
import{_ as a,c as e,o as d,ah as i}from"./chunks/framework.Bhsyh9kO.js";const _=JSON.parse('{"title":"指南","description":"","frontmatter":{},"headers":[],"relativePath":"zh/guide/index.md","filePath":"zh/guide/index.md"}'),r={name:"zh/guide/index.md"};function n(h,t,l,p,c,o){return d(),e("div",null,[...t[0]||(t[0]=[i("",12)])])}const m=a(r,[["render",n]]);export{_ as __pageData,m as default};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
{"deps-craft-yml.md":"DqNYV3B0","deps-map-ext.md":"9tGFG3KF","deps-map-lib.md":"xzFZASs5","en_contributing_index.md":"fCA6lXnW","en_develop_craft-yml.md":"Ci97ssL7","en_develop_doctor-module.md":"BTDyp-aK","en_develop_index.md":"DUNrUVP9","en_develop_php-src-changes.md":"dN8aSiwg","en_develop_source-module.md":"hhJuiZD0","en_develop_structure.md":"X2JId3N9","en_develop_system-build-tools.md":"BmQhyTle","en_faq_index.md":"B89Sredc","en_guide_action-build.md":"Dnzq6gNC","en_guide_build-on-windows.md":"DiYVSaPG","en_guide_build-with-glibc.md":"CkVR75n5","en_guide_cli-generator.md":"Cp_NAWHZ","en_guide_deps-map.md":"Bu5n6hts","en_guide_env-vars.md":"51DQ7bvx","en_guide_extension-notes.md":"CHFGRiKx","en_guide_extensions.md":"Btg_XBVa","en_guide_index.md":"BC5dTAQW","en_guide_manual-build.md":"DPsGII1D","en_guide_troubleshooting.md":"D19jRB1K","en_index.md":"WiGlW8EH","extension-notes.md":"BB7Xlw1w","extensions.md":"hO1GVZPt","index.md":"AJG02Jxt","zh_contributing_index.md":"fiiKMXnj","zh_develop_craft-yml.md":"CAUu6v38","zh_develop_doctor-module.md":"1NRXIINs","zh_develop_index.md":"CRxnJZDt","zh_develop_php-src-changes.md":"CwVUc0oE","zh_develop_source-module.md":"3iGbQTPs","zh_develop_structure.md":"CEd1RycZ","zh_develop_system-build-tools.md":"CQ4BvPVa","zh_faq_index.md":"BihV7puH","zh_guide_action-build.md":"CQ3Vf3i9","zh_guide_build-on-windows.md":"oogWrPn_","zh_guide_build-with-glibc.md":"CHXyK61r","zh_guide_cli-generator.md":"Cj4_YdDV","zh_guide_deps-map.md":"DxJh1-DL","zh_guide_env-vars.md":"CtNlqGk4","zh_guide_extension-notes.md":"BCwDjBZH","zh_guide_extensions.md":"iEiN9yxj","zh_guide_index.md":"C3GV6eqU","zh_guide_manual-build.md":"C3iksvHw","zh_guide_troubleshooting.md":"BRQLW2WP","zh_index.md":"Dv99zA_s"}
|
||||
{"deps-craft-yml.md":"DqNYV3B0","deps-map-ext.md":"9tGFG3KF","deps-map-lib.md":"xzFZASs5","en_contributing_index.md":"fCA6lXnW","en_develop_craft-yml.md":"Ci97ssL7","en_develop_doctor-module.md":"BTDyp-aK","en_develop_index.md":"DUNrUVP9","en_develop_php-src-changes.md":"dN8aSiwg","en_develop_source-module.md":"hhJuiZD0","en_develop_structure.md":"X2JId3N9","en_develop_system-build-tools.md":"BmQhyTle","en_faq_index.md":"B89Sredc","en_guide_action-build.md":"Dnzq6gNC","en_guide_build-on-windows.md":"DiYVSaPG","en_guide_build-with-glibc.md":"CkVR75n5","en_guide_cli-generator.md":"Cp_NAWHZ","en_guide_deps-map.md":"Bu5n6hts","en_guide_env-vars.md":"51DQ7bvx","en_guide_extension-notes.md":"CHFGRiKx","en_guide_extensions.md":"Btg_XBVa","en_guide_index.md":"C0gwKWb1","en_guide_manual-build.md":"DPsGII1D","en_guide_troubleshooting.md":"D19jRB1K","en_index.md":"WiGlW8EH","extension-notes.md":"BB7Xlw1w","extensions.md":"hO1GVZPt","index.md":"AJG02Jxt","zh_contributing_index.md":"fiiKMXnj","zh_develop_craft-yml.md":"CAUu6v38","zh_develop_doctor-module.md":"1NRXIINs","zh_develop_index.md":"CRxnJZDt","zh_develop_php-src-changes.md":"CwVUc0oE","zh_develop_source-module.md":"3iGbQTPs","zh_develop_structure.md":"CEd1RycZ","zh_develop_system-build-tools.md":"CQ4BvPVa","zh_faq_index.md":"BihV7puH","zh_guide_action-build.md":"CQ3Vf3i9","zh_guide_build-on-windows.md":"oogWrPn_","zh_guide_build-with-glibc.md":"CHXyK61r","zh_guide_cli-generator.md":"Cj4_YdDV","zh_guide_deps-map.md":"DxJh1-DL","zh_guide_env-vars.md":"CtNlqGk4","zh_guide_extension-notes.md":"BCwDjBZH","zh_guide_extensions.md":"iEiN9yxj","zh_guide_index.md":"BBGjnhq-","zh_guide_manual-build.md":"C3iksvHw","zh_guide_troubleshooting.md":"BRQLW2WP","zh_index.md":"Dv99zA_s"}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user