Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adrianmejias/laravel-ssllabs
SSL Labs Quality Checker for Laravel Framework.
https://github.com/adrianmejias/laravel-ssllabs
laravel quality-checker ssl ssllabs ssllabs-scan
Last synced: about 2 months ago
JSON representation
SSL Labs Quality Checker for Laravel Framework.
- Host: GitHub
- URL: https://github.com/adrianmejias/laravel-ssllabs
- Owner: adrianmejias
- License: mit
- Created: 2022-01-23T08:01:16.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T15:14:33.000Z (almost 2 years ago)
- Last Synced: 2024-11-13T12:24:29.223Z (about 2 months ago)
- Topics: laravel, quality-checker, ssl, ssllabs, ssllabs-scan
- Language: PHP
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.yml
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# SSL Labs Quality Checker Package for Laravel
[![security](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/security.yml/badge.svg)](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/security.yml) [![tests](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/tests.yml/badge.svg)](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/tests.yml) [![PHPStan](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/phpstan.yml/badge.svg)](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/phpstan.yml) [![PHP CS Fixer](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/adrianmejias/laravel-ssllabs/actions/workflows/php-cs-fixer.yml) [![StyleCI](https://github.styleci.io/repos/451040253/shield?branch=main)](https://github.styleci.io/repos/446770602?branch=main) [![Build Status](https://travis-ci.com/adrianmejias/laravel-ssllabs.svg?branch=main)](https://travis-ci.com/adrianmejias/laravel-ssllabs) [![codecov](https://codecov.io/gh/adrianmejias/laravel-ssllabs/branch/main/graph/badge.svg?token=PQGDLH1PW5)](https://codecov.io/gh/adrianmejias/laravel-ssllabs) ![Downloads](https://img.shields.io/packagist/dt/adrianmejias/laravel-ssllabs) ![Packagist](https://img.shields.io/packagist/v/adrianmejias/laravel-ssllabs) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![Liberapay](https://img.shields.io/liberapay/patrons/adrianmejias.svg?logo=liberapay)
[SSL Labs](https://www.ssllabs.com/projects/ssllabs-apis/) Quality Checker package for the [Laravel Framework](https://laravel.com/).
## Installation
Warning: Not for use in production at the moment.
This version supports PHP 8.0. You can install the package via composer:
`composer require adrianmejias/laravel-ssllabs`
To create the `config/ssllabs.php` configuration file:
`php artisan vendor:publish --tag=ssllabs`
## Usage
### Example
```php
'2.1.10',
'criteriaVersion' => '2009q',
'maxAssessments' => 25,
'currentAssessments' => 0,
'newAssessmentCoolOff' => 1000,
'messages' => [
'This assessment service is provided free of charge by Qualys SSL Labs, subject to our terms and conditions: https://www.ssllabs.com/about/terms.html',
],
];
```### Api Requests
- `getRootCertsRaw(?int $trustStore = null)` Retrieve root certificates.
- `getStatusCodes()` Retrieve known status codes.
- `getEndpointData(string $host, string $s, bool $fromCache = false)` Retrieve detailed endpoint information.
- `hasMinGrade(string $host, ?string $minGrade = 'A+', int $maxAge, bool $publish = false, bool $ignoreMismatch = false)` Invoke assessment and check progress in order to check minimum grade.
- `analyze(string $host, ?int $maxAge = null, bool $publish = false, bool $startNew = false, bool $fromCache = false, ?string $all = null, bool $ignoreMismatch = false)` Invoke assessment and check progress.
- `info()` Check SSL Labs availability.### Artisan Commands
- `ssllabs:quality-test {host} {grade}` - Get SSL Labs quality test results
- `ssllabs:has-min-quality {host} {grade}` - Check if the host has a minimum grade level## Testing
`composer test`
## Todo
- [x] Add to packagist repo
- [x] Add unit tests
- [x] Add documentation for open source contributations
- [x] Add GitHub Action for unit tests
- [x] Add more unit test coverages
- [x] Add more documentation to README.md
- [x] Add API listing to README.md
- [ ] Add command
- [ ] Add schedule from command
- [ ] Add schedule email## Contributing
Thank you for considering contributing to Laravel SSL Labs! You can read the contribution guide [here](.github/CONTRIBUTING.md).
## Code of Conduct
In order to ensure that the community is welcoming to all, please review and abide by the [Code of Conduct](.github/CODE_OF_CONDUCT.md).
## Security Vulnerabilities
Please see the [security file](SECURITY.md) for more information.
## License
The MIT License (MIT). Please see the [license file](LICENSE.md) for more information.