PHP code example of actra / yuf

1. Go to this page and download the library: Download actra/yuf library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

actra / yuf example snippets




App::fromEnvironment(envFilePath: __DIR__ . '/../.env.php', copyrightYear: 2026)
    ->withLanguage(code: 'de', locale: 'de_CH.UTF-8')
    ->withHtmlRoute(path: '/', viewGroup: 'frontend')
    ->withFileRoute(path: '/export/', viewGroup: 'export', contentType: ContentType::createCsv())
    ->run();