{"id":33997411,"url":"https://github.com/mitoop/signature-sdk","last_synced_at":"2025-12-13T08:57:43.075Z","repository":{"id":290156194,"uuid":"957050009","full_name":"mitoop/signature-sdk","owner":"mitoop","description":"Signature SDK is a framework-agnostic PHP library that provides secure request signing and verification logic. It is the core signing engine used by laravel-signature, but can also be used independently in any PHP project.","archived":false,"fork":false,"pushed_at":"2025-09-05T15:11:37.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T21:26:11.529Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitoop.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-03-29T12:39:23.000Z","updated_at":"2025-09-05T15:11:25.000Z","dependencies_parsed_at":"2025-05-08T13:24:29.323Z","dependency_job_id":"62a382e5-4a34-4b73-9de1-a1d9f9e95d50","html_url":"https://github.com/mitoop/signature-sdk","commit_stats":null,"previous_names":["mitoop/laravel-signature-sdk","mitoop/signature-sdk"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/mitoop/signature-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitoop%2Fsignature-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitoop%2Fsignature-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitoop%2Fsignature-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitoop%2Fsignature-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitoop","download_url":"https://codeload.github.com/mitoop/signature-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitoop%2Fsignature-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27702869,"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-12-13T02:00:09.769Z","response_time":147,"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":[],"created_at":"2025-12-13T08:57:42.374Z","updated_at":"2025-12-13T08:57:43.066Z","avatar_url":"https://github.com/mitoop.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Signature Sdk\nSignature SDK is a framework-agnostic PHP library that provides secure request signing and verification logic.\nIt is the core signing engine used by [laravel-signature](https://github.com/mitoop/laravel-signature).\n\n## Requirements\n- PHP 7.4 or higher\n- OpenSSL extension enabled\n\n## Installation\nInstall via Composer:\n```bash\ncomposer require mitoop/signature-sdk\n```\n\n## 🚀 Quick Start\nSignature SDK supports the following signature methods:\n**SHA256-RSA2048**, **SHA256-HMAC**, and **ED25519**\n\n#### 🔐 Using RSA Signature:\n\n```php\nuse Mitoop\\SignatureSdk\\Client;\nuse Mitoop\\SignatureSdk\\RequestSigner;\nuse Mitoop\\SignatureSdk\\Signers\\RsaSigner;\n\n$privateKey = 'your_rsa_private_key_string';\n$publicKey = 'plat_rsa_public_key_string';\n\n$signer = new RsaSigner($privateKey, $publicKey);\n\n$requestSigner = new RequestSigner(\n    mchid: 'your_merchant_id',\n    appid: 'your_app_id',\n    signer: $signer,\n    platformPrefix: 'MP' // Paltform prefix\n);\n\n$client = new Client(\n    config: [\n        'base_url' =\u003e 'https://api.example.com',\n    ],\n    signer: $requestSigner\n);\n\n$response = $client-\u003epost('/v1/pay', [\n    'amount' =\u003e 100,\n    'currency' =\u003e 'USD',\n]);\n\n$data = json_decode((string) $response-\u003egetBody(), true);\n\nprint_r($data);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitoop%2Fsignature-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitoop%2Fsignature-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitoop%2Fsignature-sdk/lists"}