eonx-com/easy-decision

Your most complex decisions taken the easiest way

Installs: 5 255

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v2.5.8 2020-09-24 10:30 UTC

This package is auto-updated.

Last update: 2020-09-29 14:57:13 UTC


README

Your most complex decisions made the easiest way.

Roadmap

  • Yes/No Decision: Give input -> Rules -> True/False
  • Value Decision: Give input -> Rules -> Get output
  • Specific functions per decision type
  • Common functions to all decision types
  • Yes/No decision have different strategies:
  • affirmative: Yes as soon as first rule says yes
  • consensus: Yes if more yes than no
  • unanimous: Yes if everybody says yes
  • Priority on rules: Run first the rules with smallest priority
  • Rules can say if they support the given input
  • After run users can get which rules ran, their body and output
  • Test the Laravel Decision Factory
  • Improve config file with some examples
  • Create a PHP methods expression functions provider as helper
  • Create documentation

Documentation

Laravel / Lumen