Setup Symfony
Introduction
Minible is built with Bootstrap v5.3.2 and Symfony v6.0 with developer friendly code. You can simply change the layouts and mode using this template.
Installation
Please follow below steps to install and setup the admin theme, follow below-mentioned steps:
-
Technical Requirements
Please check the Technical Requirements from the below link.
https://symfony.com/doc/current/setup.html#technical-requirements -
Composer
Make sure to have the Composer installed & running in your computer.
-
Install Symfony CLI
Please setup Symfony CLI regarding your operating system.
https://symfony.com/download
After you finished with the above steps, you can run the following commands into the terminal / command prompt from the root directory of the project to run the project locally or build for production use:
Command | Description |
---|---|
composer install
|
This would install all the required packages in
the vendor folder. If you getting any error when running composer install command, don't worry please continue with : composer update
|
symfony server:start
|
Runs the project locally. The development server is accessible at http://localhost:8000. |
symfony server:start --port=8001
|
If You Wish to Runs the project locally on Different Port. The development server is accessible at http://localhost:8001. |
Multi Language Settings
You can refer the below link for more details.
https://symfony.com/doc/current/the-fast-track/en/28-intl.html
You can refer the below link for User Locale.
https://symfony.com/doc/current/translation/locale.html
- Set default locale changes in config/packages/translation.yaml
- You can add or remove languages from the src/Controller/LanguageController.php Route array requirements = {"_locale"="en|es|de|it|ru"}
- You need to update or add folder of the new language in the
/translations
Folder - You simply use in the Templates / Twig File like the below example:
{% trans %}Symfony{% endtrans %}
{{ var|trans }}
Tips
If you are hosting on linux apache server then make sure to give path to public folder while hosting your project on server.