[Symfony] how to create own reusable bundle

1. Create new empty symfony project

First, create new empty symfony project

This will create basic symfony project structure for you.

2. Create new bundle

Auto-generate vanilla bundle with:

continue with the wizard and answer all the questions .

This should also register your new bundle in the app.

3. Develop the bundle

Add features to the bundle and commit all the changes.

4. Use the bundle elsewhere

To use the bundle in another project you will have to either post it to packagist or use composer VCS: