Forrest logo
back to the php tool

symfony:bundle:create

Create a Symfony bundle
$ php bin/console make:bundle
try on your machine

This command is used in Symfony framework and is used to create a new bundle. When we create a new bundle, Symfony creates a new directory with the same name as the bundle in the ‘src’ directory. The bundle is a collection of code that can be reused across multiple projects.

Here’s what each part of the command means:

  • php is simply invoking the PHP interpreter.
  • bin/console is a script in the root of Symfony that bootstraps everything needed for the console commands.
  • make:bundle is the name of the specific command. Its purpose is to generate boilerplate code needed for a new bundle.
This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the php tool