#!/usr/bin/env php <?php /* * This file is part of the SensioLabs Security Checker. * * (c) Fabien Potencier * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ function includeIfExists($file) { if (file_exists($file)) { return include $file; } } if ((!$loader = includeIfExists(__DIR__.'/vendor/autoload.php')) && (!$loader = includeIfExists(__DIR__.'/../../autoload.php'))) { die('You must set up the project dependencies, run the following commands:'.PHP_EOL. 'curl -sS https://getcomposer.org/installer | php'.PHP_EOL. 'php composer.phar install'.PHP_EOL); } use Symfony\Component\Console\Application; use SensioLabs\Security\Command\SecurityCheckerCommand; use SensioLabs\Security\SecurityChecker; use SensioLabs\Security\Crawler; $console = new Application('SensioLabs Security Checker', SecurityChecker::VERSION); $console->add(new SecurityCheckerCommand(new SecurityChecker(new Crawler()))); $console->run();
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
SensioLabs | Folder | 0755 |
|
|
.gitignore | File | 23 B | 0644 |
|
.php_cs.dist | File | 695 B | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
README.md | File | 1.44 KB | 0644 |
|
box.json | File | 471 B | 0644 |
|
composer.json | File | 710 B | 0644 |
|
security-checker | File | 1.02 KB | 0644 |
|