PHP code example of eike / yacy

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

    

eike / yacy example snippets


// 5.1 style, still supported
$json = $event->getJson();
array_unshift($json['channels'][0]['items'], $item);
$event->setJson($json);

// 5.2 style
$event->getResult()->prependItem($item);