An Intrusion Detection System library loosely based on PHP IDS