-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Massimiliano Arione edited this page Oct 26, 2020
·
9 revisions
This project is meant to create a new Symfony project, using a newer directory structure. Currently, it allows:
- to create a Symfony 2.8 project with Symfony 3 directory structure
- to create a Symfony 3.4 with Symfony 4 directory structure
- execute
composer create-project beelab/symfony-beelab yourDir
(where "yourDir" is the path of the directory where you want to create the project). Alternatively, if can clone this project and then remove.git
directory. If you want to use a specific branch, use the following example:git clone [email protected]:Bee-Lab/symfony-beelab.git --branch garak --single-branch yourDir
- replace the content of
README.md
with your instructions for the project. This is important, since anyone should be able to be up&running on your project in (almost) zero time! - feel free to remove
LICENSE
, or to replace it with your license - replace the content of
composer.json
andpackage.json
with your actual project name, description, authors, etc. - replace "customize" with your project's name in relevant files. You can use the following script in terminal (assuming your project is named "myproject"):
find . -type f -exec sed -i 's/customize/myproject/g' {} \;
Execute the same steps above, but changing the command in the first step: use composer create-project --prefer-dist --stability=dev beelab/symfony-beelab:dev-sf4dir yourDir
instead
In the last step, the configuration directory is config
instead of app/config
.
If you need translations, create a translations
directory in the project root. Otherwise, remove the config/packages/translations.yaml
file.