1<?php
2
3spl_autoload_register(function ($class) {
4    static $prefix = 'Vanderlee\\Sentence\\';
5    if (stripos($class, $prefix) === 0) {
6        $file = str_replace('\\', DIRECTORY_SEPARATOR,
7            dirname(__DIR__).'\\src\\'.str_ireplace($prefix, '', $class).'.php');
8        if (is_file($file)) {
9            /** @noinspection PhpIncludeInspection */
10            require_once $file;
11        }
12    }
13});