Chapters
23 Chapters
|
2:07:02
|
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!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=8.2",
"ext-ctype": "*",
"ext-iconv": "*",
"babdev/pagerfanta-bundle": "^4.0", // v4.2.0
"doctrine/doctrine-bundle": "^2.7", // 2.10.0
"doctrine/doctrine-migrations-bundle": "^3.2", // 3.2.4
"doctrine/orm": "^2.12", // 2.15.2
"knplabs/knp-time-bundle": "^1.18", // v1.20.0
"pagerfanta/doctrine-orm-adapter": "^4.0", // v4.1.0
"pagerfanta/twig": "^4.0", // v4.1.0
"stof/doctrine-extensions-bundle": "^1.7", // v1.7.1
"symfony/asset": "6.3.*", // v6.3.0
"symfony/asset-mapper": "6.3.*", // v6.3.0
"symfony/console": "6.3.*", // v6.3.0
"symfony/dotenv": "6.3.*", // v6.3.0
"symfony/flex": "^2", // v2.3.1
"symfony/framework-bundle": "6.3.*", // v6.3.0
"symfony/http-client": "6.3.*", // v6.3.0
"symfony/monolog-bundle": "^3.0", // v3.8.0
"symfony/proxy-manager-bridge": "6.3.*", // v6.3.0
"symfony/runtime": "6.3.*", // v6.3.0
"symfony/stimulus-bundle": "^2.9", // v2.9.1
"symfony/twig-bundle": "6.3.*", // v6.3.0
"symfony/ux-turbo": "^2.9", // v2.9.1
"symfony/web-link": "6.3.*", // v6.3.0
"symfony/yaml": "6.3.*", // v6.3.0
"twig/extra-bundle": "^2.12|^3.0", // v3.6.1
"twig/twig": "^2.12|^3.0" // v3.6.1
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.4", // 3.4.4
"symfony/debug-bundle": "6.3.*", // v6.3.0
"symfony/maker-bundle": "^1.41", // v1.49.0
"symfony/stopwatch": "6.3.*", // v6.3.0
"symfony/web-profiler-bundle": "6.3.*", // v6.3.0
"zenstruck/foundry": "^1.21" // v1.33.0
}
}
7 Comments
I confirm that the indexation issue on Jsdeliver has been fixed ! See here
Hey @Amelielecoz ,
Thanks for confirming it! Great news :)
Cheers!
Hi - I want to use the free fontawesome package. Therefore I have added it via
bin/console importmap:require @fortawesome/fontawesome-free. But I only see the corresponding css file within the vendors folder. Do I have to manually download the font file and place it insidepublic/orassets/?Hey @Sucram!
For FontAwesome, I prefer to use their "kits" https://fontawesome.com/docs/web/setup/use-kit. And also, soon, we will release an icon package for Symfony UX so you can easily render svg icons (which are better for accessibility and performance) :).
But if you wanted to install it with
importmap:require, what you want is a CSS file. And so you can't require@fortawesome/fontawesome-free, as that will always give you a JavaScript file (I'm not sure what that js file would be for fontawesome - but not what). For CSS files, I use jsdelivr to browse the package - https://www.jsdelivr.com/package/npm/@fortawesome/fontawesome-free?tab=files - e.g. https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.5.1/css/all.cssTo grab that file, run:
Iirc, that will also download the font files needed.
Let me know if that helps!
Cheers!
Hi @Ryan,
thanks for your detailed response!
That totally did it.
Up to now I used webpack together with yarn and I was a little bit confused because yarn fetches the complete package with all files and at first glance
importmap:requireseems to be a equivalent for me.Anyway - I have to get used to the asset mapper and have to take a deeper look into the documentation.
Thanks for your feedback and btw - I really love your tutorials!
Cheers - Marcus!
i wonder how to proceed to store the fonts locally and not retrieve them from a CND.
Hey @Rufnex,
You can just download any font you need to you
public/orassets/directory and create your own css file to use themCheers!
"Houston: no signs of life"
Start the conversation!