The project stack

Here is the technical stack I use on this project. Lots of open-source of course, what else? 😜 As you can see, the base is a LAMP stack (Linux, Apache, MySQL, PHP).
As I have already migrated the project to Symfony 5, you are sure that the bundles listed here support it. This is very important if you start a project from scratch. Choose your bundles very wisely... or it could turn into a nightmare later! πŸ˜‡

The main components

Name Version Logo Notes
Linux Ubuntu Server 18.04 LTS <b>L</b>inux It's is my preferred Linux distribution. Stable, easy to use and maintain.
Apache 2.4 <b>A</b>pache I don't need extra performance so Apache is OK as the web server. It's stable and easy to configure.
MySQL 5.7 <b>M</b>ySQL I think MySQL lives its last days on this blog. I am planning to switch to PostgreSQL soon.
PHP 7.4 <b>P</b>HP PHP isn't the "ugly" and mocked language it was 15 years ago anymore. It is now mature and it's ecosystem with composer is amazing. To have the latest PHP version, I use the execellent repositories of OndΕ™ej SurΓ½.
Redis 5.0 Redis In-memory data structure store I use here as a cache system and to store PHP sessions.
Symfony 5.1 Symfony The PHP framework for professionals.
Docker 19 Docker Unmissable Docker. I used it locally to have at my disposal the MySQL, Adminer, Elasticsearch, Elasticsearch Head, Kibana and Redis services.
Elasticsearch 6.8 Elasticsearch You know, for search. Don't miss my three parts tutorial: Implementing a search engine with elasticsearch and Symfony.

The frontend stack

Name Logo Notes
Vue.js Vue.js Vue.js is THE Progressive JavaScript Framework. I am seriously playing with it since 2020, and it I must say it's impressive. It opens infinite possibilities and radically changes the way you develop websites.
Yarn Yarn Yarn is a JavaScript package manager and an alternative to NPM. I wanted to give a try, and I'm not disappointed. It's faster than NPM and works with a .lock file, so you don't have surprises when installing the package on different servers.
Webpack Webpack Webpack bundles your assets: images, CSS and JavasSript in the most optimized possible way. It makes it the perfect companion for Vue.js and all your JavaScript code.
Material Kit Pro Material Kit Pro Material Kit is an excellent HTML framework based on Bootstrap. It allows me to have a clean design without creating custom CSS.

The Symfony bundles

I won't list here all the Symony components I use. Check out the full composer.json file below to have the exhaustive list. Perhaps I can mention the symfony/string because it's new and it's not available for Symfony 4. This is one of the main reason I wanted the blog to be upgraded to Symfony 5 so I can use this new powerful component.

Name Notes
antishov/doctrine-extensions-bundle Fork of stof/doctrine-extensions-bundle that is compatible with Symfony 5.
babdev/pagerfanta-bundle Fork of whiteoctober/WhiteOctoberPagerfantaBundle that is compatible with Symfony 5.
doctrine/doctrine-bundle Bundle for all the Doctrine ORM stuff.
doctrine/doctrine-fixtures-bundle Allows to load development fixtures in the database.
easycorp/easyadmin-bundle The most easy to use admin generator for Doctrine.
egulias/email-validator Not a bundle but allows to use the strict mode when using the Symfony email validator.
friendsofsymfony/elastica-bundle Integrates the PHP Elastica library in your Symfony project.
liip/imagine-bundle Provides an image manipulation abstraction toolkit.
mhujer/breadcrumbs-bundle Fork of whiteoctober/BreadcrumbsBundle that is compatible with Symfony 5.
snc/redis-bundle Integrates the PHP predis library in your Symfony application.

Dev / DevOps / coding standards / static analysis

All is listed here corresponds to the require-dev section of the composer file.

