bocharsky-bw/security-checker-bundle

Security Checker wrapper for Symfony Web Debug Toolbar

v0.0.1 2014-12-21 11:57 UTC

This package is auto-updated.

Last update: 2024-11-29 04:52:10 UTC


README

Security Checker wrapper for Symfony Web Debug Toolbar.

SensioLabsInsight

BW Security Checker

Install

Install bundle with Composer dependency manager first by running the command:

$ composer require "bocharsky-bw/security-checker-bundle:dev-master"

Composer will install the bundle to your project's vendor directory.

Include

Including the bundle to your Symfony project is as easy as to do a few simple steps.

  1. Enable the bundle in application kernel for dev environment:
<?php
// app/AppKernel.php

public function registerBundles()
{
    // other bundles...
    
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
        // other dev bundles...
        $bundles[] = new BW\SecurityCheckerBundle\BWSecurityCheckerBundle();
    }
}
  1. Register the bundle's routes for dev environment:
# 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!

* Disclaimer: This checker can only detect vulnerabilities that are referenced in the SensioLabs security advisories database.