PHP code example of ausus / entity-engine
1. Go to this page and download the library: Download ausus/entity-engine 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/ */
ausus / entity-engine example snippets
use Ausus\Engine\Runtime\DefaultEntityEngine;
use Ausus\Engine\Runtime\DefaultAuthorizationEvaluator;
$engine = new DefaultEntityEngine(new DefaultAuthorizationEvaluator(), $repository);
$runtime = $engine->bind($repository->resolve('customer'), $driver);
$runtime->invoke('create', ['name' => 'Globex'], $context);