Skip to content

Commit fadb1ce

Browse files
committed
Rename static-php-cli to StaticPHP
1 parent 58bf51e commit fadb1ce

File tree

7 files changed

+59
-52
lines changed

7 files changed

+59
-52
lines changed

README-zh.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# static-php-cli
1+
# StaticPHP
22

3-
[![English readme](https://img.shields.io/badge/README-English%20%F0%9F%87%AC%F0%9F%87%A7-moccasin?style=flat-square)](README.md)
43
[![Chinese readme](https://img.shields.io/badge/README-%E4%B8%AD%E6%96%87%20%F0%9F%87%A8%F0%9F%87%B3-moccasin?style=flat-square)](README-zh.md)
4+
[![English readme](https://img.shields.io/badge/README-English%20%F0%9F%87%AC%F0%9F%87%A7-moccasin?style=flat-square)](README.md)
55
[![Releases](https://img.shields.io/packagist/v/crazywhalecc/static-php-cli?include_prereleases&label=Release&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/releases)
66
[![CI](https://img.shields.io/github/actions/workflow/status/crazywhalecc/static-php-cli/tests.yml?branch=main&label=Build%20Test&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/actions/workflows/tests.yml)
77
[![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://github.com/crazywhalecc/static-php-cli/blob/main/LICENSE)
88

9-
**static-php-cli** 是一个用于构建静态、独立 PHP 运行时的强大工具,支持众多流行扩展。
9+
**StaticPHP**(原名 **static-php-cli**是一个用于构建静态、独立 PHP 运行时的强大工具,支持众多流行扩展。
1010

1111
## 特性
1212

1313
- :elephant: **支持多 PHP 版本** - 支持 PHP 8.1, 8.2, 8.3, 8.4, 8.5
1414
- :handbag: **单文件 PHP 可执行文件** - 构建零依赖的独立 PHP
15-
- :hamburger: **phpmicro 集成** - 构建 **[phpmicro](https://github.com/dixyes/phpmicro)** 自解压可执行文件(将 PHP 二进制文件和源代码合并为一个文件)
15+
- :hamburger: **phpmicro 集成** - 构建 **[phpmicro](https://github.com/static-php/phpmicro)** 自解压可执行文件(将 PHP 二进制文件和源代码合并为一个文件)
1616
- :pill: **智能环境检查器** - 自动构建环境检查器,具备自动修复功能
1717
- :zap: **跨平台支持** - 支持 Linux、macOS、FreeBSD 和 Windows
1818
- :wrench: **可配置补丁** - 可自定义的源代码补丁系统
1919
- :books: **智能依赖管理** - 自动处理构建依赖
2020
- 📦 **自包含工具** - 提供使用 [box](https://github.com/box-project/box) 构建的 `spc` 可执行文件
21-
- :fire: **广泛的扩展支持** - 支持 75+ 流行 [扩展](https://static-php.dev/zh/guide/extensions.html)
21+
- :fire: **广泛的扩展支持** - 支持 100+ 流行 [扩展](https://static-php.dev/zh/guide/extensions.html)
2222
- :floppy_disk: **UPX 压缩** - 减小二进制文件大小 30-50%(仅 Linux/Windows)
2323

2424
**单文件独立 php-cli:**
@@ -33,6 +33,8 @@
3333

3434
### 1. 下载 spc 二进制文件
3535

36+
`spc` 二进制文件是 StaticPHP 项目的 CLI 工具,打包为单个可执行文件。
37+
3638
```bash
3739
# Linux x86_64
3840
curl -fsSL -o spc https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64
@@ -107,7 +109,7 @@ buildroot/bin/php-fpm -v
107109
以下是几个具有不同扩展组合的预编译静态 PHP 二进制文件,
108110
您可以根据需要直接下载。
109111

110-
| 组合名称 | 扩展数量 | 系统 | 备注 |
112+
| 组合名称 | 扩展数量 | 系统 | 备注 |
111113
|----------------------------------------------------------------------|----------------------------------------------------------------------------|--------------|--------------------|
112114
| [common](https://dl.static-php.dev/static-php-cli/common/) | [30+](https://dl.static-php.dev/static-php-cli/common/README.txt) | Linux, macOS | 二进制文件大小约为 7.5MB |
113115
| [bulk](https://dl.static-php.dev/static-php-cli/bulk/) | [50+](https://dl.static-php.dev/static-php-cli/bulk/README.txt) | Linux, macOS | 二进制文件大小约为 25MB |

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# static-php-cli
1+
# StaticPHP
22

33
[![Chinese readme](https://img.shields.io/badge/README-%E4%B8%AD%E6%96%87%20%F0%9F%87%A8%F0%9F%87%B3-moccasin?style=flat-square)](README-zh.md)
44
[![English readme](https://img.shields.io/badge/README-English%20%F0%9F%87%AC%F0%9F%87%A7-moccasin?style=flat-square)](README.md)
55
[![Releases](https://img.shields.io/packagist/v/crazywhalecc/static-php-cli?include_prereleases&label=Release&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/releases)
66
[![CI](https://img.shields.io/github/actions/workflow/status/crazywhalecc/static-php-cli/tests.yml?branch=main&label=Build%20Test&style=flat-square)](https://github.com/crazywhalecc/static-php-cli/actions/workflows/tests.yml)
77
[![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://github.com/crazywhalecc/static-php-cli/blob/main/LICENSE)
88

9-
**static-php-cli** is a powerful tool designed for building static, standalone PHP runtime
10-
with popular extensions.
9+
**StaticPHP** (formerly **static-php-cli**) is a powerful tool designed for building static, standalone PHP runtime with popular extensions.
1110

1211
## Features
1312

@@ -34,6 +33,8 @@ with popular extensions.
3433

3534
### 1. Download spc binary
3635

36+
`spc` binary is StaticPHP CLI tool packaged as a single executable file.
37+
3738
```bash
3839
# For Linux x86_64
3940
curl -fsSL -o spc https://dl.static-php.dev/static-php-cli/spc-bin/nightly/spc-linux-x86_64
@@ -53,7 +54,7 @@ For macOS and Linux, add execute permission first:
5354
chmod +x ./spc
5455
```
5556

56-
### 2. Build Static PHP
57+
### 2. Build standalone PHP binaries
5758

5859
First, create a `craft.yml` file and specify which extensions you want to include from [extension list](https://static-php.dev/en/guide/extensions.html) or [command generator](https://static-php.dev/en/guide/cli-generator.html):
5960

@@ -79,7 +80,7 @@ Run command:
7980
./spc craft --debug
8081
```
8182

82-
### 3. Static PHP usage
83+
### 3. Using the built binaries
8384

8485
Now you can copy binaries built by static-php-cli to another machine and run with no dependencies:
8586

@@ -105,7 +106,7 @@ see <https://static-php.dev> .
105106

106107
If you don't want to build or want to test first, you can download example pre-compiled artifact from [Actions](https://github.com/static-php/static-php-cli-hosted/actions/workflows/build-php-bulk.yml), or from self-hosted server.
107108

108-
Below are several precompiled static-php binaries with different extension combinations,
109+
Below are several precompiled statically built php binaries with different extension combinations,
109110
which can be downloaded directly according to your needs.
110111

111112
| Combination | Extension Count | OS | Comment |

docs/.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import sidebarZh from "./sidebar.zh";
44

55
// https://vitepress.dev/reference/site-config
66
export default {
7-
title: "Static PHP",
7+
title: "StaticPHP",
88
description: "Build single static PHP binary, with PHP project together, with popular extensions included.",
99
locales: {
1010
en: {

docs/en/guide/index.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Guide
22

3-
Static php cli is a tool used to build statically compiled PHP binaries,
3+
StaticPHP is a tool used to build statically compiled PHP binaries,
44
currently supporting Linux and macOS systems.
55

66
In the guide section, you will learn how to use static php cli to build standalone PHP programs.
@@ -14,12 +14,14 @@ In the guide section, you will learn how to use static php cli to build standalo
1414
The following is the architecture support situation, where :gear: represents support for GitHub Action build,
1515
:computer: represents support for local manual build, and empty represents temporarily not supported.
1616

17-
| | x86_64 | aarch64 |
18-
|---------|-------------------|-------------------|
19-
| macOS | :gear: :computer: | :gear: :computer: |
20-
| Linux | :gear: :computer: | :gear: :computer: |
21-
| Windows | :gear: :computer: | |
22-
| FreeBSD | :computer: | :computer: |
17+
| | x86_64 | aarch64 |
18+
|---------|------------------------|------------------------|
19+
| macOS | :gear: :computer: | :gear: :computer: |
20+
| Linux | :gear: :computer: | :gear: :computer: |
21+
| Windows | :gear: :computer: | |
22+
| FreeBSD | :computer: (:warning:) | :computer: (:warning:) |
23+
24+
> Due to lack of users and testing, FreeBSD is no longer supported in latest StaticPHP project.
2325
2426
Current supported PHP versions for compilation:
2527

@@ -29,17 +31,17 @@ Current supported PHP versions for compilation:
2931
>
3032
> :x: Not supported
3133
32-
| PHP Version | Status | Comment |
33-
|-------------|--------------------|-------------------------------------------------------------------------------------------------------------------------|
34-
| 7.2 | :x: | |
35-
| 7.3 | :x: | phpmicro and many extensions do not support 7.3, 7.4 versions |
36-
| 7.4 | :x: | phpmicro and many extensions do not support 7.3, 7.4 versions |
37-
| 8.0 | :warning: | PHP official has stopped maintaining 8.0, we no longer handle 8.0 related backport support |
38-
| 8.1 | :warning: | PHP official only provides security updates for 8.1, we no longer handle 8.1 related backport support after 8.5 release |
39-
| 8.2 | :heavy_check_mark: | |
40-
| 8.3 | :heavy_check_mark: | |
41-
| 8.4 | :heavy_check_mark: | |
42-
| 8.5 (beta) | :warning: | PHP 8.5 is currently in beta stage |
34+
| PHP Version | Status | Comment |
35+
|-------------|--------------------|--------------------------------------------------------------------------------------------|
36+
| 7.2 | :x: | |
37+
| 7.3 | :x: | phpmicro and many extensions do not support 7.3, 7.4 versions |
38+
| 7.4 | :x: | phpmicro and many extensions do not support 7.3, 7.4 versions |
39+
| 8.0 | :warning: | PHP official has stopped maintaining 8.0, we no longer handle 8.0 related backport support |
40+
| 8.1 | :warning: | PHP official only provides security updates for 8.1 |
41+
| 8.2 | :heavy_check_mark: | |
42+
| 8.3 | :heavy_check_mark: | |
43+
| 8.4 | :heavy_check_mark: | |
44+
| 8.5 | :heavy_check_mark: | |
4345

4446
> This table shows the support status of static-php-cli for building corresponding versions, not the PHP official support status for that version.
4547

docs/en/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
layout: home
44

55
hero:
6-
name: "Static PHP"
6+
name: "StaticPHP"
77
tagline: "Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included."
88
image:
99
src: /images/static-php_nobg.png
@@ -14,9 +14,9 @@ hero:
1414
link: ./guide/
1515

1616
features:
17-
- title: Static CLI Binary
17+
- title: Static PHP Binary
1818
details: You can easily compile a standalone php binary for general use. Including CLI, FPM sapi.
19-
- title: Micro Self-Extracted Executable
19+
- title: PHP micro Self-Extracted Executable
2020
details: You can compile a self-extracted executable and build with your php source code.
2121
- title: Dependency Management
2222
details: static-php-cli comes with dependency management and supports installation of different types of PHP extensions.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
layout: home
44

55
hero:
6-
name: "Static PHP"
6+
name: "StaticPHP"
77
tagline: "Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included."
88
image:
99
src: /images/static-php_nobg.png

docs/zh/guide/index.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ static-php-cli 是一个用于构建静态编译的 PHP 二进制的工具,目
1212

1313
下面是架构支持情况,:gear: 代表支持 GitHub Action 构建,:computer: 代表支持本地构建,空 代表暂不支持。
1414

15-
| | x86_64 | aarch64 |
16-
|---------|-------------------|-------------------|
17-
| macOS | :gear: :computer: | :gear: :computer: |
18-
| Linux | :gear: :computer: | :gear: :computer: |
19-
| Windows | :gear: :computer: | |
20-
| FreeBSD | :computer: | :computer: |
15+
| | x86_64 | aarch64 |
16+
|---------|------------------------|------------------------|
17+
| macOS | :gear: :computer: | :gear: :computer: |
18+
| Linux | :gear: :computer: | :gear: :computer: |
19+
| Windows | :gear: :computer: | |
20+
| FreeBSD | :computer: (:warning:) | :computer: (:warning:) |
21+
22+
> 由于缺乏用户和测试,FreeBSD 在最新的 StaticPHP 项目中不再受支持。
2123
2224
当前支持编译的 PHP 版本:
2325

@@ -27,17 +29,17 @@ static-php-cli 是一个用于构建静态编译的 PHP 二进制的工具,目
2729
>
2830
> :x: 不支持
2931
30-
| PHP Version | Status | Comment |
31-
|-------------|--------------------|---------------------------------------------------------|
32-
| 7.2 | :x: | |
33-
| 7.3 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 |
34-
| 7.4 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 |
35-
| 8.0 | :warning: | PHP 官方已停止 8.0 的维护,我们不再处理 8.0 相关的 backport 支持 |
36-
| 8.1 | :warning: | PHP 官方仅对 8.1 提供安全更新,在 8.5 发布后我们不再处理 8.1 相关的 backport 支持 |
37-
| 8.2 | :heavy_check_mark: | |
38-
| 8.3 | :heavy_check_mark: | |
39-
| 8.4 | :heavy_check_mark: | |
40-
| 8.5 (beta) | :warning: | PHP 8.5 目前处于 beta 阶段 |
32+
| PHP Version | Status | Comment |
33+
|-------------|--------------------|----------------------------------------------|
34+
| 7.2 | :x: | |
35+
| 7.3 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 |
36+
| 7.4 | :x: | phpmicro 和许多扩展不支持 7.3、7.4 版本 |
37+
| 8.0 | :warning: | PHP 官方已停止 8.0 的维护,我们不再处理 8.0 相关的 backport 支持 |
38+
| 8.1 | :warning: | PHP 官方仅对 8.1 提供安全更新 |
39+
| 8.2 | :heavy_check_mark: | |
40+
| 8.3 | :heavy_check_mark: | |
41+
| 8.4 | :heavy_check_mark: | |
42+
| 8.5 | :heavy_check_mark: | |
4143

4244
> 这个表格的支持状态是 static-php-cli 对构建对应版本的支持情况,不是 PHP 官方对该版本的支持情况。
4345

0 commit comments

Comments
 (0)