Add docs about applications with Symfony Runtime#1032
Add docs about applications with Symfony Runtime#1032Nyholm wants to merge 3 commits intobrefphp:masterfrom
Conversation
|
The resistence I have with this is that Bref first philosophy is
While I think Symfony Runtime seems a very interesting concept, it brings a bit of overhead coupled with something that's experimental. |
|
Thank you for your quick reply. Could you elaborate what you mean with "overhead"? Are you talking about loading ~5 extra files? When I did some tests I found using the runtime component was faster that starting PHP-FPM. Yes, the component is marked as "experimental" for about 2 more months. It is really unlikely there will be any BC breaks. I would not worry about adding docs about it. I know that Bref is all about simplicity. I dont make a suggestion now, but using the Runtime component will remove the need for the console layer, FPM layer and FPM-debug layer. It will solve time timeout issue and make sure all PHP frameworks/apps have the same setup/install. But this can be discussed in another thread. This PR is just to explain how to deploy modern/symfony applications with Bref. |
|
By overhead I mean cognitive overhead. It's a shiny new thing that has the potential to completely change how everyone runs PHP. Serverless is another shiny new thing. It has it's own set of resistence barriers. Although I think Serverless is where the Symfony Runtime will probably "shine the most", I feel it would lead to just more cognitive stress for people adopting serverless right now. |
|
I'm not super fond of the fact the user is "forced" to have their own bootstrap file in order to correctly use |
|
I agree with you. Im not super excited about that either. It is very similar to the current Bref console layer. I will try to make that bootstrap file as a part of Bref in the future. But I decided to start with some documentation. |
And what about the runtime layer that was added in bref/extra-php-extensions ? |
Co-authored-by: Sébastien HOUZÉ <sebastien.houze@french-hospitality.fr>
That is a good idea. I opened #889 a while ago to discuss that. There are many things we can do to make the runtime component to work better with Bref. I am happy to do all of them, but we need to start somewhere. I thought it was a good idea to start writing docs. |
|
As mentioned in #889: 🎉 Symfony runtime is now implemented and supported in https://github.com/brefphp/symfony-bridge I've released a beta version, there should be a stable in the coming weeks! |
I thought about making this part of the existing Symfony page, however, it didn't really fit. First, the Runtime component works very well with Symfony apps, Laravel app, PSR-15 apps and pure PHP applications. I also didnt want to remove docs how to use Bref with non-runtime symfony applications.
That is why I added a new page. This page describe how to install and deploy a pure PHP application with the Runtime component. If you want to add assets you still need to read the Symfony/Laravel docs.
This PR follows the recipe: symfony/recipes#1001