From 8bf5c005818bc9e97db2113ba4c7685a2b6546fd Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 19 Dec 2023 15:48:11 -0700 Subject: [PATCH] Add FrankenPHP section to homepage --- src/includes/examples/frankenphp.md | 20 ++++++++++++ src/index.html | 40 ++++++++++++++++++++++++ src/old/includes/footer.html | 4 +-- src/resources/css/home.css | 23 +++++++++++--- src/resources/images/frankenphp-dab.svg | 2 ++ src/resources/images/frankenphp-logo.svg | 2 ++ 6 files changed, 85 insertions(+), 6 deletions(-) create mode 100644 src/includes/examples/frankenphp.md create mode 100644 src/resources/images/frankenphp-dab.svg create mode 100644 src/resources/images/frankenphp-logo.svg diff --git a/src/includes/examples/frankenphp.md b/src/includes/examples/frankenphp.md new file mode 100644 index 0000000..177d518 --- /dev/null +++ b/src/includes/examples/frankenphp.md @@ -0,0 +1,20 @@ +
+ +```caddy +{ + # Enable FrankenPHP + frankenphp + order php_server before file_server +} + +example.com { + # Serve PHP app from current directory + php_server +} +``` + +
+ + \ No newline at end of file diff --git a/src/index.html b/src/index.html index ca966aa..6c2947b 100644 --- a/src/index.html +++ b/src/index.html @@ -633,6 +633,46 @@ $ curl localhost:2019/config/ | jq
+
+
+
+
+
+

4x faster PHP apps

+

+ With FrankenPHP, Caddy acts as a PHP application server that delivers PHP pages about 4x faster than Swoole or RoadRunner: no need for php-fpm (FastCGI). +

+

+ Deploy your PHP application as a single static binary without needing to install PHP and php-fpm separately. Caddy with FrankenPHP is all you need for high-performing PHP apps! +

+ +

+ Benchmarks compare total response times using worker mode with Octane. FrankenPHP runs in-process with the server, so it's generally faster than FPM/mod_php in most cases. PHP execution is not accelerated. +

+
+
+ +
+ +
+
+
+ {{ markdown (include "/includes/examples/frankenphp.md") }} +
+
+
+

+ Serving your PHP app is as simple as this Caddyfile. The PHP interpreter is completely embedded within the Caddy binary and your application files will be served from the current working directory. No need for php-fpm or separate PHP installs! +

+

+ Learn more +

+
+
+
+
+ +

The gold standard web server

diff --git a/src/old/includes/footer.html b/src/old/includes/footer.html index 1b90a11..24ab64e 100644 --- a/src/old/includes/footer.html +++ b/src/old/includes/footer.html @@ -9,9 +9,9 @@ Privacy-respecting analytics by Fathom
diff --git a/src/resources/css/home.css b/src/resources/css/home.css index 0b4ef2a..33e893e 100644 --- a/src/resources/css/home.css +++ b/src/resources/css/home.css @@ -273,7 +273,8 @@ h3 a { -.smallstep { +.smallstep, +.franken-logo { max-width: 150px; margin-top: 1em; } @@ -371,9 +372,23 @@ img.cite { -.franken { - background-color: #b3d133; - color: #390075; +.frankenphp.dark { + background-color: rgb(35, 1, 67); +} +.frankenphp h2 { + color: #b3d133; +} +.frankenphp img.franken-mascot { + max-height: 500px; +} +.franken.button { + background: #b3d133; + color: rgb(35, 1, 67); + border: 0; +} +p.endnote { + font-size: 75%; + opacity: .65; } diff --git a/src/resources/images/frankenphp-dab.svg b/src/resources/images/frankenphp-dab.svg new file mode 100644 index 0000000..48cf394 --- /dev/null +++ b/src/resources/images/frankenphp-dab.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/src/resources/images/frankenphp-logo.svg b/src/resources/images/frankenphp-logo.svg new file mode 100644 index 0000000..a1c04a8 --- /dev/null +++ b/src/resources/images/frankenphp-logo.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file