PHPackages                             ipedis/security-file-bundle - 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. ipedis/security-file-bundle

ActiveLibrary

ipedis/security-file-bundle
===========================

Symfony bundle for file security

2.0.1(3mo ago)03↑2900%PHPPHP &gt;=8.2CI passing

Since Jun 7Pushed 1mo agoCompare

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

READMEChangelogDependencies (12)Versions (7)Used By (0)

security-file-bundle
====================

[](#security-file-bundle)

This bundle includes three libraries for the security of files.

- [file-sanitizer library](https://github.com/ipedis/file-sanitizer)
- [validation-handler library](https://github.com/ipedis/validation-handler)
- [ bombScanner library ](https://github.com/selective-php/archive-bomb-scanner)

Installation :
==============

[](#installation-)

add on your composer.json the repository:

```
"repositories": [
{
"type": "vcs",
"url": "github:ipedis/security-file-bundle.git"
},
{
"type": "vcs",
"url": "github:ipedis/file-sanitizer.git"
},
{
"type": "vcs",
"url": "github:ipedis/validation-handler.git"
}
...

```

then

`composer require "ipedis/security-file-bundle"`

Usage :
=======

[](#usage-)

### file sanitizer :

[](#file-sanitizer-)

Configuration of file sanitizer is on the `security_file.yaml` :

```
# config/packages/security_file.yaml
security_file:
  sanitizers:
    html_sanitizer:
      type: html
      config:
        ignored_step:
        custom_step:
    xml_sanitizer:
      type:  xml
      config:
        ignored_step:
        custom_step:
    ......
```

We can add many configuration . We use the camelCase of the name of the configuration to use it on service

**ex:**to use html\_sanitizer on this configuration above :

```
class DummyHtml
{

    public function __construct(SanitizerInterface $htmlSanitizer)
    {}
    .....
```

[Library documentation](https://github.com/ipedis/file-sanitizer/blob/master/Readme.md)

---

### bomb scanner :

[](#bomb-scanner-)

To use Bomb scanner we can use `BombScannerDecorator` service.

By default, engine used on this service is zip. But we can modify it or add more engine with configuration in `security_file`:

```
# config/packages/security_file.yaml
security_file:
    ......
    scanner:
      engines:
        - zip
        - rar
```

[Library documentation](https://github.com/selective-php/archive-bomb-scanner#readme)

---

### validation handler :

[](#validation-handler-)

Use service `FileValidator`

[Library documentation](https://github.com/ipedis/validation-handler/blob/master/README.md)

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance87

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 52.2% 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.

###  Release Activity

Cadence

Every ~268 days

Recently: every ~335 days

Total

6

Last Release

93d ago

Major Versions

1.0.3 → 2.0.02026-02-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/97cc863f90ac18a7a620893a0a9cbf099dab4f8e5f853e1fe5a28c64b6dec9cc?d=identicon)[yanis-git](/maintainers/yanis-git)

---

Top Contributors

[![MelchiorIpedis](https://avatars.githubusercontent.com/u/126576609?v=4)](https://github.com/MelchiorIpedis "MelchiorIpedis (12 commits)")[![lucasdsm78](https://avatars.githubusercontent.com/u/66834518?v=4)](https://github.com/lucasdsm78 "lucasdsm78 (4 commits)")[![yanis-git](https://avatars.githubusercontent.com/u/4113879?v=4)](https://github.com/yanis-git "yanis-git (4 commits)")[![tejaskgosai](https://avatars.githubusercontent.com/u/126658306?v=4)](https://github.com/tejaskgosai "tejaskgosai (2 commits)")[![lucas-dsm](https://avatars.githubusercontent.com/u/126459347?v=4)](https://github.com/lucas-dsm "lucas-dsm (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/ipedis-security-file-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ipedis-security-file-bundle/health.svg)](https://phpackages.com/packages/ipedis-security-file-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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