How to be a PHP developer?

What should I learn to be a PHP developer? & How much time it’s enough to learn?

learn the basics and fundamentals of PHP Programming for example the language of programming, know the PHP best practices and designs. Be comfortable with composer, PSR and PHP Unit. I think it takes about 3 to 6 months depending on the time you commit.