Uniform by @mzur

Why the uniform.php with this content is necessary?

<?php

use Uniform\Form;

// This file is called by Kirby if Uniform wasn't installed with Composer. In this case,
// use it's own vendor directory and autoload script.

if (!class_exists(form::class)) {
    require __DIR__.DS.'vendor'.DS.'autoload.php';
}

I’m afraid I don’t quite understand the question. The answer is given in the comment? The file is not needed if you install Uniform with composer.

Because I got this:

syntax error, unexpected ‘class’ (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or ‘{’ or ‘$’

You are probably using an old PHP version, the min requirement is 5.5

https://kirby-uniform.readthedocs.io/en/latest/#kirby-uniform-documentation