Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, FrankenPHP, Mercure.rocks, Vulcain.rocks and of some Symfony components.

Menu
  • Talks
  • Resume
  • Sponsor me
  • Contact
Menu

PHP and Symfony Apps As Standalone Binaries

Posted on December 8, 2023November 14, 2024 by Kévin Dunglas

Distributing PHP applications is quite complicated. For instance, to run a Symfony project in production, a web server, the PHP engine, and the appropriate PHP extensions need to be installed. Their versions and configurations must be compatible with the app. Because PHP is an interpreted language, the application source code must also be available. Composer dependencies as well… and things are even more difficult if some of them are private.

Of course, these days, containers can help. But what if we could make things even simpler: a single distributable binary that’s self-executing? Download a single file, give it the execution bit, and type “./my-app php-server”: boom! Your Symfony application is up and running, served over HTTP/3 with a valid TLS certificate! If you also want to distribute CLI commands written in PHP, we’ve got your back.

Thanks to the latest features of FrankenPHP, the dream is now a reality! Let’s discover how to ship PHP and Symfony applications as standalone binaries, web server, PHP included!

Here are the slides I presented at SymfonyCon Brussels introducing this feature:

Read the documentation on the brand new FrankenPHP website.

Related posts:

  1. Deploying Symfony and API Platform apps on Heroku easily
  2. Containerization Tips and Tricks for PHP apps
  3. Webperf: Boost Your PHP Apps With 103 Early Hints
  4. DunglasAngularCsrfBundle: protect your Symfony / AngularJS apps against CSRF attacks

1 thought on “PHP and Symfony Apps As Standalone Binaries”

  1. NicolasD says:
    December 8, 2023 at 5:22 pm

    Hello
    Thank you for this new feature.

    Looks very nice

    Any informations about performances ?

    And when the application is build, is there any way to extract the PHP source code ?

    Thank you

    Reply

Leave a ReplyCancel reply

Social

  • Bluesky
  • GitHub
  • LinkedIn
  • Mastodon
  • X
  • YouTube

Links

  • API Platform
  • FrankenPHP
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks

Subscribe to this blog

Top Posts & Pages

  • FrankenPHP’s New Features: Thread Autoscaling, Mostly Static Binaries, deb and RPM Packages, Caddy 2.10…
  • FrankenPHP: The Modern Php App Server, written in Go
  • Develop Faster With FrankenPHP
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • FrankenPHP 1.3: Massive Performance Improvements, Watcher Mode, Dedicated Prometheus Metrics, and More
  • FrankenPHP Is Now Officially Supported by The PHP Foundation
  • How to debug Xdebug... or any other weird bug in PHP
  • PHP and Symfony Apps As Standalone Binaries
  • Symfony's New Native Docker Support (Symfony World)
  • Webperf: Boost Your PHP Apps With 103 Early Hints

Tags

Apache API API Platform Buzz Caddy Docker Doctrine FrankenPHP Go Google GraphQL HTTP/2 Hydra hypermedia Hébergement Javascript JSON-LD Kubernetes La Coopérative des Tilleuls Les-Tilleuls.coop Lille Linux Mac Mercure Messagerie Instantanée MySQL performance PHP Punk Rock Python React REST Rock'n'Roll Schema.org Security SEO SEO Symfony Symfony Live Sécurité Ubuntu Web 2.0 webperf XHTML XML

Archives

Categories

  • DevOps (85)
    • Ubuntu (68)
  • Go (19)
  • JavaScript (46)
  • Mercure (7)
  • Opinions (91)
  • PHP (172)
    • API Platform (77)
    • FrankenPHP (11)
    • Laravel (1)
    • Symfony (97)
    • Wordpress (6)
  • Python (14)
  • Security (15)
  • SEO (25)
  • Talks (46)
© 2025 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme