public static function generate(String $name) : Bool
    {
        Post::project($name);

        $validation = Singleton::class('ZN\Validation\Data');

        $validation->rules('project', ['alpha'], 'Project Name');

        if( ! $error = $validation->error('string') )
        {
            $source = EXTERNAL_FILES_DIR . 'DefaultProject.zip';
            $target = PROJECTS_DIR . Post::project();

            Forge::zipExtract($source, $target);

            return true;
        }

        return false;
    }
public static function generate(String $name) : Bool
    {
        Post::project($name);

        $validation = Singleton::class('ZN\Validation\Data');

        $validation->rules('project', ['alpha'], 'Project Name');

        if( ! $error = $validation->error('string') )
        {
            $source = EXTERNAL_FILES_DIR . 'DefaultProject.zip';
            $target = PROJECTS_DIR . Post::project();

            Forge::zipExtract($source, $target);

            return true;
        }

        return false;
    }
public static function generate ( String $ name ) : Bool { Post :: project ( $ name ) ; $ validation = Singleton :: class ( 'ZN\Validation\Data' ) ; $ validation -> rules ( 'project' , [ 'alpha' ] , 'Project Name' ) ; if ( ! $ error = $ validation -> error ( 'string' ) ) { $ source = EXTERNAL_FILES_DIR . 'DefaultProject.zip' ; $ target = PROJECTS_DIR . Post :: project ( ) ; Forge :: zipExtract ( $ source , $ target ) ; return true ; } return false ; }
Select project name

@param string $name

@return bool
Select project name