{"id":20540556,"url":"https://github.com/utopia-php/pay","last_synced_at":"2026-02-09T12:18:02.425Z","repository":{"id":42145084,"uuid":"480680196","full_name":"utopia-php/pay","owner":"utopia-php","description":"Lite \u0026 fast micro PHP payments abstraction library that is **easy to use**.","archived":false,"fork":false,"pushed_at":"2026-02-03T11:14:54.000Z","size":247,"stargazers_count":10,"open_issues_count":5,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-02-03T23:29:15.326Z","etag":null,"topics":["hacktoberfest","php","utopia"],"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/utopia-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-04-12T06:22:20.000Z","updated_at":"2025-11-11T00:50:40.000Z","dependencies_parsed_at":"2023-11-24T01:29:55.774Z","dependency_job_id":"1ae6d3f2-0c54-4719-9d51-7921569b5aa0","html_url":"https://github.com/utopia-php/pay","commit_stats":{"total_commits":69,"total_committers":5,"mean_commits":13.8,"dds":"0.13043478260869568","last_synced_commit":"5c5ca70ce0b692eaa04b38f4081af2a68768d761"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/utopia-php/pay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fpay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fpay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fpay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fpay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/utopia-php","download_url":"https://codeload.github.com/utopia-php/pay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/utopia-php%2Fpay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29264410,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["hacktoberfest","php","utopia"],"created_at":"2024-11-16T01:16:12.536Z","updated_at":"2026-02-09T12:18:02.367Z","avatar_url":"https://github.com/utopia-php.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utopia Pay\n\n[![Build Status](https://travis-ci.org/utopia-php/pay.svg?branch=master)](https://travis-ci.com/utopia-php/pay)\n![Total Downloads](https://img.shields.io/packagist/dt/utopia-php/pay.svg)\n[![Discord](https://img.shields.io/discord/564160730845151244?label=discord)](https://appwrite.io/discord)\n\nUtopia Pay library is simple and lite library for accepting payments. This library is aiming to be as simple and easy to learn and use. This library is maintained by the [Appwrite team](https://appwrite.io).\n\nAlthough this library is part of the [Utopia Framework](https://github.com/utopia-php/framework), it is dependency free and can be used as standalone with any other PHP project or framework.\n\n## Getting Started\n\nInstall using composer:\n```bash\ncomposer require utopia-php/pay\n```\n\nGet Secret Key and Publishable Key from your Stripe Account.\n\n```php\nrequire_once '../vendor/autoload.php';\nuse Utopia\\Pay\\Pay;\nuse Utopia\\Pay\\Adapter\\Stripe;\n\n$pay = new Pay(new Stripe('PUBLISHABLE_KEY', 'SECRET_KEY'));\n\n$customer = $pay-\u003ecreateCustomer('Customer One', 'customer@gmail.com');\n\\var_dump($customer);\n\n$pay-\u003esetCurrency('INR');\n$purchase = $pay-\u003epurchase(\n    5000, // price\n    $customer['id'], // customer ID\n    null, // card ID\n    [\n        'description' =\u003e 'some countries require descriptions'\n    ]\n);\n\nvar_dump($purchase);\n```\n\n## System Requirements\n\nUtopia Pay requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.\n\n\n## Contributing\n\nAll code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.\n\nFork the project, create a feature branch, and send us a pull request.\n\nYou can refer to the [Contributing Guide](CONTRIBUTING.md) for more info.\n\n### Testing\n\n```\nvendor/bin/phpunit --configuration phpunit.xml\n```\n\n## Copyright and license\n\nThe MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fpay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Futopia-php%2Fpay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Futopia-php%2Fpay/lists"}