Laravelvideo· Sep 4, 2026· 3:58

The Best Place to Host Your Symfony Apps?

Watch on YouTube ↗

transcript

8 moments
  1. Welcome back to another Laravel Cloud video. If you haven't been keeping up, Laravel Cloud no longer just hosts Laravel. In fact, you can see a video right up there where you can host Nuxt or Next applications right alongside your Laravel applications. But that's not where it stops either because Laravel Cloud can now host your Symfony applications. Now, if you clicked on this video, you probably already know what Symfony is. But just in case you don't, Symfony has been around for over two decades and it's been incredibly important to the health of the PHP ecosystem.

  2. In fact, there's tools in Laravel like the mail driver that is powered by Symfony. So what does it look like to get your Symfony application onto Laravel Cloud and take advantage of the experience and scalability that Laravel Cloud has to offer? Well, it's simple. I have this GitHub repo, my Symfony project, that is just the demo project of Symfony. It uses the Symfony CLI and just that dash dash demo flag. And that's all this project is, just the demo application. So nothing has been changed. It's just Symfony demo out of the box.

  3. Now in Laravel Cloud, I just select that repository and Laravel Cloud immediately recognizes this as a Symfony project. Of course, you can change this default entry point if that's what is happening within your application. I'm just going to leave it as is, of course, because this is just the demo project. Now, again, since this is deployed on Laravel Cloud, everything that Laravel Cloud has to offer for your other projects, your other Laravel projects is the same for Symfony. So we're going to attach a database. I'm going to use Laravel MySQL for this one.

  4. Now that that's been created, I'm actually going to change the Laravel cloud domain that we're going to have for this particular project before I actually deploy it. I'm just going to say my symphony project.laravvel.cloud. Save that. Now before we deploy, let's go ahead and take a look at our deployment build and deploy command. So this is where we can adjust what's going to happen with our symphony application when we build it and when we deploy it. Since this is a Symfony demo application that's meant to be run locally, we're just going to make some changes to make it run on cloud,

  5. which is essentially removing the node dev command and then obtaining the schema and then seeding that data. Lastly, in our ENV, and this is all things that can be changed within our Symfony application that Laravel Cloud makes it easy for. I'm actually going to change the app into dev. Let's deploy. Fantastic. Finished in 47 seconds. and let's visit our Symfony application. And there we go. We have the public section of the

  6. demo application and then our admin backend as well. A Symfony demo app deployed onto Laravel Cloud. And like you would expect, everything that you have available in Laravel Cloud, even things like scale to zero, just works for the Symfony application. Other than maybe a few things like Symfony applications do not support scheduled tasks while sleeping. And since I wanted to build my first Symfony application, that's exactly what I did. I built this little demo app

  7. that is essentially calling an API using Symfony and then with their live components being able to show that data on the page. So being able to make this query to that API service that we've set up in Symfony to find a specific TV show, have that populated and then be able to have show detail pages specific for that API. We're not actually saving any of this to the database and that's the power of Symfoteam, but being able to be on a scalable platform like Laravel Cloud. And yes,

  8. this demo application that I put together doesn't do too much. It's not really CPU intensive, and there's only been a few people making requests to it, but it does scale to zero. You can see here that application for being alive 0.2 hours for a whole month cost me $0. So yes, Laravel Cloud does not just host Laravel, but allows you to have that simplicity, that scalability, that user experience that you know and love when you're hosting their applications for things like Symfony.

just you here