Both are awesome to handle backend logic, and also scalable, NodeJS makes it easy if you want to learn only one language (js) to handle backend and frontend, php is greate and have an easy learning path, but the most important is to write cleaner and easy to maintain code either in nodejs or php. PS: NodeJs is not a framwork, it's a runtime environment for JavaScript
Both are awesome to handle backend logic, and also scalable, NodeJS makes it easy if you want to learn only one language (js) to handle backend and frontend, php is greate and have an easy learning path, but the most important is to write cleaner and easy to maintain code either in nodejs or php.
PS: NodeJs is not a framwork, it's a runtime environment for JavaScript
Exactly writing clean and easy to maintain code. Thanks a lot for the review.