spatie/ssl-certificate
Retrieve and validate SSL/TLS certificates for any host in PHP. This package fetches certificate details like issuer, validity dates, and expiration status, making it easy to monitor domains and detect upcoming certificate issues in Laravel apps.
isValid() assertions in CI/CD pipelines).*.example.com) via getAdditionalDomains().daysUntilExpirationDate()).getPublicKeySize().Adopt if:
Look elsewhere if:
For Executives: "This lightweight PHP package eliminates manual SSL certificate checks—a critical but often overlooked security gap. By automating validation (expiry, algorithms, domains) across our infrastructure, we reduce downtime risk and compliance violations. For example, it can flag expiring certificates 90 days in advance, saving ops teams fire-drill renewals. With zero dependencies beyond PHP, it integrates seamlessly into our existing stack at minimal cost."
For Engineering:
"Spatie’s ssl-certificate gives us a fluent, exception-safe way to inspect certificates from URLs, files, or strings—with methods like isValid(), getDaysUntilExpiration(), and getAdditionalDomains() covering 90% of our needs. It handles edge cases (IPv6, custom ports, invalid certs) and supports Carbon v3, ensuring compatibility with Laravel 10+. The MIT license and active maintenance (last release: June 2026) make it a low-risk choice compared to rolling our own OpenSSL wrappers."
Key Differentiators:
SslCertificate::download()->fromIpAddress()->forHost()).How can I help you explore Laravel packages today?