A friend called Pablo told me to learn WordPress CMS but another friend called Lucas told me to learn Strapi CMS because server side rendering and PHP in general are dying in favor of frontend side rendering with tools like react, angular or vue.
I do not want your opinion because opinions are strictly forbidden on this platform and they will make moderators close this question.
I really like PHP and cannot imagine a world without it.
But if you know better than me the objective factual non-opinionated tendency of web development and can help me take the smartest decision, I will be very happy today.
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
Do not worry about the future of PHP, it’s here to stay. It powers more than 75% of websites as of 2021. The frontend rendering frameworks and libraries keep changing and most of them end up being passing fads, although it will be vital to learn those that are being used extensively e.g. React, Vue, Angular etc.
Here’s a link from Zend that delves deeper into the future of PHP.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0