almost always you want the composer autoloader loaded before yii, so this line should be more like:

    require_once(__DIR__.'/../vendor/autoload.php');

otherwise people will run into problems