PHP code example of linkorb / app-event

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

    

linkorb / app-event example snippets



class MyService implements AppEventLoggerAwareInterface,
    AppEventLoggerInterface
{
    use AppEventLoggerTrait;

    public function doSomething()
    {
        // ... do something ...
        $this->log('something.was.done', ['some-info' => '...', 'more' => ...]);
    }
}