Name Notes
easycorp/easy-deploy-bundle Generates a PHP data model from the schema.org vocabulary.
phpstan/phpstan Easiest way to deploy your Symfony application without downtime.
phpstan/phpstan-symfony Static code analysis to find errors in your code without actually running it.
roave/security-advisories It's the Symfony plugin for PHPStan so it's aware of specific Symfony stuff like the dependency injection container.
squizlabs/php_codesniffer This is a library every project should contain. It ensures that your application doesn't have installed dependencies with known security vulnerabilities.

The full composer.json file

As you can see there is a little "hack", so I can use my fork of the FOSElasticaBundle instead of the official one. I add to do this because the official bundle is not compatible yet with Symfony 5.

{
    "type": "project",
    "license": "proprietary",
    "name": "coil/strangebuzz",
    "description": "Strangebuzz.com blog",
    "minimum-stability": "stable",
    "prefer-stable": true,
    "repositories": {
        "coil_foselasticabundle": {
            "type": "vcs",
            "url": "git@github.com:COil/FOSElasticaBundle.git"
        }
    },
    "require": {
        "php": ">=7.4.0",
        "ext-ctype": "*",
        "ext-dom": "*",
        "ext-filter": "*",
        "ext-gd": "*",
        "ext-iconv": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "ext-pdo": "*",
        "antishov/doctrine-extensions-bundle": "^1.4",
        "babdev/pagerfanta-bundle": "^2.1",
        "composer/package-versions-deprecated": "*",
        "doctrine/doctrine-bundle": "^2",
        "doctrine/doctrine-fixtures-bundle": "^3.0",
        "doctrine/orm": "^2",
        "easycorp/easyadmin-bundle": "^3.0",
        "easycorp/easy-deploy-bundle": "^1.0",
        "egulias/email-validator": "^2.1",
        "erusev/parsedown": "^1.7",
        "friendsofsymfony/elastica-bundle": "^5.1",
        "liip/imagine-bundle": "^2.1",
        "mhujer/breadcrumbs-bundle": "^1.5",
        "predis/predis": "^1.0",
        "sensio/framework-extra-bundle": "^5.5",
        "sensiolabs/ansi-to-html": "^1.1",
        "snc/redis-bundle": "~3.0",
        "symfony/asset": "^5.1",
        "symfony/cache": "^5.1",
        "symfony/console": "^5.1",
        "symfony/debug-pack": "^1.0",
        "symfony/dotenv": "^5.1",
        "symfony/error-handler": "^5.1",
        "symfony/expression-language": "^5.1",
        "symfony/flex": "^1.3",
        "symfony/form": "^5.1",
        "symfony/framework-bundle": "^5.1",
        "symfony/http-client": "^5.1",
        "symfony/http-kernel": "^5.1",
        "symfony/mime": "5.1.*",
        "symfony/monolog-bundle": "^3.4",
        "symfony/process": "^5.1",
        "symfony/requirements-checker": "^1.1",
        "symfony/security-bundle": "^5.1",
        "symfony/serializer-pack": "*",
        "symfony/string": "^5.1",
        "symfony/thanks": "^1.1",
        "symfony/twig-bundle": "^5.1",
        "symfony/validator": "^5.1",
        "symfony/web-link": "^5.1",
        "symfony/webpack-encore-bundle": "^1.7",
        "symfony/yaml": "^5.1",
        "twig/extra-bundle": "^2.12|^3.0",
        "twig/markdown-extra": "^3.0",
        "twig/twig": "^2.12|^3.0"
    },
    "require-dev": {
        "phpstan/phpstan": "^0.12",
        "phpstan/phpstan-symfony": "^0.12",
        "phpunit/phpunit": "^9.1",
        "roave/security-advisories": "dev-master",
        "squizlabs/php_codesniffer": "3.*",
        "symfony/browser-kit": "^5.1",
        "symfony/css-selector": "^5.1",
        "symfony/maker-bundle": "^1.9",
        "symfony/phpunit-bridge": "^5.1",
        "symfony/profiler-pack": "*"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true,
        "platform": {
            "php": "7.4"
        }
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "replace": {
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": true,
            "require": "5.1.*"
        }
    },
    "scripts": {
        "auto-scripts": {
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    }
}