Page 1 of 1

PSR 4 and composer .... autoloading

Posted: Wed Oct 14, 2015 9:14 am
by gautamz07
Hey just saw this tutorial online HERE https://www.youtube.com/watch?v=VGSerlMoIrY ,

so all modern frameworks or PHP projects use PSR-4 and composer to auto-load ?

basically my question is about autoloading and what is the best mechanism to autoload in PHP ?

Re: PSR 4 and composer .... autoloading

Posted: Wed Oct 14, 2015 9:17 am
by Celauran
Set up PSR-4 autoloading through Composer and you're done. That really is the standard.

Re: PSR 4 and composer .... autoloading

Posted: Thu Oct 15, 2015 2:54 pm
by gautamz07
Thanks ... all setup https://github.com/gautamz07/PSR-4/ :D , just a simple example that shows how to use composer and PSR-4 to autoload .