PHPackages                             sharkzt/helpersbundle - 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. [Framework](/categories/framework)
4. /
5. sharkzt/helpersbundle

ActiveSymfony-bundle[Framework](/categories/framework)

sharkzt/helpersbundle
=====================

Helpers bundle, that extends symfony validator, html purifier classes for easy usage

0.2.0(9y ago)015MITPHPPHP &gt;=7.0.0

Since Sep 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Sharkzt/HelpersBundle)[ Packagist](https://packagist.org/packages/sharkzt/helpersbundle)[ Docs](https://github.com/Sharkzt/HelpersBundle)[ RSS](/packages/sharkzt-helpersbundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

SharztHelpersBundle
===================

[](#sharzthelpersbundle)

**SharztHelpersBundle** is a bundle, that extends symfony validator, html purifier classes for easy usage. It is easy to use, and extensively unit tested!

[![Build Status](https://camo.githubusercontent.com/f11d3c73205bab26690ca07cda5165585b733277c5760c44a13463c9eb70092b/68747470733a2f2f7472617669732d63692e6f72672f536861726b7a742f48656c7065727342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Sharkzt/HelpersBundle)[![Coverage Status](https://camo.githubusercontent.com/9306e2e87993e9d27fe289e6a8e94d87f1c2d0b0bde5f217e89d8056a26cb78d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f536861726b7a742f48656c7065727342756e646c652f62616467652e737667)](https://coveralls.io/github/Sharkzt/HelpersBundle)

Installation
------------

[](#installation)

The recommended way to install bundle is through [Composer](http://getcomposer.org/):

```
$ composer require sharkzt/helpersbundle
```

Usage Examples
--------------

[](#usage-examples)

### Validation

[](#validation)

```
// Feel free to use as service like $validationHelper = $this->get('sharkzt_helpers.validation_helper');
$id = 111;
$email = "test@mail";
$validationHelper = new ValidationHelper(new ErrorHelper());
$validationHelper->setParameter([$id, $validationHelper->integer])
                 ->setParameter([$id, new Choice([1, 2, 3])])
                 ->setParameter([$email, new Email()]);

if (!$validationHelper->validate()) {
    return $this->view($validationHelper->getResponse());
}
```

The `ValidationHelper` returns an array of errors if validation fails.

### Purification

[](#purification)

```
//Set up your service $purifierHelper = $this->get('sharkzt_helpers.purifier_helper');
$purifierHelper = new PurifierHelper();
$purifier = $purifierHelper->initialize();
$xssCode = "alert('Xss');Hello world!"

//Purify your variable, to avoid any html code in
$pureString = $purifier->purify($xssCode);
```

The `$pureString` returns `Hello world!`.

License
-------

[](#license)

HelpersBundle is released under the MIT License. See the bundled LICENSE file for details.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3560d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12123360?v=4)[Alexander](/maintainers/Sharkzt)[@Sharkzt](https://github.com/Sharkzt)

---

Top Contributors

[![Sharkzt](https://avatars.githubusercontent.com/u/12123360?v=4)](https://github.com/Sharkzt "Sharkzt (24 commits)")

---

Tags

frameworkvalidationhelperpurification

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[yiisoft/yii2

Yii PHP Framework Version 2

23530.3M9.6k](/packages/yiisoft-yii2)[davidepastore/slim-validation

A slim middleware for validation based on Respect/Validation

170227.3k3](/packages/davidepastore-slim-validation)[sproutcms/cms

Enterprise content management and framework

242.2k4](/packages/sproutcms-cms)[krzysztofrewak/laravel-oop-validator

Laravel Validator object-oriented wrapper

805.9k](/packages/krzysztofrewak-laravel-oop-validator)

PHPackages © 2026

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