Skip to content

PHP-Alchemist/RulerBundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RulerBundle


StyleCI

A Symfony bundle for Ruler

Installation

Prior to adding the RulerBundle, you will need to add the PHPAlchemist symfony recipes repo to your configuration. To do so, add the following to your composer.json file:

{
 //...
"extra": {
    "symfony": {
      "endpoint": [
        "https://api.github.com/repos/PHP-Alchemist/symfony-recipes/contents/index.json",
        "flex://defaults"
      ]
    }
  }
}

Next you can require the bundle:

composer require php-alchemist/ruler-bundle 

Configuration

In your config/packages folder you should now find a php_alchemist_ruler.yaml file. The contents should resemble:

php_alchemist_ruler:
  ruler:
    operators: ~

If you have a namespace in which you have custom operators, here is where you will configure that. The operators option should be filled in with that namespace. Such as:

php_alchemist_ruler:
  ruler:
    operators: 'App\Rules\Operators'

This namespace will be automatically added to your RuleBuilder if being called from the Symfony service container.

About

A Symfony bundle for Ruler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages