1. Go to this page and download the library: Download vherus/depot 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/ */
vherus / depot example snippets
$bus = new Depot\Bus\NativeCommandBus(new Depot\Resolution\NativeNamespaceResolver);
$bus->dispatch(new My\Command);
namespace My;
class Command implements Depot\Command { }
namespace My\Handler;
class CommandHandler
{
public function handle(My\Command $command) { }
}