namespace App\Services;
class UserService { ... }
// In another file:
use App\Services\UserService;
$service = new UserService();The PSR-4 standard maps namespaces to directory structure: App\Services\UserService → app/Services/UserService.php. Composer automatically loads the file on first class access — no manual require needed.