{"id":27899492,"url":"https://github.com/roave/signature","last_synced_at":"2025-05-05T19:35:26.018Z","repository":{"id":46993298,"uuid":"72853118","full_name":"Roave/Signature","owner":"Roave","description":":black_nib: Generate and verify basic signature for classes","archived":false,"fork":false,"pushed_at":"2025-02-14T06:02:04.000Z","size":475,"stargazers_count":43,"open_issues_count":2,"forks_count":3,"subscribers_count":10,"default_branch":"1.10.x","last_synced_at":"2025-02-14T07:19:43.322Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"","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/Roave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-11-04T14:05:22.000Z","updated_at":"2025-02-14T06:01:51.000Z","dependencies_parsed_at":"2024-01-17T15:25:23.649Z","dependency_job_id":"0928ea73-6ebf-4f3e-a28a-202f92e50a95","html_url":"https://github.com/Roave/Signature","commit_stats":{"total_commits":188,"total_committers":7,"mean_commits":"26.857142857142858","dds":0.675531914893617,"last_synced_commit":"44d26e50a6c5dada21a04c74fe176452b312dd02"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FSignature","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FSignature/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FSignature/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Roave%2FSignature/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Roave","download_url":"https://codeload.github.com/Roave/Signature/tar.gz/refs/heads/1.10.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252563167,"owners_count":21768414,"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":["hacktoberfest"],"created_at":"2025-05-05T19:34:04.332Z","updated_at":"2025-05-05T19:35:26.004Z","avatar_url":"https://github.com/Roave.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :black_nib: Roave\\Signature\n\nSign and validate signed files made easy.\n\n**Note: this is not a cryptographic signing library.**\n\n## Installation\n\nThe suggested installation method is via [composer](https://getcomposer.org/):\n\n```bash\n$ composer require roave/signature\n```\n\n## Usage examples\n\n### Signing a file\n\n```php\n// Creating a signer\n$signer = new \\Roave\\Signature\\FileContentSigner(\n    new \\Roave\\Signature\\Encoder\\Sha1SumEncoder()\n);\n\n// It'll give you a signature to the provided code content\n$signature = $signer-\u003esign(file_get_contents('/var/tmp/file.php'));\n```\n\n### Validating a signed file\n\n```php\n// Creating a signer checker\n$signer = new \\Roave\\Signature\\FileContentChecker(\n    new \\Roave\\Signature\\Encoder\\Sha1SumEncoder()\n);\n\n// It'll validate the signature on file content\n$signer-\u003echeck(file_get_contents('/var/tmp/signed-file.php'));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froave%2Fsignature","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froave%2Fsignature","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froave%2Fsignature/lists"}