Back to Website Development
Website Development

Composer autoload not finding my classes

Posted on May 13, 2026, 2:10 pm • 335 Views
I added a new class in the src/ folder but PHP says "Class not found". My namespace matches.
Run `composer dump-autoload` in your terminal. Composer needs to regenerate the autoload classmap whenever you add new files.

You must be logged in to reply to this topic.

Login Register