ids-rule-parser
Lightweight PHP library to parse IDS rules (Suricata or Snort). Port of py-suricataparser.
Installation:
composer require titoshadow/ids-rule-parserExample:
use Titoshadow\IdsRuleParser\RuleParser;
$parser = new RuleParser();$rule = $parser->parse('alert http any any -> any any (msg:"Test"; sid:1; rev:1;)');