mirror of
https://github.com/symfony/ux.symfony.com.git
synced 2026-03-24 00:02:09 +01:00
main
ux.symfony.com
Source code for ux.symfony.com.
Installation
Forking the repository
To contribute to the website, you need to fork the symfony/ux.symfony.com repository on GitHub. This will give you a copy of the code under your GitHub user account. Read the documentation "How to fork a repository".
After forking the repository, you can clone it to your local machine:
# Using GitHub CLI https://cli.github.com/
$ gh repo clone <USERNAME>/ux.symfony.com ux.symfony.com
# Using SSH
$ git clone git@github.com:<USERNAME>/ux.symfony.com.git ux.symfony.com
$ cd ux.symfony.com
# Add the upstream repository, to keep your fork up-to-date
$ git remote add upstream git@github.com:symfony/ux.symfony.com.git
Setting up the development environment
To set up the development environment, you need the following tools:
- PHP 8.5 or higher - Required for running the Symfony application
- Composer - PHP dependency manager
- Symfony CLI - Recommended for running the development server
- Docker - For running services (database, etc.)
With these tools installed, you can install the project dependencies:
# Install PHP dependencies
symfony composer install
Running the website locally
To run the website in local development:
symfony serve --open
# The website will be accessible at https://127.0.0.1:9044/
Database
Run database migrations:
symfony console doctrine:migration:migrate
Populate the database:
symfony console app:load-data
Assets
Download the importmap packages locally:
symfony console importmap:install
Testing
symfony php bin/phpunit
Languages
PHP
55%
Twig
29.8%
SCSS
11.5%
JavaScript
2.4%
CSS
1.1%
Other
0.2%