Symfony 4 and Flex: new gifts to all developers

Kemal Yenilmez
2 min readNov 13, 2017

--

New Symfony Installer came with Symfony 3.3. Also in next days we will meet with Symfony 4 with some great geeks. Here I wish to introduce Symfony’s latest hot titles.

While most of the world is counting days to end of 2017, but I’m waiting the release Symfony 4. New version of Symfony Installer is named as Symfony Flex. And Symfony is going to be more minimal. While installing Symfony Skeleton with composer, it will just create a simple composer.json which includes everything to make a web application with custom bundles. In another words, it’s just a naked version of symfony.

Symfony Flex is not a monolith or micro. You just need to create your own boilerplate with your own needs. This will give you more opportunities and more light applications.

The Skeleton and new directory structure

https://github.com/symfony/skeleton/blob/master/composer.json

Symfony comes with a new directory structure. Web folder named as public like most of web frameworks. We will mount our web server to this directory. That was important because public folder is using with all other frameworks like: Spring, Rails, ASP.NET vs.

We will put all our configuration files inside config folder. Old one was etc and not was so suitable and meaningful.

What’s next?

After installing the skeleton and now symfony is asking you what do you want to do? As I said, Symfony goes more minimal.

Auto generated environment file is more clever. When you have removed a bundle, it generates a new file and deleting old variables. Symfony detects Composer packages with the symfony-bundle type and automatically enable them for all environments.

To start PHP built-in web server all you need is to call one of these commands:

make serve

bin/console server:start

I will add a new demo skeleton soon. But in next days we will meet with new Symfony soon.

--

--