In what situations would it be more beneficial to manually include classes in PHP rather than using autoloaders like Composer?

In situations where you have a small project with only a few classes or where you want more control over the loading process, it may be more beneficial to manually include classes in PHP rather than using autoloaders like Composer. This can also be useful if you want to optimize performance by only loading the classes that are needed.

// Manually include classes in PHP
require_once 'path/to/Class1.php';
require_once 'path/to/Class2.php';

// Now you can use the classes
$obj1 = new Class1();
$obj2 = new Class2();