How to Setup & Run Symfony 7 Project in Browser Using Composer in VSCode Full Tutorial
704 views
Apr 1, 2025
Get the full source code of application here: Watch My Visual Studio Code IDE Setup Video For Fonts,Themes & Extensions https://youtu.be/Bon8Pm1gbX8 Hi Join the official discord server to resolve doubts here: https://discord.gg/cRnjhk6nzW Visit my Online Free Media Tool Website https://freemediatools.com/ Buy Premium Scripts and Apps Here: https://procodestore.com/
View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
so in this video I will show you how to
0:04
create uh a Symfony uh project inside VS
0:09
code and we'll be starting it from
0:11
scratch so this is the website of
0:13
Symfony uh it's a very good PHP
0:16
framework similar to Laravel Codeer uh
0:19
so it's a third popular framework so
0:21
first of all you need to install the
0:23
Symfony CLI this you can directly do so
0:26
this is on their website it is
0:29
mentioned if you are on Windows Linux
0:32
Mac so my operating system is Windows so
0:35
you need to install this tool right here
0:37
scoop tool command line installer for
0:40
Windows so you just need to have this
0:44
tool so I already installed it so this
0:47
is actually the command here so you
0:50
directly open your command line and just
0:53
paste this command swoop install
0:56
symphfily CLI so what this will actually
1:00
do it will install the Symphfony CLI
1:03
that uh the latest version
1:05
5.11.0 so now you can see Symfol CLI has
1:08
been successfully installed successfully
1:11
and for building this application you
1:13
would need uh exam control panel as well
1:16
you need to start the Apache control the
1:19
Apache PHP server so if you haven't
1:23
installed that just exam control panel
1:26
just download this the very first link
1:28
which comes right here you need to
1:29
install it for your own operating system
1:32
so after installing this this will
1:34
create in the C drive it will create
1:36
this folder which is
1:38
exam inside this folder you will see
1:40
this HD docs folder and right here you
1:44
will actually open the command line and
1:47
I will just write
1:49
this Symfony right
1:52
here dash version so it will exactly
1:55
tell you the Symfony CLI version which
1:58
is installed 5.11.0
2:00
so now the command is very simple we
2:03
simply write here
2:05
Symfony and new project we can simply
2:09
make any project
2:13
here and then it's a web app so d- web
2:17
app so this is actually the command here
2:20
just execute it on the terminal right
2:22
here so after that it will create a new
2:26
Symfony project with composer and
2:30
uh this will hardly take 15 to 20
2:33
seconds to actually install and download
2:36
Symfony dependencies and create a brand
2:38
new
2:40
project so just wait for the process to
2:42
finish and then we will open it inside
2:44
VS Code
2:56
so Symfony if you just go to their it's
3:00
a third popular
3:02
framework similar to Laravel and uh
3:06
Podniter this is also a high performance
3:08
PHP framework for web development so
3:11
this is their official
3:13
website and
3:17
uh you can also check out their
3:19
documentation as well so you can see it
3:22
is creating a new Symfony project with
3:24
composer so just wait for the process to
3:27
finish so I'm not pausing the video you
3:30
just see the entire
3:32
process just see how much time it takes
3:52
so if you're running it for the very
3:54
first time then only it will take longer
3:56
time but uh if you're running it for the
3:58
third fourth time then subsequent runs
4:01
will not take much time so if you only
4:04
installing CLI for the first time and
4:07
creating a project then only it will
4:09
take larger
4:25
time so you can see it is creating the
4:28
project here
4:34
so now you can see that guys the project
4:36
has been successfully created in this
4:38
directory so now it is mentioning you
4:41
need to navigate to the directory right
4:43
here so I will navigate to the project
4:45
directory and open it inside VS code so
4:50
just view the directory structure of
4:51
this Symfony project here if you see
4:54
that we also have the composer.json file
4:57
right here if you try to open this file
4:59
you will see we are actually using the
5:02
latest version of Symfony which is 7 at
5:05
the time of recording this video so you
5:07
will see that now to run this project
5:10
there is again a command here which you
5:12
need to write here which is
5:19
symfony and then you simply write server
5:22
colon
5:24
start this is the command here symfony
5:28
server colon start so this will actually
5:30
start your web application you just need
5:33
to allow the permission
5:40
so it will start your
5:48
application can see it is listening on
5:50
this port number localhost 88 800 8000
5:54
port number so if you go to the browser
5:58
just type this
5:59
address and you will see your Symfony
6:02
application web application will boot
6:05
up welcome to Symfony 7 you are using
6:09
the Symfony 7.2.4 version and you can
6:12
see that so this is in this way you can
6:15
actually create a Symfony 7 project from
6:18
scratch and run it inside your VS code
6:22
it's very simple i showed you step by
6:25
step just follow the instructions and
6:26
you will be able to create a Symfony
6:29
project it's a great framework for
6:31
building web
6:32
applications and also check out my
6:35
website
6:36
freemediatools.com which contains
6:39
thousands of tools regarding audio video
6:41
and image and I will be seeing you in
6:43
the next video
#Programming
#Software