-
Notifications
You must be signed in to change notification settings - Fork 456
deduplicate package instructions #2013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
73243c7
5473295
126bdab
7587612
30ff383
940751e
d35e8c5
9e9236d
2972f48
074bb7c
c81aa19
58269ae
d77aaa6
4b2e71d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,6 @@ install an appropriate version for your platform: | |
|
|
||
| ```console | ||
| curl https://frankenphp.dev/install.sh | sh | ||
| mv frankenphp /usr/local/bin/ | ||
| ``` | ||
|
|
||
| ### Standalone Binary | ||
|
|
@@ -35,6 +34,8 @@ containing [PHP 8.4](https://www.php.net/releases/8.4/en.php) and most popular P | |
|
|
||
| [Download FrankenPHP](https://github.com/php/frankenphp/releases) | ||
|
|
||
| **Installing extensions:** Most common extensions are bundled. It's not possible to install more extensions. | ||
|
|
||
| ### rpm Packages | ||
|
|
||
| Our maintainers offer rpm packages for all systems using `dnf`. To install, run: | ||
|
|
@@ -43,9 +44,13 @@ Our maintainers offer rpm packages for all systems using `dnf`. To install, run: | |
| sudo dnf install https://rpm.henderkes.com/static-php-1-0.noarch.rpm | ||
| sudo dnf module enable php-zts:static-8.4 # 8.2-8.5 available | ||
| sudo dnf install frankenphp | ||
| # to install extensions: | ||
| sudo dnf install php-zts-xdebug | ||
| # if an extension is not available by default, install it with pie | ||
| ``` | ||
|
|
||
| **Installing extensions:** `sudo dnf install php-zts-<extension>` | ||
|
|
||
| For extensions not available by default, use [PIE](https://github.com/php/pie): | ||
|
|
||
| ```console | ||
| sudo dnf install php-zts-devel | ||
| sudo pie install asgrim/example-pie-extension --with-php-config=php-config-zts | ||
| ``` | ||
|
|
@@ -59,44 +64,46 @@ sudo curl -fsSL https://key.henderkes.com/static-php.gpg -o /usr/share/keyrings/ | |
| echo "deb [signed-by=/usr/share/keyrings/static-php.gpg] https://deb.henderkes.com/ stable main" | sudo tee /etc/apt/sources.list.d/static-php.list && \ | ||
| sudo apt update | ||
| sudo apt install frankenphp | ||
| # to install extensions: | ||
| sudo apt install php-zts-xdebug | ||
| # if an extension is not available by default, install it with pie | ||
| sudo apt install php-zts-devel | ||
| sudo pie install asgrim/example-pie-extension --with-php-config=php-config-zts | ||
| ``` | ||
|
|
||
| ### Usage | ||
|
|
||
| To serve the content of the current directory, run: | ||
|
|
||
| ```console | ||
| frankenphp php-server | ||
| ``` | ||
| **Installing extensions:** `sudo apt install php-zts-<extension>` | ||
|
|
||
| You can also run command-line scripts with: | ||
| For extensions not available by default, use [PIE](https://github.com/php/pie): | ||
|
|
||
| ```console | ||
| frankenphp php-cli /path/to/your/script.php | ||
| sudo apt install php-zts-devel | ||
| sudo pie install asgrim/example-pie-extension --with-php-config=php-config-zts | ||
| ``` | ||
|
|
||
| ### Homebrew | ||
|
|
||
| FrankenPHP is also available as a [Homebrew](https://brew.sh) package for macOS and Linux. | ||
|
|
||
| To install it: | ||
|
|
||
| ```console | ||
| brew install dunglas/frankenphp/frankenphp | ||
| ``` | ||
|
|
||
| **Installing extensions:** Use [PIE](https://github.com/php/pie). | ||
|
|
||
| ### Usage | ||
|
|
||
| To serve the content of the current directory, run: | ||
|
|
||
| ```console | ||
| frankenphp php-server | ||
| ``` | ||
|
|
||
| If you need extensions, you will have to install them with [pie](https://github.com/php/pie). | ||
| You can also run command-line scripts with: | ||
|
|
||
| ```console | ||
| frankenphp php-cli /path/to/your/script.php | ||
| ``` | ||
|
|
||
| For the deb and rpm packages, you can also start the systemd service: | ||
|
|
||
| ```console | ||
| sudo systemctl start frankenphp | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I skipped on adding a note about enabling the service... I think we don't have to explain systemd here, just mention that the service exists. |
||
| ``` | ||
|
|
||
| ### Docker | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,8 +103,13 @@ xcaddy build \ | |
| --output frankenphp \ | ||
| --with github.com/dunglas/frankenphp/caddy \ | ||
| --with github.com/dunglas/mercure/caddy \ | ||
| --with github.com/dunglas/vulcain/caddy | ||
| --with github.com/dunglas/vulcain/caddy \ | ||
| --with github.com/dunglas/caddy-cbrotli | ||
| # Add extra Caddy modules and FrankenPHP extensions here | ||
| # optionally, if you would like to compile from your frankenphp sources: | ||
| # --with github.com/dunglas/frankenphp=$(pwd) \ | ||
| # --with github.com/dunglas/frankenphp/caddy=$(pwd)/caddy | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, simply adding this works! |
||
|
|
||
| ``` | ||
|
|
||
| > [!TIP] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.