{"id":16390168,"url":"https://github.com/slamdunk/php-p7m-reader","last_synced_at":"2025-10-13T02:37:47.893Z","repository":{"id":45365960,"uuid":"212791779","full_name":"Slamdunk/php-p7m-reader","owner":"Slamdunk","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-09T12:28:43.000Z","size":224,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T14:29:52.112Z","etag":null,"topics":["openssl","p7m","php","pkcs7"],"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/Slamdunk.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null},"funding":{"github":["Slamdunk"],"custom":"https://paypal.me/filippotessarotto"}},"created_at":"2019-10-04T10:41:02.000Z","updated_at":"2025-08-09T12:28:46.000Z","dependencies_parsed_at":"2023-12-30T23:20:08.238Z","dependency_job_id":"c0fdf21d-570b-44c0-9085-5de2f2c46ea7","html_url":"https://github.com/Slamdunk/php-p7m-reader","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"98790e85fd22a7888063c3ca3895f35c8a0bb3b5"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/Slamdunk/php-p7m-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-p7m-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-p7m-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-p7m-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-p7m-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Slamdunk","download_url":"https://codeload.github.com/Slamdunk/php-p7m-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Slamdunk%2Fphp-p7m-reader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269649848,"owners_count":24453541,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"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":["openssl","p7m","php","pkcs7"],"created_at":"2024-10-11T04:35:08.097Z","updated_at":"2025-10-13T02:37:42.832Z","avatar_url":"https://github.com/Slamdunk.png","language":"PHP","funding_links":["https://github.com/sponsors/Slamdunk","https://paypal.me/filippotessarotto"],"categories":[],"sub_categories":[],"readme":"# Slam P7M Reader\n\n[![Latest Stable Version](https://img.shields.io/packagist/v/slam/php-p7m-reader.svg)](https://packagist.org/packages/slam/php-p7m-reader)\n[![Downloads](https://img.shields.io/packagist/dt/slam/php-p7m-reader.svg)](https://packagist.org/packages/slam/php-p7m-reader)\n[![Integrate](https://github.com/Slamdunk/php-p7m-reader/workflows/CI/badge.svg)](https://github.com/Slamdunk/php-p7m-reader/actions)\n[![Code Coverage](https://codecov.io/gh/Slamdunk/php-p7m-reader/coverage.svg)](https://codecov.io/gh/Slamdunk/php-p7m-reader)\n\n## Installation\n\n`composer require slam/php-p7m-reader`\n\n## Requirements\n\n1. `openssl` binary\n1. `ext-openssl`\n\n## Usage\n\n*WARNING*: the signature is verified, but the validity of the certificate it is not!\n\n```php\n$p7mReader = \\Slam\\P7MReader\\P7MReader::decodeFromFile(\n    new \\SplFileObject('/path/to/my.xml.p7m'),\n    __DIR__ . '/tmp'    // Optional custom temporary directory, defaults to sys_get_temp_dir()\n);\n// OR\n$p7mReader = \\Slam\\P7MReader\\P7MReader::decodeFromBase64(\n    'Abc==',            // base64 encoded content file\n    __DIR__ . '/tmp'    // Optional custom temporary directory, defaults to sys_get_temp_dir()\n);\n\nvar_dump($p7mReader-\u003egetP7mFile());     // string:        The original P7M file\nvar_dump($p7mReader-\u003egetContentFile()); // SplFileObject: The signed content\nvar_dump($p7mReader-\u003egetCertFile());    // SplFileObject: The certificate\nvar_dump($p7mReader-\u003egetCertData());    // array:         Certificate data in openssl_x509_parse output format\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslamdunk%2Fphp-p7m-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslamdunk%2Fphp-p7m-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslamdunk%2Fphp-p7m-reader/lists"}