Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Create Symfony Project

Even though the command has skeleton in it, it looks pretty heavy from the number of packages it includes.

composer create-project symfony/website-skeleton my-web-project

When you try to run it with either php -S 127.0.0.1:8000 -t public or bin/console server:run you will be shown an error page, so either your expected to configure something differently immediately, or something went wrong.

4.x API or CLI Application (LTS)

If you want to install a more stripped down version of symfony for a CLI tool or API, then you can use this instead.

composer create-project symfony/skeleton my-api-or-cli-tool

You can quickly see the framework running by navigating to within the project directory and running:

php -S localhost:8000 -t public

... before then navigating to http://127.0.0.1:8000 inside your web browser.

Last updated: 16th September 2021
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch