{"id":20940044,"url":"https://github.com/jorijn/laravel-security-checker","last_synced_at":"2025-04-13T22:29:00.924Z","repository":{"id":22983084,"uuid":"97860886","full_name":"jorijn/laravel-security-checker","owner":"jorijn","description":"Added Laravel functionality to Enlightn Security Checker. Adds a command to check for, and optionally emails you, vulnerabilities when they affect you.","archived":false,"fork":false,"pushed_at":"2025-03-23T09:57:56.000Z","size":102,"stargazers_count":200,"open_issues_count":3,"forks_count":26,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T19:08:36.573Z","etag":null,"topics":["laravel","laravel-package","laravel-security-checker","php","sensiolabs-security-checker","vulnerabilities"],"latest_commit_sha":null,"homepage":"https://jorijn.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jorijn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-20T17:21:13.000Z","updated_at":"2025-03-23T09:55:20.000Z","dependencies_parsed_at":"2024-01-15T09:05:27.418Z","dependency_job_id":"53ad7063-0b78-42e0-ad5f-15133acc7e33","html_url":"https://github.com/jorijn/laravel-security-checker","commit_stats":{"total_commits":89,"total_committers":13,"mean_commits":6.846153846153846,"dds":0.2247191011235955,"last_synced_commit":"40b86a9d205c1cc2734d4aecf7a24d0f098e24ad"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorijn%2Flaravel-security-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorijn%2Flaravel-security-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorijn%2Flaravel-security-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jorijn%2Flaravel-security-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jorijn","download_url":"https://codeload.github.com/jorijn/laravel-security-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248790434,"owners_count":21162005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-package","laravel-security-checker","php","sensiolabs-security-checker","vulnerabilities"],"created_at":"2024-11-18T23:08:40.536Z","updated_at":"2025-04-13T22:29:00.885Z","avatar_url":"https://github.com/jorijn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Laravel Security Checker\n[![Latest Stable Version](https://img.shields.io/packagist/v/jorijn/laravel-security-checker.svg)](https://packagist.org/packages/jorijn/laravel-security-checker)\n[![Total Downloads](https://img.shields.io/packagist/dt/jorijn/laravel-security-checker.svg)](https://packagist.org/packages/jorijn/laravel-security-checker)\n[![License](https://img.shields.io/github/license/jorijn/laravel-security-checker.svg)](https://packagist.org/packages/jorijn/laravel-security-checker)\n![Tests](https://github.com/Jorijn/laravel-security-checker/workflows/tests/badge.svg)\n\nThis package provides an effortless way for you to check your local `composer.lock` against the [Security Advisories Database](https://github.com/FriendsOfPHP/security-advisories). \nIt can either display the results in your console or email them to you on a scheduled basis. It uses Laravel's markdown system, so it should fit nicely in your styling. \n\n#### Screenshot\n\u003cimg width=\"647\" alt=\"screenshot-email\" src=\"https://user-images.githubusercontent.com/85466/28497517-9e41580e-6f89-11e7-9c4e-0ebf713add6a.png\"\u003e\n\n## Installation\nRequire this package with composer using the following command:\n\n```bash\ncomposer require jorijn/laravel-security-checker\n```\n\n### Configuration\n\n#### Email\nIf you want the package to send reports by email, you'll need to specify a recipient.\n\n##### Option 1\nAdd it to your `.env` file.\n\n```\nLCS_MAIL_TO=\"someone@example.net\"\n```\n\n##### Option 2\nPublish the configuration file and change it there.\n\n```bash\nphp artisan vendor:publish --provider=\"Jorijn\\LaravelSecurityChecker\\ServiceProvider\" --tag=\"config\"\n```\n\nIf you want to control on how the email is formatted you can have Laravel export the view for you using:\n\n```bash\nphp artisan vendor:publish --provider=\"Jorijn\\LaravelSecurityChecker\\ServiceProvider\" --tag=\"views\"\n```\n\nBy default, the package won't email you when there are no vulnerabilities found. You can change this setting by adding the following entry to your `.env` file.\n\n```\nLCS_NOTIFY_WITHOUT_VULNERABILITIES=true\n```\n\n#### Slack\nIf you want the package to send the report to a Slack channel, you will need to specify a Slack Webhook\nin your `.env` file.\n\nE.g.:\n\n```\nLCS_SLACK_WEBHOOK=https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX\n```\n\n### Scheduling\nThe package exposes a new command for you:\n\n```bash\nphp artisan security-check:email\n```\n\nYou can hook it up into a regular crontab or add it into the Laravel Scheduler (`app/Console/Kernel.php`) like this:\n\n```php\nprotected function schedule(Schedule $schedule)\n{\n    $schedule-\u003ecommand(\\Jorijn\\LaravelSecurityChecker\\Console\\SecurityMailCommand::class)\n        -\u003eweekly();\n}\n```\n\n## Running as a command\nThis package provides a wrapper around the [Enlightn Security Checker](https://github.com/enlightn/security-checker) command. You can call it using `php artisan security-check:now`.\n \n![screenshot-console](https://user-images.githubusercontent.com/85466/28452254-17f3476e-6df2-11e7-9e5e-1c3d52b57722.png)\n\n## Translations\nIf you need to translate this package into your own language you can do so by publishing the translation files:\n\n```bash\nphp artisan vendor:publish --provider=\"Jorijn\\LaravelSecurityChecker\\ServiceProvider\" --tag=\"translations\"\n```\n\nPlease consider helping out by creating a pull request with your language to help out others.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorijn%2Flaravel-security-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjorijn%2Flaravel-security-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjorijn%2Flaravel-security-checker/lists"}