{"id":31740560,"url":"https://github.com/dojo-engineering/dojo.php","last_synced_at":"2025-10-09T10:20:31.531Z","repository":{"id":164479166,"uuid":"629679308","full_name":"dojo-engineering/Dojo.PHP","owner":"dojo-engineering","description":"A PHP client library for accessing Payment APIs","archived":false,"fork":false,"pushed_at":"2025-01-09T14:54:00.000Z","size":537,"stargazers_count":2,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-18T18:13:40.232Z","etag":null,"topics":["dojo-payments","dojo-sdk"],"latest_commit_sha":null,"homepage":"https://docs.dojo.tech/payments/api","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/dojo-engineering.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-18T20:04:37.000Z","updated_at":"2023-12-21T13:41:46.000Z","dependencies_parsed_at":"2024-04-18T23:34:57.924Z","dependency_job_id":null,"html_url":"https://github.com/dojo-engineering/Dojo.PHP","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dojo-engineering/Dojo.PHP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo-engineering%2FDojo.PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo-engineering%2FDojo.PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo-engineering%2FDojo.PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo-engineering%2FDojo.PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dojo-engineering","download_url":"https://codeload.github.com/dojo-engineering/Dojo.PHP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dojo-engineering%2FDojo.PHP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001309,"owners_count":26083040,"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-09T02:00:07.460Z","response_time":59,"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":["dojo-payments","dojo-sdk"],"created_at":"2025-10-09T10:20:30.414Z","updated_at":"2025-10-09T10:20:31.527Z","avatar_url":"https://github.com/dojo-engineering.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dojo PHP SDK\n\nThe official [Dojo][dojo] PHP library, supporting [Payments API][api-docs].\n\n## Installation\n\nUse [Composer](https://getcomposer.org/) to install the Dojo PHP library:\n\n```sh\ncomposer require dojo-engineering/dojo-php\n```\n\n## Build source code\n\nIn order to build, PHP 7.4+ is required. Alternatively, use the VSCode devcontainer.\nDo the following:\n\n1. Run:\n\n```sh\ncomposer install\n```\n\n2. Run from the root of the repository (with `execute` permission):\n\n```sh\n./build/generate-openapi.sh\n```\n\n3. Copy all files from `/generated/src` into `/src`\n\n## Documentation\n\nFor a comprehensive list of examples, check out the [API documentation][api-docs].\n\n## Usage\n\n```php\nuse Dojo_PHP\\ApiFactory;\n\n$apiKey = \"YOUR_API_KEY\";\n$apiPaymentIntent = ApiFactory::createPaymentIntentApi($apiKey);\n\n$req = new CreatePaymentIntentRequest();\n$req-\u003esetReference(\"test\");\n\n$money = new Money();\n$money-\u003esetValue(100);\n$money-\u003esetCurrencyCode(\"GBP\");\n\n$req-\u003esetAmount($money);\n\n$pi = $apiPaymentIntent-\u003epaymentIntentsCreatePaymentIntent(\\Dojo_PHP\\API_VERSION, $req);\n```\n\nFor any requests, bugs, or comments, please [open an issue][issues] or [submit a pull request][pulls]. You can also reach out to us on our [Discord server][discord].\n\n[api-docs]: https://docs.dojo.tech/payments/api\n[issues]: https://github.com/dojo-engineering/Dojo.PHP/issues\n[pulls]: https://github.com/dojo-engineering/Dojo.PHP/pulls\n[dojo]: https://dojo.tech\n[discord]: https://discord.gg/tTG98EWVdB\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojo-engineering%2Fdojo.php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdojo-engineering%2Fdojo.php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdojo-engineering%2Fdojo.php/lists"}