Browse files

added an example in the README file

  • Loading branch information...
1 parent 73057f6 commit 51453343489adb82ef3dc00630aec61d10cb4aad @fabpot fabpot committed Feb 20, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 README.md
View
7 README.md
@@ -13,7 +13,12 @@ You can also integrate the checker in your own application/project
* by using the `SecurityCheckerCommand` class into your Symfony Console
application.
- * by using the `SecurityChecker` class directly into your own code.
+ * by using the `SecurityChecker` class directly into your own code:
+
+ use SensioLabs\Security\SecurityChecker;
+
+ $checker = new SecurityChecker();
+ $alerts = $checker->check('/path/to/composer.lock', 'json');
[1]: http://security.sensiolabs.org/
[2]: https://github.com/sensiolabs/security-advisories

0 comments on commit 5145334

Please sign in to comment.