readme : réécriture
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b3760958a3
commit
f4c4cbbf83
1 changed files with 14 additions and 10 deletions
24
README.md
24
README.md
|
|
@ -1,29 +1,33 @@
|
|||
# Setup the project
|
||||
# Hecq & Lesort
|
||||
|
||||
Requirements: PHP 8.4+, Composer, Node.js/npm.
|
||||
Website built with [Kirby CMS](https://getkirby.com).
|
||||
|
||||
## Install the dependencies
|
||||
## Requirements
|
||||
|
||||
- PHP 8.2–8.5
|
||||
- Composer
|
||||
- Node.js / npm
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
composer install
|
||||
npm install
|
||||
```
|
||||
|
||||
## Start the local server
|
||||
## Dev server
|
||||
|
||||
```bash
|
||||
npm run serve
|
||||
```
|
||||
|
||||
Opens [localhost:3000](http://localhost:3000) (BrowserSync + PHP server on port 8000).
|
||||
Opens [localhost:3000](http://localhost:3000) (BrowserSync proxy on PHP's port 8000).
|
||||
|
||||
## PHP code style
|
||||
## 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).
|
||||
PHP files are formatted with [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) (included in `require-dev`).
|
||||
|
||||
**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:**
|
||||
Install the [`junstyle.php-cs-fixer`](https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer) VS Code extension for format on save. Or run manually:
|
||||
|
||||
```bash
|
||||
./vendor/bin/php-cs-fixer fix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue