PHP code example of mathsgod / r-db-eventlog

1. Go to this page and download the library: Download mathsgod/r-db-eventlog 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/ */

    

mathsgod / r-db-eventlog example snippets


$schema = \R\DB\Model::GetSchema();

$subscriber = new ListenerSubscriber();

$subscriber->setUserId(1);

$schema->eventDispatcher()->subscribeListenersFrom($subscriber);