Chapters
36 Chapters
|
2:42:17
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!
Subscribe to download the code!
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"doctrine/dbal": "^3.10.0", // 3.10.0
"doctrine/doctrine-bundle": "^2.15", // 2.15.0
"doctrine/doctrine-migrations-bundle": "^3.4.2", // 3.4.2
"doctrine/orm": "^3.5.0", // 3.5.0
"league/commonmark": "^2.7.1", // 2.7.1
"symfony/asset": "7.3.*", // v7.3.0
"symfony/asset-mapper": "7.3.*", // v7.3.0
"symfony/console": "7.3.*", // v7.3.1
"symfony/crowdin-translation-provider": "7.3.*", // v7.3.0
"symfony/dotenv": "7.3.*", // v7.3.0
"symfony/flex": "^2.8.1", // v2.8.1
"symfony/framework-bundle": "7.3.*", // v7.3.1
"symfony/runtime": "7.3.*", // v7.3.1
"symfony/stimulus-bundle": "^2.28", // v2.28.0
"symfony/translation": "7.3.*", // v7.3.1
"symfony/twig-bundle": "7.3.*", // v7.3.1
"symfony/yaml": "7.3.*", // v7.3.1
"symfonycasts/object-translation-bundle": "@dev", // dev-_tuts/bundle/3-install-our-bundle
"symfonycasts/tailwind-bundle": "^0.10.1", // v0.10.1
"twig/extra-bundle": "^2.12|^3.21", // v3.21.0
"twig/markdown-extra": "^3.21", // v3.21.0
"twig/string-extra": "^3.21", // v3.21.0
"twig/twig": "^2.12|^3.21.1" // v3.21.1
},
"require-dev": {
"phpunit/phpunit": "^9.6.23", // 9.6.23
"symfony/browser-kit": "7.3.*", // v7.3.0
"symfony/css-selector": "7.3.*", // v7.3.0
"symfony/debug-bundle": "7.3.*", // v7.3.0
"symfony/maker-bundle": "^1.64", // v1.64.0
"symfony/monolog-bundle": "^3.10", // v3.10.0
"symfony/phpunit-bridge": "^7.3.1", // v7.3.1
"symfony/stopwatch": "7.3.*", // v7.3.0
"symfony/web-profiler-bundle": "7.3.*", // v7.3.1
"zenstruck/browser": "^1.9.1", // v1.9.1
"zenstruck/foundry": "^2.6.1" // v2.6.1
}
}
9 Comments
I have been building a bundle for a few months already, this tutorial would have been great to get started. I smashed my keyboard far too many times trying to work off of the docs on this topic. They are helpful, but this would have been far more helpful! There is a lot to figure out on bundles that isn't quite covered there. This tutorial already touches on a lot of those things, which is amazing!
I'm glad to hear that @Julian-K!
I think you should add a 23rd chapter: Publishing on Packagist
Hey @philippegamache!
It'll be later than 23 but yep, that's the plan!
Kevin, is it possible to bundle up stimulus controllers and other assets? I'm pretty sure some bundles I've used have twig controllers and themes, but I'm not sure about assets. I'm just starting out with Symfony, but the few projects I have all use turbo and stimulus.
Hey @JeffJones!
Yep, totally possible. Unfortunately it's out of the scope of the bundle we're working on this course so we won't be covering that specifically here.
For pre-compiled assets like images, css/js files, you can add them to a
publicdirectory in your bundle. Then, in apps, you runassets:install(this is done automatically by composer as long as you have symfony/asset installed + it's Flex recipe). This command symlinks these files to your app'spublic/bundles/<BundleName>directory.For stimulus controllers specifically, it's a bit more involved. Check this comment for some details.
Hope this helps!
Kevin
Thanks for the quick reply and detailed answer! This is great! I'm looking forward to learning how to build Bundles - already have a bunch of ideas planned out. Again, thanks for the info!
I'm eagerly awaiting the next lessons
Me too 😉
"Houston: no signs of life"
Start the conversation!