for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace devtoolboxuk\cerberus;
class BaseOptions
{
public function getOptions()
if ($this->isYamlLoaded()) {
return yaml_parse_file(__DIR__ . '/Options.yml');
}
return [
'Detection' => [
'Rules' => [
'Bots' => [
'active' => 1,
'score' => 1,
'params' => 'sensu'
],
'Html' => [
'params' => '',
'Numeric' => [
'Url' => [
'DisposableEmail' => [
'score' => 10,
'InvalidEmail' => [
'QueryStringKey' => [
'QueryStringValue' => [
'DifferentCountry' => [
'Country' => [
'Xss' => [
]
];
private function isYamlLoaded()
return extension_loaded('yaml');