Skip to content

ids-rule-parser

Lightweight PHP library to parse IDS rules (Suricata or Snort). Port of py-suricataparser.

Installation:

Terminal window
composer require titoshadow/ids-rule-parser

Example:

use Titoshadow\IdsRuleParser\RuleParser;
$parser = new RuleParser();
$rule = $parser->parse('alert http any any -> any any (msg:"Test"; sid:1; rev:1;)');