SecurityCheckerBundle
Security Checker wrapper for Symfony Web Debug Toolbar., (*1)
, (*2)
, (*3)
Install
Install bundle with Composer
dependency manager first by running the command:, (*4)
$ composer require "bocharsky-bw/security-checker-bundle:dev-master"
, (*5)
Composer
will install the bundle to your project's vendor
directory., (*6)
Include
Including the bundle to your Symfony
project is as easy as to do a few simple steps., (*7)
1) Enable the bundle in application kernel for dev
environment:, (*8)
``` php
<?php
// app/AppKernel.php, (*9)
public function registerBundles()
{
// other bundles..., (*10)
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// other dev bundles...
$bundles[] = new BW\SecurityCheckerBundle\BWSecurityCheckerBundle();
}
}, (*11)
2) Register the bundle's routes for `dev` environment:
``` yaml
# app/config/routing_dev.yml
_bw_security_checker_bundle:
resource: "@BWSecurityCheckerBundle/Resources/config/routing.yml"
prefix: /_bw
Congratulations!
You're ready to check your Symfony
project for known* security issues by easiest way!, (*12)
* Disclaimer: This checker can only detect vulnerabilities that are referenced in the SensioLabs security advisories database., (*13)