Symfony 4: Let's Launch!

Video loading...

  • 0:03
    Symfony 4: Let’s Launch! with Ryan Weaver
  • 0:08
    Yes, it’s Symfony 4 time! I am so excited!
  • 0:13
    Why? Because nothing makes me happier than sitting down to work
  • 0:19
    inside a framework where coding is actually fun,
  • 0:23
    and where I can build features fast but without sacrificing quality.
  • 0:28
    Well, maybe I’d be even happier
  • 0:31
    doing all of that on a beach with maybe a cold drink.
  • 0:36
    Anyways, Symfony 4 completely reimagined
  • 0:39
    the developer experience.
  • 0:42
    You're going to create better features, faster than ever.
  • 0:45
    And, Symfony has a new unique superpower –
  • 0:50
    it starts as a micro-framework,
  • 0:52
    then automatically scales in size as your project grows.
  • 0:57
    How? Stay tuned.
  • 0:59
    Oh, and did I mention that Symfony 4 is the fastest version ever
  • 1:04
    and the fastest PHP framework?
  • 1:06
    Honestly, all frameworks are fast enough anyways,
  • 1:10
    but the point is this –
  • 1:12
    you're building on a seriously awesome foundation.
  • 1:16
    OK, let’s get started already.
  • 1:19
    Open a new terminal and move into whatever directory you want.
  • 1:24
    Make sure that you already have Composer installed
  • 1:27
    globally, so that you can just say, composer.
  • 1:31
    If you have any questions, ask us in the comments.
  • 1:34
    And, also make sure that you have the latest version.
  • 1:38
    That’s important.
  • 1:39
    Composer had a recent bug fix to help Symfony.
  • 1:43
    To download your new Symfony project,
  • 1:45
    run, composer create-project
  • 1:48
    symfony/skeleton
  • 1:50
    and put this into a new directory called, the_spacebar.
  • 1:54
    That’s the name of our project.
  • 1:56
    The Space Bar will be the place
  • 1:59
    for people across the galaxy to communicate, share news,
  • 2:03
    and argue about celebrities and Bitcoin.
  • 2:06
    It’s going to be amazing!
  • 2:09
    This command clones the symfony/skeleton project,
  • 2:13
    and then runs composer install to download its dependencies.
  • 2:19
    Further down, there's something special,
  • 2:22
    something about recipes.
  • 2:25
    Oooh!
  • 2:27
    Recipes are a new and very important concept.
  • 2:31
    We’ll talk about them in a few minutes.
  • 2:34
    And, at the bottom, cool!
  • 2:36
    Symfony gives us clear instructions about what to do next.
  • 2:40
    Move into the new directory.
  • 2:44
    Apparently, we can run our app immediately by executing
  • 2:47
    php –S 127.0.0.1:8000 –t public
  • 2:55
    This starts the built-in PHP web server,
  • 2:58
    which is great for development.
  • 3:01
    Public is the document route of the project,
  • 3:04
    but more on that soon.
  • 3:07
    Time to blast off.
  • 3:09
    Move to your browser and go to localhost:8000.
  • 3:13
    Say hello to your new Symfony app.
  • 3:16
    Back in the terminal, I’ll create a new terminal tab.
  • 3:20
    Symfony already initialized a new git repository for us,
  • 3:24
    and gave us a perfect gitignore file.
  • 3:28
    Thanks, Symfony!
  • 3:29
    That means we can create our first commit
  • 3:32
    just by saying git add. git commit.
  • 3:38
    Create a calm and well-thought out commit message.
  • 3:44
    Whoa! Check this out!
  • 3:46
    The entire project,
  • 3:48
    including Composer and gitignore stuff is only 16 files.
  • 3:54
    Our app is teeny tiny.
  • 3:57
    Let’s learn more about our project next
  • 4:00
    and set up our Editor to make Symfony development amazing.

Symfony 4: Let's Launch!

Loading...

Let's get started with Symfony 4 development. In this tutorial, we'll download and install Symfony with Composer.

Downloads: 
Log in or sign up to download companion files.