PHP code example of yakamara / yrewrite

1. Go to this page and download the library: Download yakamara/yrewrite 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/ */

    

yakamara / yrewrite example snippets


use Yakamara\YRewrite\Seo;

$seo = new Seo();
echo $seo->getTags();

use Yakamara\YRewrite\YRewrite;
use Redaxo\Core\Filesystem\Url;

echo Url::article(42, 1);                  // sprechende URL eines Artikels
echo YRewrite::getCurrentDomain()?->getName();
bash
   php bin/console addon:install yrewrite