phil/websymfony

A template to initialize an web application to use Symfony 7.0

7.0.1 2024-02-29 02:42 UTC

This package is auto-updated.

Last update: 2024-03-29 02:58:35 UTC


README

Proclaim Honestly, Interact LiberallyWebSymfony is a Symfony 7.0 application skeleton on steroids, ready to use.

The purpose of WebSymfony is to provide a sandbox with some sensible defaults and ready to use. It can be a solution if you want to quickly set up something, create a POC, test things, and even make a small "one-page" application.

It was base on strangebuzz/MicroSymfony with adjustment we're usually adding on all our projects. We also remove many examples.

Demo 🌈

Because a live demo is always better than all explanations. Here is it:

Requirements ⛮

All “Proclaim Honestly, Interact Liberally” project will use the latest version within 1 or 2 months depending on dependencies availability.

Optional requirements ⚙

  • The Xdebug PHP extension if you want to run the code coverage report (optional but recommended)
  • Castor 0.9.1 task runner (optional)

Stack 🔗

All “Proclaim Honestly, Interact Liberally” project will use the latest version within 1 or 2 months depending on dependencies availability.

Features 🚀

WebSymfony ships these features, ready to use:

Other good practices 👌

Initializing an application with WebSymfony 🪄

Initializing using composer

As the application template is registered on Packagist, you can use composer to install it with the following command:

$ composer create-project phil/websymfony

It creates a websymfony directory with the new project. In this case, you must set up Git and a repository yourself. But that's the fastest way to test it.

Note that the composer install command downloads all the required dependencies and builds the assets.

Initializing from Github site

Or use the GitHub template:

Use this template button

Initializing from Github CLI

$ gh repo create my-project --clone --private --template parler-haut-interagir-librement/WebSymfony

Serving the application

To serve the application with the Symfony binary, run:

$ symfony server:start --daemon

or use the castor command

$ castor symfony:start

The application is now available at https://127.0.0.1:8000 (considering your 8000 port is available).

References 📚

Others “Proclaim Honestly, Interact Liberally” Skeletons 🩻

  • MicroSymfony

    • Task runner
      • Castor
    • Static Analysis
      • PHPStan
    • Coding standards
      • php-cs-fixer
    • Refactoring
      • Rector
    • Debug toolbar
    • Tests
      • Unit test
      • Integration test
      • Functional test
      • API test
      • E2E test
    • GitHub CI
    • Asset mapper
    • Stimulus
    • Symfony Maker
    • Custom error template
  • ApiSymfony

    • API Platform
    • Task runner
      • Castor
    • Static Analysis
      • PHPStan
    • Coding standards
      • php-cs-fixer
    • Refactoring
      • Rector
    • Tests
      • Unit test
      • API test
      • E2E test
    • GitHub CI
    • Symfony Maker
  • WebSkeleton

    • WebSymfony +
    • CSS framework
      • Tailwind CSS
      • DaisyUI : Add semantic to Tailwind CSS
    • Proclaim Honestly, Interact Liberally” Bundles
      • phil-ux - Add Base Twig Components
        • Install Tailwind CSS and DaisyUI
        • Add Base Twig Components using DaisyUI semantic
      • PhilDoctrineExtensionStofBundle - Add missing stuff to StofDoctrineExtensionsBundle
      • PhilDoctrineExtensionPublishBundle - Add Publish functionality to Doctrine Entity
    • more.