DEV Community

Discussion on: You don’t necessarily need Composer

thinkverse profile image
Kim Hallberg Author

I completely agree with the statement "If you don't have dependencies and all you need is auto load". That is what this post is meant to demonstrate. I've seen many projects that don't use any external packages use Composer just for their autoloading - which I can admit I've done myself before.

After reading a bit on autoloading though, I found out that implementing simple autoloading wasn't that difficult thing to do, hence this post. I can admit though the title was a cheeky attempt to be a bit provocative. And yes, Composer does more than just autoloading, it's a package manager after all. But as I state in the post - "If your project already requires packages from other sources via Composer, then it's best to stick with Composer...". This post is all about implementing simple autoloading after all, not package management.