hecq-et-lesort/README.md
isUnknown b3760958a3 readme : mise à jour setup et php cs fixer
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 08:50:36 +02:00

30 lines
769 B
Markdown

# Setup the project
Requirements: PHP 8.4+, Composer, Node.js/npm.
## Install the dependencies
```bash
composer install
npm install
```
## Start the local server
```bash
npm run serve
```
Opens [localhost:3000](http://localhost:3000) (BrowserSync + PHP server on port 8000).
## PHP code style
The project uses [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) to format PHP code (PSR-12, single quotes, `=>` alignment).
**Format on save with VS Code / VS Codium:** install the [`junstyle.php-cs-fixer`](https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer) extension. The workspace config (`.vscode/settings.json`) automatically points to `vendor/bin/php-cs-fixer`.
**Run manually:**
```bash
./vendor/bin/php-cs-fixer fix
```