PHPackages                             phpids/phpids - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. phpids/phpids

ActiveLibrary[Security](/categories/security)

phpids/phpids
=============

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application

793146.4k↓33.3%221[33 issues](https://github.com/PHPIDS/PHPIDS/issues)[1 PRs](https://github.com/PHPIDS/PHPIDS/pulls)2PHP

Since Sep 3Pushed 10y ago87 watchersCompare

[ Source](https://github.com/PHPIDS/PHPIDS)[ Packagist](https://packagist.org/packages/phpids/phpids)[ RSS](/packages/phpids-phpids/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (2)

[![Build Status](https://camo.githubusercontent.com/225d9353ec4ffdcde56eb6a835c3b9b08c0169d24f4c823d3760539723bcd390/68747470733a2f2f7472617669732d63692e6f72672f5048504944532f5048504944532e706e67)](https://travis-ci.org/PHPIDS/PHPIDS)

PHPIDS
======

[](#phpids)

PHPIDS (PHP-Intrusion Detection System) is a simple to use, well structured, fast and state-of-the-art security layer for your PHP based web application. The IDS **neither strips, sanitizes nor filters any malicious input**, it simply recognizes when an attacker tries to break your site and reacts in exactly the way you want it to. Based on a set of approved and heavily tested filter rules any attack is given a numerical impact rating which makes it easy to decide what kind of action should follow the hacking attempt. This could range from simple logging to sending out an emergency mail to the development team, displaying a warning message for the attacker or even ending the user’s session.

PHPIDS enables you to see who’s attacking your site and how and all without the tedious trawling of logfiles or searching hacker forums for your domain. Last but not least it’s licensed under the fair LGPL!

Contributions
-------------

[](#contributions)

If you would like to contribute, please open a pull request. If you need something to do, have a look at our [open issues](https://github.com/PHPIDS/PHPIDS/issues).

Credits
-------

[](#credits)

The project was started by Christian Matthies  and Mario Heiderich . Mario spend a lot of time maintaining PHPIDS mostly on his own. Huge props for that. Currently Lars Strojny merges pull requests.

### An incomplete list of contributors:

[](#an-incomplete-list-of-contributors)

- **LeverOne** for his outstanding work, testing and XSS vectors from the depths of markup hell
- [Kishor](http://wasjournal.blogspot.com/) for providing cutting edge XSS and great help in the group
- [Martin Hinks](http://www.the-mice.co.uk/switch/) for great hints, the .NETIDS and help with false positives
- [SirDarckCat](http://sirdarckcat.blogspot.com) for providing XSS so advanced it made us shiver
- [Gareth Heyes](http://thespanner.co.uk/) for his help enhancing the rules and very creative XSS vectors
- **Kevin Schroeder** for the audit and great help on testing and enhancing the PHPIDS
- **xorrer** for his help optimizing the rules against his cryptic and sophisticated XSS vectors
- [Johannes Dahse](http://websec.wordpress.com/) for his help optimizing the SQLI rules
- [Roberto Salgado](http://websec.ca/) for helping hardening the SQLI rules with his SQL-Fu
- [tx](http://lowtechlive.com/) for even more outstanding SQLI stuff and almost magic PHP code injection vectors
- [Giorgio Maone](http://hackademix.net/) for redefining the word JavaScript with his vectors
- [thornmaker](http://p42.us/) for submitting smart and very hard to detect JavaScript concatenation vectors
- [Martin Trauth](http://www.pix7.de/blog/) for helping us with the design and giving hints on estate usability
- [Ronald v.d. Heetkamp](http://0x000000.com/) for helping on the SQLI and XSS detection issues
- **Dan** for helping i18n-ing the PHPIDS
- **CrYpTiC\_MauleR** for providing great hints and XSS magic
- [Robert Hansen](http://www.ha.ckers.org/) for providing (sl|h)a.ckers.org and the XSS cheat sheet
- [beford](http://blog.beford.org/) for providing great hints and esoteric but working XSS

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/79707?v=4)[Lars Strojny](/maintainers/lstrojny)[@lstrojny](https://github.com/lstrojny)

---

Top Contributors

[![x00mario](https://avatars.githubusercontent.com/u/615569?v=4)](https://github.com/x00mario "x00mario (885 commits)")[![lstrojny](https://avatars.githubusercontent.com/u/79707?v=4)](https://github.com/lstrojny "lstrojny (184 commits)")[![jayzeng](https://avatars.githubusercontent.com/u/141891?v=4)](https://github.com/jayzeng "jayzeng (8 commits)")[![kingcrunch](https://avatars.githubusercontent.com/u/90388?v=4)](https://github.com/kingcrunch "kingcrunch (6 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (2 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (1 commits)")[![Awnage](https://avatars.githubusercontent.com/u/368749?v=4)](https://github.com/Awnage "Awnage (1 commits)")[![zanbaldwin](https://avatars.githubusercontent.com/u/123245?v=4)](https://github.com/zanbaldwin "zanbaldwin (1 commits)")[![benpoulson](https://avatars.githubusercontent.com/u/1797843?v=4)](https://github.com/benpoulson "benpoulson (1 commits)")[![csk83](https://avatars.githubusercontent.com/u/240821?v=4)](https://github.com/csk83 "csk83 (1 commits)")[![felixbuenemann](https://avatars.githubusercontent.com/u/909587?v=4)](https://github.com/felixbuenemann "felixbuenemann (1 commits)")[![marclaporte](https://avatars.githubusercontent.com/u/1004261?v=4)](https://github.com/marclaporte "marclaporte (1 commits)")

### Embed Badge

![Health badge](/badges/phpids-phpids/health.svg)

```
[![Health](https://phpackages.com/badges/phpids-phpids/health.svg)](https://phpackages.com/packages/phpids-phpids)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
