PHPackages                             zendexperts/ze-security - 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. zendexperts/ze-security

ActiveLibrary[Security](/categories/security)

zendexperts/ze-security
=======================

ZeSecurity is a Zend Framework 2 module that adds an out of the box security layer for your applications based on PHPIDS(Intrusion Detection System)(https://phpids.org/).

189968PHP

Since Aug 20Pushed 13y ago4 watchersCompare

[ Source](https://github.com/ZendExperts/ZeSecurity)[ Packagist](https://packagist.org/packages/zendexperts/ze-security)[ RSS](/packages/zendexperts-ze-security/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ZeSecurity
==========

[](#zesecurity)

ZeSecurity is a Zend Framework 2 module that integrates a security layer in your applications. It includes various components to manage security threats:

IDS - Powered by [PHP IDS (Intrusion Detection System)](https://phpids.org/):
-----------------------------------------------------------------------------

[](#ids---powered-by-php-ids-intrusion-detection-system)

This component scans any user input, be it sent via POST, GET or COOKIE and tries to see if the user input can be considered a threat. Any number of threat levels can be defined with various actions for each one via the configuration file.

Using this component you can define multiple threat levels, what actions should be taken for each level and also register new plugins for handling attacks.

Installation / Usage
====================

[](#installation--usage)

ZeSecurity can be installed using Composer by simply adding the following lines to your composer.json file:

```
"require": {
    "zendexperts/ze-security": "dev-master"
}

```

Then run `php composer.phar update`.

After the module is installed copy the "zesecurity.ids.global.php" file from "ZeSecurity/config/" in the "/config/autoload/" folder and modify the paths to temp, log or cache files:

```
// define used paths by ZeSecurity IDS
$ids = array(
	'log'=> __DIR__ . '/../../data/log/ze_security.ids.log',
	'tmp'=> __DIR__ . '/../../data/tmp/',
	'cache'=> __DIR__ . '/../../data/cache/ze_security.ids.cache'
);

```

In the same configuration file a default range of attack levels is defined with various actions for each one.

Feel free to change them per your needs or define new actions in the actions array. By default the following actions are defined:

- ignore: Do nothing with the attack report
- log: Save a log message in a stream, email, db, etc. depending on the writter factory param. Currently only stream/file and email are defined.
- notify: Send an email with the report using the options defined in the actions array for this action.
- redirect: Redirect to a specific URL.
- clean\_session: Destroy the session to log out any users. When used along with redirect you can log out any users and redirect them to a specic page.

Documentation
=============

[](#documentation)

Comming soon.

In the meanwhile please be sure to check out the [PHP IDS (Intrusion Detection System)](https://phpids.org/) documentation.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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://www.gravatar.com/avatar/b56e59fd1d33781448baddf082305371f01a04346c576ee4275e69b9e642b462?d=identicon)[ZendExperts](/maintainers/ZendExperts)

---

Top Contributors

[![cosmin-harangus](https://avatars.githubusercontent.com/u/381639?v=4)](https://github.com/cosmin-harangus "cosmin-harangus (12 commits)")

### Embed Badge

![Health badge](/badges/zendexperts-ze-security/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[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

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

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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