{"id":28268333,"url":"https://github.com/riskified/php_sdk","last_synced_at":"2025-10-03T23:47:41.449Z","repository":{"id":14900948,"uuid":"17624814","full_name":"Riskified/php_sdk","owner":"Riskified","description":"Will store the PHP SDK for Riskified","archived":false,"fork":false,"pushed_at":"2025-08-01T16:15:58.000Z","size":365,"stargazers_count":7,"open_issues_count":13,"forks_count":18,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-10-01T05:27:49.131Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"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/Riskified.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-03-11T09:24:33.000Z","updated_at":"2025-07-28T15:14:51.000Z","dependencies_parsed_at":"2024-06-21T07:13:13.499Z","dependency_job_id":"5e9e273c-f5d0-4941-b72d-d2483beab999","html_url":"https://github.com/Riskified/php_sdk","commit_stats":{"total_commits":217,"total_committers":18,"mean_commits":"12.055555555555555","dds":0.7373271889400922,"last_synced_commit":"966de003298332aab5390a26a0754a4095dfff60"},"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"purl":"pkg:github/Riskified/php_sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riskified%2Fphp_sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riskified%2Fphp_sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riskified%2Fphp_sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riskified%2Fphp_sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Riskified","download_url":"https://codeload.github.com/Riskified/php_sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Riskified%2Fphp_sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278245374,"owners_count":25955013,"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-10-03T02:00:06.070Z","response_time":53,"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-05-20T15:12:38.373Z","updated_at":"2025-10-03T23:47:41.438Z","avatar_url":"https://github.com/Riskified.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Riskified PHP SDK\n=================\n\nversion: 1.9.5\n-------------------\n\nSee *samples/* for examples on how to use this SDK.\n\nMigrating to API Version 2\n--------------------------\n\nAPI Version 2 introduces new features (and breaks some old ones).\n\n### Order Webhook ###\n\nThis version represents a shift from data-driven order handling to multiple API endpoints, each designed\nfor a specific purpose. These include:\n\n* `/api/create` - served by `$transport-\u003ecreateOrder()`\n* `/api/update` - served by `$transport-\u003eupdateOrder()`\n* `/api/submit` - served by `$transport-\u003esubmitOrder()`\n* `/api/refund` - served by `$transport-\u003erefundOrder()`\n* `/api/cancel` - served by `$transport-\u003ecancelOrder()`\n\nRefer to the online [documentation](http://apiref.riskified.com) for more details.\nWhen migrating from version 1, you'll need to separate the different calls to Riskified's API to support this new process.\n\n\n### Decision Notifications ###\n\n#### Constructor $headers argument format ####\nThe format of the `$headers` argument when constructing a new `Riskified\\DecisionNotification\\Notification` instance has changed.\nThe constructor now expects an associative array of all the HTTP headers of the request, and *not* a flat array of strings, as\nin previous versions of this SDK.\n\nThis change should simplify integration since the argument now follows the format of the return value of the popular PHP/Apache\nfunction [`getallheaders()`](http://php.net/manual/en/function.getallheaders.php).\n\n\n#### API v2 payload format ####\nNotification requests in API version 2 now contain a JSON encoded payload which is more flexible and easily extended.\n\nIf you are already using the `Notification` class in version 1, there are no additional actions required to support the\nmigration to JSON, as this SDK handles the new data format seamlessly.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friskified%2Fphp_sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friskified%2Fphp_sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friskified%2Fphp_sdk/lists"}