I hope, that setting up the environment goes ok 😉
In this post, I want to show you how to install Symfony on previously prepared docker container.
The simplest way to install Symfony is to use composer. Symfony has it’s own installation script, but I think that composer’s one is just fine.
If you have composer installed then it’s enough to call
composer create-project symfony/framework-standard-edition code in your terminal (in the main directory of a docker, where
docker-composer.yml file is placed, see PHPyths Buster: Project environment). All required packages will be downloaded and installed automatically.
Ok, time for some action!
I’ll start the project by setting up the environment. As mentioned in the previous post, I want to use Docker to simplify configuration for everyone who wanted to create this project with me 😉
I’m not a docker expert. In fact, a basic configuration for this project took me about 2 days! I could not find ready to use configuration so I had to create it myself using 2 or 3 different configurations.
But finally I made it, and I proudly present it to you! It is very simple and you might be surprised what took me so long 😉
As promised I’m starting with a real project to proof that PHP may be what you want to build a web application 😉
I want to show you complete way to build the functional application. I’ll go from setting up the environment, through installing the framework and required libraries, to deploying to the server.
I’ll use Docker with Nginx, MySQL, and PHP7 – I want you to make a minimal effort to start the project. In addition, you won’t need to install something on your computer (well, except Docker itself) and your computer will be clean as always. You could also do the examples yourself and easy experiment with the code in the same environment. If something will break you could always let me know and we’ll fix it together 🙂