PHP code example of easyblue / rules-engine
1. Go to this page and download the library: Download easyblue/rules-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/ */
easyblue / rules-engine example snippets
return [
// ...
\Easyblue\RulesEngine\Symfony\RulesEngineBundle::class => ['all' => true],
];
php
use Easyblue\RulesEngine\Core\RulesEngine;
final class ProfileController {
public function __construct(private readonly RulesEngine $profileRulesEngine)
{
}
}