
Brandon T. answered 05/26/19
Web Developer with 2 years of experience
Absolutely,
You can use a JavaScript framework along with templating language if you wanted to accomplish this using only JavaScript and no PHP.
PHP certainly is not a requirement when developing a website and JavaScript has become very widespread and its frameworks are very popular.
I would recommend to you using NodeJS as a backend along with either VueJS or AngularJS in order to accomplish this easily. Of course, you don't need to use Node along side Vue or Angular - they aren't a requirement. Vue and Angular are both front-end frameworks that help with templating and using the MVC (Model View Controller) methodology.
If you didn't want to use a full framework like Vue or Angular you could also use Jade or Express as a templating language to simply allow you to build out front-end without adding any extra complexity you may not be ready to deal with.
If there is anything else you'd like to know feel free to ask. I hope that helped :)
Best,
Brandon T.