{"id":35256986,"url":"https://github.com/joelwmale/php-ssl-certificate","last_synced_at":"2026-02-13T02:04:53.705Z","repository":{"id":35040204,"uuid":"199601812","full_name":"joelwmale/php-ssl-certificate","owner":"joelwmale","description":"Easily retrieve the ssl certificate for any host","archived":false,"fork":false,"pushed_at":"2026-01-21T05:49:51.000Z","size":116,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-03T19:19:09.105Z","etag":null,"topics":["laravel","php","ssl-certificate"],"latest_commit_sha":null,"homepage":null,"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/joelwmale.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-07-30T07:45:38.000Z","updated_at":"2024-09-19T21:01:55.000Z","dependencies_parsed_at":"2023-11-16T05:31:10.388Z","dependency_job_id":"fc7587ab-61f1-47c1-9810-6bea8e57c439","html_url":"https://github.com/joelwmale/php-ssl-certificate","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.25,"last_synced_commit":"5d8e975fbe0dec10d53cc798cc9825bc3ed71f18"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/joelwmale/php-ssl-certificate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelwmale%2Fphp-ssl-certificate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelwmale%2Fphp-ssl-certificate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelwmale%2Fphp-ssl-certificate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelwmale%2Fphp-ssl-certificate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelwmale","download_url":"https://codeload.github.com/joelwmale/php-ssl-certificate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelwmale%2Fphp-ssl-certificate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29392937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T00:53:09.511Z","status":"online","status_checked_at":"2026-02-13T02:00:10.076Z","response_time":78,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","php","ssl-certificate"],"created_at":"2025-12-30T08:10:05.726Z","updated_at":"2026-02-13T02:04:53.699Z","avatar_url":"https://github.com/joelwmale.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Easily retrieve the ssl certificate for any host\n\n\u003ca href=\"https://github.com/joelwmale/php-ssl-certificate/actions/workflows/tests.yml\"\u003e\u003cimg src=\"https://github.com/joelwmale/php-ssl-certificate/actions/workflows/tests.yml/badge.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/joelwmale/php-ssl-certificate\"\u003e\u003cimg src=\"https://img.shields.io/packagist/dt/joelwmale/php-ssl-certificate\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/joelwmale/php-ssl-certificate\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/joelwmale/php-ssl-certificate\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/joelwmale/php-ssl-certificate\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/joelwmale/php-ssl-certificate\" alt=\"License\"\u003e\u003c/a\u003e\n\nThis package makes it easy to download a certificate for a host.\n\n## Version Compatibility\n\n| PHP Version | Package Version |\n|-------------|-----------------|\n| 8.3+        | 4.x             |\n| 8.0 - 8.2   | 3.x             |\n\n## Usage\n\n```php\nuse Joelwmale\\SslCertificate\\Certificate;\n\n$certificate = Certificate::forHost('joelmale.com');\n```\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require joelwmale/php-ssl-certificate\n```\n\n## Available Properties \u0026 Methods\n\nAll properties are `readonly`.\n\n```php\n$certificate-\u003eissuer;              // string - the issuer of the certificate\n$certificate-\u003edomain;              // string - the primary domain on the certificate\n$certificate-\u003eadditionalDomains;   // array  - all the additional/alt domains on the certificate\n$certificate-\u003evalid;               // bool   - true if valid, false if not\n$certificate-\u003eissued;              // Carbon - when the certificate was issued\n$certificate-\u003eexpires;             // Carbon - when the certificate expires\n$certificate-\u003eexpiresIn;           // int    - days until the certificate expires\n$certificate-\u003eexpired;             // bool   - true if the certificate is expired\n$certificate-\u003esignatureAlgorithm;  // string - the signature algorithm used to sign the certificate\n$certificate-\u003eisSelfSigned;        // bool   - true if the certificate was self signed\n```\n\n### Get raw certificate as JSON\n\n```php\n$certificate-\u003egetRawCertificateFieldsAsJson();\n```\n\n### Determining if the certificate is valid at a given date\n\nReturns true if the certificate will still be valid.\nTakes a Carbon instance as the first parameter.\n\n```php\n$certificate-\u003eisValidAt(Carbon::today()-\u003eaddMonth(1));\n```\n\n### Determining if certificate contains/covers a domain\n\nReturns true if the certificate contains the domain\n\n```php\n$certificate-\u003econtainsDomain('joelmale.dev');\n```\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for a list of recent changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelwmale%2Fphp-ssl-certificate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelwmale%2Fphp-ssl-certificate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelwmale%2Fphp-ssl-certificate/lists"}