Generate avatar function in php | homemade CMS | Backend developer

Опубликовано: 14 Июнь 2026
на канале: Odlaproduction
1,356
14

Let's define the generate avatar function in php for the profile photo.

Hello everyone and welcome back to my channel, today, as promised in the last video guide, we continue the programming of the CMS and specifically we will create the generate avatar function in PHP which will allow us, if the user does not choose a personal image for your profile, to automatically generate a Google account style image with its own background color and in the center we will insert the initial letter of your username.

👇 SUBSCRIBE AND STAY UPDATED 👇
   / @odlaproduction  

Previous Video Guide:    • Pagina personalizza profilo personale | CM...  

#cms #layout #backenddeveloper

Download Link:
[Apache]: https://www.apachelounge.com/download/
[ Notepad++ ]: https://notepad-plus-plus.org/downloads/
[PHP]: https://www.php.net/downloads.php
[MySQL Server]: https://dev.mysql.com/downloads/mysql/
[ PhpMyAdmin ] : https://www.phpmyadmin.net/downloads/

My configuration:
[Apache]: v2.4.57
[PHP]: v8.2.8
[MySQL Server]: v8.0.33
[PhpMyAdmin]: v5.2.1

Video Chapters:
00:00 Intro
00:43 Let's create the background image
05:56 Let's write some text in the image
09:27 Change image text font
11:21 Let's customize the text
13:42 Center the text in the image
26:24 Generate avatar function
32:16 Test generates avatars
33:21 Outro