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 | ![]() |
It's is my preferred Linux distribution. Stable, easy to use and maintain. | |
Apache | 2.4 | ![]() |
I don't need extra performance so Apache is OK as the web server. It's stable and easy to configure. | |
MySQL | 5.7 | ![]() |
I think MySQL lives its last days on this blog. I am planning to switch to PostgreSQL soon. | |
PHP | 7.4 | ![]() |
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 excellent repositories of OndΕej SurΓ½. | |
Redis | 5.0 | ![]() |
In-memory data structure store I use here as a cache system and to store PHP sessions. | |
Symfony | 5.2 | The PHP framework for professionals. | ||
Docker | 19 | ![]() |
Unmissable Docker. I used it locally to have at my disposal the MySQL, Adminer, Elasticsearch, Elasticsearch Head, Kibana and Redis services. | |
Elasticsearch | 6.8 | ![]() |
You know, for search. Don't miss my three parts tutorial: Implementing a search engine with elasticsearch and Symfony. |
The frontend stack
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. |
|
lexik/jwt-authentication-bundle | Allows to generate and verify JWT token. Check out this article. |
Dev / DevOps / coding standards / static analysis
All is listed here corresponds to the require-dev
section of the composer file.
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 had 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": "beta",
"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": "*",
"ext-curl": "*",
"antishov/doctrine-extensions-bundle": "^1.4",
"api-platform/core": "^2.6",
"babdev/pagerfanta-bundle": "^2.1",
"composer/package-versions-deprecated": "1.11.99.1",
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "^2",
"doctrine/doctrine-fixtures-bundle": "^3.0",
"doctrine/doctrine-migrations-bundle": "^3.0",
"doctrine/orm": "^2",
"easycorp/easy-deploy-bundle": "^1.0",
"easycorp/easyadmin-bundle": "^3.0",
"egulias/email-validator": "^3.0",
"erusev/parsedown": "^1.7",
"fresh/doctrine-enum-bundle": "^7.1",
"friendsofsymfony/elastica-bundle": "v5.1.3",
"hautelook/alice-bundle": "^2.8",
"lexik/jwt-authentication-bundle": "^2.10",
"liip/imagine-bundle": "^2.1",
"mhujer/breadcrumbs-bundle": "^1.5",
"nelmio/cors-bundle": "^2.1",
"phpdocumentor/reflection-docblock": "^5.2",
"predis/predis": "^1.0",
"ramsey/uuid-doctrine": "^1.6",
"sensio/framework-extra-bundle": "^6.0",
"sensiolabs/ansi-to-html": "^1.1",
"snc/redis-bundle": "~3.0",
"symfony/asset": "^5.2",
"symfony/cache": "^5.2",
"symfony/console": "^5.2",
"symfony/dotenv": "^5.2",
"symfony/error-handler": "^5.2",
"symfony/expression-language": "^5.2",
"symfony/flex": "^1.3",
"symfony/form": "^5.2",
"symfony/framework-bundle": "^5.2",
"symfony/http-client": "^5.2",
"symfony/http-kernel": "^5.2",
"symfony/mime": "5.2.*",
"symfony/monolog-bundle": "^3.4",
"symfony/process": "^5.2",
"symfony/property-access": "5.2.*",
"symfony/property-info": "5.2.*",
"symfony/rate-limiter": "5.2.*",
"symfony/requirements-checker": "^2.0",
"symfony/security-bundle": "^5.2",
"symfony/serializer": "5.2.*",
"symfony/stopwatch": "5.2.*",
"symfony/string": "^5.2",
"symfony/thanks": "^1.1",
"symfony/twig-bundle": "^5.2",
"symfony/validator": "^5.2",
"symfony/web-link": "^5.2",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "^5.2",
"twig/extra-bundle": "^2.12|^3.0",
"twig/markdown-extra": "^3.0",
"twig/twig": "^2.12|^3.0"
},
"require-dev": {
"brianium/paratest": "^6.1",
"dbrekelmans/bdi": "^0.3.0",
"ekino/phpstan-banned-code": "^0.3.1",
"friendsofphp/php-cs-fixer": "^2.16",
"justinrainbow/json-schema": "^5.2",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan-deprecation-rules": "^0.12.5",
"phpstan/phpstan-doctrine": "^0.12.33",
"phpstan/phpstan-strict-rules": "^0.12.9",
"phpstan/phpstan-symfony": "^0.12",
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "^5.2",
"symfony/css-selector": "^5.2",
"symfony/debug-bundle": "5.2.*",
"symfony/maker-bundle": "^1.0",
"symfony/panther": "^1.0",
"symfony/phpunit-bridge": "^5.2",
"symfony/var-dumper": "5.2.*",
"symfony/web-profiler-bundle": "5.2.*",
"zenstruck/browser": "^0.4.0"
},
"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.2.*"
}
},
"scripts": {
"auto-scripts": {
},
"post-install-cmd": [
"@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
]
}
}