769 B
769 B
Setup the project
Requirements: PHP 8.4+, Composer, Node.js/npm.
Install the dependencies
composer install
npm install
Start the local server
npm run serve
Opens localhost:3000 (BrowserSync + PHP server on port 8000).
PHP code style
The project uses 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 extension. The workspace config (.vscode/settings.json) automatically points to vendor/bin/php-cs-fixer.
Run manually:
./vendor/bin/php-cs-fixer fix