Skip to content
This repository was archived by the owner on Jun 24, 2026. It is now read-only.

Repository files navigation

POC Symfony

Prerequisites

  • The PHP version must be greater than or equal to PHP 8.4
  • The SQLite 3 extension must be enabled
  • The JSON extension must be enabled
  • The Ctype extension must be enabled
  • The date.timezone parameter must be defined in php.ini
  • Yarn command line

More information on symfony website.

Features developed

Symfony Vite is a tool to facilitate the development experience of modern web projects. It provides: a development server which allows, among other things, Hot Module Replacement 🔥 of generated code by taking advantage of ES modules, a build command which uses Rollup.

TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.

You can look at previous releases v1.3 for Webpack encore version.

Installation

Command lines:

# clone current repot
composer install

# (optional) Copy and edit configuration values ".env.local"

php bin/console doctrine:database:create
php bin/console doctrine:migrations:migrate -n

# Optional
php bin/console doctrine:fixtures:load -n

# Installation Assets
npm install
npm run dev
#npm run build # for production

For the asset symlink install, launch a terminal on administrator in windows environment.

Usage

Just execute this command to run the built-in web server (require symfony installer) and access the application in your browser at http://localhost:8000:

# Dev env
symfony server:start

# Test env
APP_ENV=test php -d variables_order=EGPCS -S 127.0.0.1:8000 -t public/

Alternatively, you can configure a web server like Nginx or Apache to run the application.

Your commit is checked by several dev tools (like phpstan, php cs fixer...). These tools were managed by Grumphp, you can edit configuration on file grumphp.yml or check manually with the command: ./vendor/bin/grumphp run.

About

POC for use typescript + bootstrap + vite (JS compilation) in symfony.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages