PHPackages                             eugene-manuilov/phalcon-csp - 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. eugene-manuilov/phalcon-csp

AbandonedArchivedLibrary[Security](/categories/security)

eugene-manuilov/phalcon-csp
===========================

Content Security Policy plugin for PhalconPHP framework.

1.0.1(9y ago)44.8k[1 issues](https://github.com/eugene-manuilov/phalcon-csp/issues)MITPHP

Since Aug 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/eugene-manuilov/phalcon-csp)[ Packagist](https://packagist.org/packages/eugene-manuilov/phalcon-csp)[ RSS](/packages/eugene-manuilov-phalcon-csp/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Content Security Policy for Phalcon Framework
=============================================

[](#content-security-policy-for-phalcon-framework)

This plugin allows you to add CSP policies to your Phalcon based website. Content Security Policy (CSP) is a security standard to prevent cross-site scripting (XSS), clickjacking and other code injection attacks. Take a look at [An Introduction to Content Security Policy](http://www.html5rocks.com/en/tutorials/security/content-security-policy/) article for more details.

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

[](#installation)

Just use composer to install it:

```
$ composer require eugene-manuilov/phalcon-csp

```

Usage
-----

[](#usage)

To use CSP plugin in your site you just need to add it to the dependency injection container and register it as event listener for dispatcher events.

```
