PHPackages                             masterkey/shield - 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. masterkey/shield

ActiveLibrary[Security](/categories/security)

masterkey/shield
================

System security package for PHP apps

1.1.0(10y ago)033MITPHPPHP &gt;=5.5

Since Mar 2Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

Shield - Sql
============

[](#shield---sql)

[![Build Status](https://camo.githubusercontent.com/330972be8924a7d7db52d492cfe1cd3dfcea7e71cf10890163335ed6ec49c5e2/68747470733a2f2f7472617669732d63692e6f72672f4d61737465726b6579496e666f726d61746963612f736869656c642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/MasterkeyInformatica/shield)[![Latest Stable Version](https://camo.githubusercontent.com/559637bc9c08a5aa63a492d908d762954cc069430450a944e2ffe3cc0e192b14/68747470733a2f2f706f7365722e707567782e6f72672f6d61737465726b65792f736869656c642f762f737461626c65)](https://packagist.org/packages/masterkey/shield) [![Total Downloads](https://camo.githubusercontent.com/87fb468b06b52ed4a8628aa11ca3808c5f7ceb845d406598a1c8396add1f992e/68747470733a2f2f706f7365722e707567782e6f72672f6d61737465726b65792f736869656c642f646f776e6c6f616473)](https://packagist.org/packages/masterkey/shield)[![Latest Unstable Version](https://camo.githubusercontent.com/10052057d4e9b060dfbfcd414f7f90d1e1ecbdc200db51928e23e7b52e7be0fd/68747470733a2f2f706f7365722e707567782e6f72672f6d61737465726b65792f736869656c642f762f756e737461626c65)](https://packagist.org/packages/masterkey/shield) [![License](https://camo.githubusercontent.com/68cc9558baba1ae358ccad4fdab7174db5366924e76eb95c291f2118e4055265/68747470733a2f2f706f7365722e707567782e6f72672f6d61737465726b65792f736869656c642f6c6963656e7365)](https://packagist.org/packages/masterkey/shield)

Este pacote foi desenvolvido para aumentar a segurança de aplicativos php. Provê uma API para sanitização de strings para que possam ser utilizados de forma segura.

Posteriormente, serão adicionadas outras funcionalidades ao pacote.

Para incluir o package ao seu projeto:

```
$ composer require masterkey/shield
```

Adicione o autoload do composer ao seu projeto

```
require_once "vendor/autoload.php"
```

Agora você pode fazer a limpeza da sua string da seguinte forma:

```
echo Masterkey\Shield\Sql::clear('Minha Stringwhere1=1')
```

Você terá a seguinte saída: `Minha String`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

3

Last Release

3721d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ad0138bca814dfc04cc1d315e3501b786522cd3b4bfaff8ba02e79e3df56b48?d=identicon)[devLopez](/maintainers/devLopez)

---

Top Contributors

[![devLopez](https://avatars.githubusercontent.com/u/5889460?v=4)](https://github.com/devLopez "devLopez (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/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.7M112](/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)
