PHPackages                             funkatron/inspekt - 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. funkatron/inspekt

ActiveLibrary[Security](/categories/security)

funkatron/inspekt
=================

A PHP library that makes it easier to write secure web applications

0.6.4(4y ago)1348.1k19[5 issues](https://github.com/funkatron/inspekt/issues)BSDPHPPHP &gt;=5.3.0CI failing

Since Mar 23Pushed 4y ago7 watchersCompare

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

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

Inspekt
=======

[](#inspekt)

### License

[](#license)

[LICENSE](https://github.com/benedmunds/inspekt/blob/master/LICENSE)

### Maintained by

[](#maintained-by)

Ben Edmunds [benedmunds.com](http://benedmunds.com)

### Created by

[](#created-by)

Ed Finkler

**Version 0.6.3****2022-02-21**

What Is Inspekt?
----------------

[](#what-is-inspekt)

Inspekt is a comprehensive filtering and validation library for PHP.

Driving principles behind Inspekt
---------------------------------

[](#driving-principles-behind-inspekt)

- Accessing user input via the PHP superglobals is inherently dangerous, because the "default" action is to retrieve raw, potentially dangerous data
- Piecemeal, "inline" filtering/validation done at various places in an application's source code is too error-prone to be effective
- The purpose of a library or framework is to make a programmer's job easier. Verbose and/or complex solutions should be avoided unless they are the only solution

Features of Inspekt
-------------------

[](#features-of-inspekt)

- 'Cage' objects that encapsulate input and require the developer to use the provided filtering and validation methods to access input data
- Automatic application of filtering as defined in a configuration file
- A library of static filtering and validation methods
- A simple, clear API
- No external dependencies

Documentation
-------------

[](#documentation)

[User Docs](https://github.com/benedmunds/inspekt/blob/master/docs/USER.md)

[API Docs](https://github.com/benedmunds/inspekt/blob/master/docs/API.md)

How Do I Use Inspekt?
---------------------

[](#how-do-i-use-inspekt)

The best idea at the moment is to look at the `Examples` directory.

### Quickly creating a cage for common input superglobals

[](#quickly-creating-a-cage-for-common-input-superglobals)

```
