WEBVTT

NOTE Created by CaptionSync from Automatic Sync Technologies www.automaticsync.com

00:00:00.056 --> 00:00:03.166 align:middle
Hey guys! Yes!

00:00:04.376 --> 00:00:07.556 align:middle
It's Symfony 4 time!

00:00:07.886 --> 00:00:09.716 align:middle
I am so excited.

00:00:10.336 --> 00:00:16.876 align:middle
Why? Because nothing makes me happier than
sitting down to work inside a framework

00:00:16.876 --> 00:00:21.136 align:middle
where coding is actually fun, and
where I can build features fast,

00:00:21.426 --> 00:00:24.286 align:middle
but without sacrificing quality.

00:00:25.036 --> 00:00:29.756 align:middle
Well, maybe I'd be even happier
doing all of that on a beach...

00:00:29.756 --> 00:00:31.406 align:middle
with, maybe a cold drink?

00:00:32.376 --> 00:00:37.876 align:middle
Anyways, Symfony 4 completely
re-imagined the developer experience:

00:00:38.446 --> 00:00:41.456 align:middle
you're going to create better
features, faster than ever.

00:00:42.006 --> 00:00:48.976 align:middle
And, Symfony has a new, unique
super-power: it starts as a microframework,

00:00:49.136 --> 00:00:52.596 align:middle
then automatically scales in
size as your project grows.

00:00:53.476 --> 00:00:55.056 align:middle
How? Stay tuned...

00:00:55.906 --> 00:01:00.056 align:middle
Oh, and did I mention that Symfony
4 is the fastest version ever?

00:01:00.476 --> 00:01:02.386 align:middle
And the fastest PHP framework?

00:01:03.056 --> 00:01:08.056 align:middle
Honestly, all frameworks are fast
enough anyways, but the point is this:

00:01:08.416 --> 00:01:11.856 align:middle
you're building on a seriously
awesome foundation.

00:01:12.736 --> 00:01:15.016 align:middle
Ok, let's get started already!

00:01:15.666 --> 00:01:19.106 align:middle
Open a new terminal and move
into whatever directory you want.

00:01:20.376 --> 00:01:24.306 align:middle
Make sure that you already have
Composer installed globally

00:01:24.546 --> 00:01:26.756 align:middle
so that you can just say composer.

00:01:27.426 --> 00:01:30.136 align:middle
If you have any questions,
ask us in the comments!

00:01:30.846 --> 00:01:35.226 align:middle
And also make sure you have the
latest version: That's important:

00:01:35.896 --> 00:01:38.566 align:middle
Composer had a recent bug fix to help Symfony.

00:01:39.466 --> 00:01:46.146 align:middle
To download your new Symfony project, run
composer create-project symfony/skeleton

00:01:46.446 --> 00:01:50.256 align:middle
and put this into a new directory
called the_spacebar.

00:01:50.886 --> 00:01:52.696 align:middle
That's the name of our project!

00:01:53.176 --> 00:01:59.856 align:middle
"The Spacebar" will be the place for people from
across the galaxy to communicate, share news

00:01:59.966 --> 00:02:02.636 align:middle
and argue about celebrities and BitCoin.

00:02:03.016 --> 00:02:05.116 align:middle
It's going to be amazing!

00:02:06.006 --> 00:02:08.686 align:middle
This command clones the symfony/skeleton project

00:02:08.686 --> 00:02:12.556 align:middle
and then runs composer install
to download its dependencies.

00:02:15.876 --> 00:02:20.976 align:middle
Further down, there's something
special: something about "recipes".

00:02:21.666 --> 00:02:26.946 align:middle
OooOOO. Recipes are a new
and very important concept.

00:02:27.646 --> 00:02:29.266 align:middle
We'll talk about them in a few minutes.

00:02:30.396 --> 00:02:32.256 align:middle
And at the bottom, cool!

00:02:32.886 --> 00:02:36.266 align:middle
Symfony gives us clear instructions
about what to do next.

00:02:37.196 --> 00:02:44.836 align:middle
Move into the new directory: Apparently, we
can run our app immediately by executing:

00:02:44.916 --> 00:02:54.556 align:middle
php -S 127.0.0.1:8000 -t public This
starts the built-in PHP web server,

00:02:54.786 --> 00:02:56.846 align:middle
which is great for development.

00:02:57.756 --> 00:03:02.056 align:middle
public/ is the document root of the
project - but more on that soon!

00:03:03.336 --> 00:03:05.046 align:middle
Time to blast off!

00:03:05.796 --> 00:03:09.216 align:middle
Move to your browser and go
to http://localhost:8000.

00:03:10.106 --> 00:03:12.336 align:middle
Say hello to your new Symfony app!

00:03:13.336 --> 00:03:16.246 align:middle
Back in the terminal, I'll
create a new terminal tab.

00:03:17.256 --> 00:03:20.776 align:middle
Symfony already inititalized
a new git repository for us

00:03:21.176 --> 00:03:24.086 align:middle
and gave us a perfect .gitignore file.

00:03:24.926 --> 00:03:25.656 align:middle
Thanks Symfony!

00:03:26.326 --> 00:03:35.406 align:middle
That means we can create our first commit just
by saying: git add .git commit Create a calm

00:03:35.406 --> 00:03:37.146 align:middle
and well-thought-out commit message.

00:03:40.436 --> 00:03:46.546 align:middle
Woh! Check this out: the entire
project - including Composer

00:03:46.546 --> 00:03:50.186 align:middle
and .gitignore stuff - is only 16 files!

00:03:50.776 --> 00:03:53.016 align:middle
Our app is teenie-tiny!

00:03:53.786 --> 00:03:58.316 align:middle
Let's learn more about our
project next and setup our editor

00:03:58.356 --> 00:04:01.276 align:middle
to make Symfony development amazing!

