{"id":19175131,"url":"https://github.com/phpjuice/paypal-http-client","last_synced_at":"2025-10-30T20:47:12.461Z","repository":{"id":43823463,"uuid":"413923952","full_name":"phpjuice/paypal-http-client","owner":"phpjuice","description":"PHP HTTP Client for PayPal's REST API","archived":false,"fork":false,"pushed_at":"2022-11-25T12:53:54.000Z","size":47,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-15T04:51:32.721Z","etag":null,"topics":["http-client","paypal","paypal-checkout","paypal-rest-api"],"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/phpjuice.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-05T17:52:29.000Z","updated_at":"2024-10-12T03:40:00.000Z","dependencies_parsed_at":"2022-09-22T15:10:59.230Z","dependency_job_id":null,"html_url":"https://github.com/phpjuice/paypal-http-client","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpaypal-http-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpaypal-http-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpaypal-http-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpjuice%2Fpaypal-http-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpjuice","download_url":"https://codeload.github.com/phpjuice/paypal-http-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252935967,"owners_count":21828050,"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":["http-client","paypal","paypal-checkout","paypal-rest-api"],"created_at":"2024-11-09T10:21:11.254Z","updated_at":"2025-10-30T20:47:12.361Z","avatar_url":"https://github.com/phpjuice.png","language":"PHP","funding_links":["https://developer.paypal.com/developer/applications","https://developer.paypal.com/docs/"],"categories":[],"sub_categories":[],"readme":"# PayPal HTTP Client\n\n![Tests](https://github.com/phpjuice/paypal-http-client/workflows/Tests/badge.svg?branch=main)\n[![Latest Stable Version](http://poser.pugx.org/phpjuice/paypal-http-client/v)](https://packagist.org/packages/phpjuice/paypal-http-client)\n[![Total Downloads](http://poser.pugx.org/phpjuice/paypal-http-client/downloads)](https://packagist.org/packages/phpjuice/paypal-http-client)\n[![License](http://poser.pugx.org/phpjuice/paypal-http-client/license)](https://packagist.org/packages/phpjuice/paypal-http-client)\n\nThis Package is a PHP Http Client. It provides a simple, fluent API to interact with PayPal rest API.\n\nTo learn all about it, head over to the extensive [documentation](https://phpjuice.gitbook.io/paypal-checkout-sdk).\n\n## Installation\n\nThis Package requires PHP 7.4 or higher.\n\nOne can install this package via Composer.\n\n```bash\ncomposer require \"phpjuice/paypal-http-client\"\n```\n\n## Setup\n\nPayPal HTTP Client is designed to simplify using the new PayPal checkout api in your app.\n\n### Setup Credentials\n\nGet client ID and client secret by visiting\nthe [PayPal Developer Account](https://developer.paypal.com/developer/applications) and\ngenerating a REST API app.\n\n### Setup Paypal Client\n\nIn order to communicate with PayPal platform we need to set up a client first :\n\n#### Create a client with sandbox environment:\n\n```php\n\u003c?php\n\nuse PayPal\\Http\\Environment\\SandboxEnvironment;\nuse PayPal\\Http\\PayPalClient;\n\n// client id and client secret retrieved from PayPal\n$clientId = \"\u003c\u003cPAYPAL-CLIENT-ID\u003e\u003e\";\n$clientSecret = \"\u003c\u003cPAYPAL-CLIENT-SECRET\u003e\u003e\";\n\n// create a new sandbox environment\n$environment = new SandboxEnvironment($clientId, $clientSecret);\n\n// create a new client\n$client = new PayPalClient($environment);\n```\n\n#### Create a client with production environment:\n\n```php\n\u003c?php\n\nuse PayPal\\Http\\Environment\\ProductionEnvironment;\nuse PayPal\\Http\\PayPalClient;\n\n// client id and client secret retrieved from PayPal\n$clientId = \"\u003c\u003cPAYPAL-CLIENT-ID\u003e\u003e\";\n$clientSecret = \"\u003c\u003cPAYPAL-CLIENT-SECRET\u003e\u003e\";\n\n// create a new sandbox environment\n$environment = new ProductionEnvironment($clientId, $clientSecret);\n\n// create a new client\n$client = new PayPalClient($environment);\n```\n\n## Changelog\n\nPlease see the [CHANGELOG](changelog.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](./.github/CONTRIBUTING.md) for details and a todo list.\n\n## Security\n\nIf you discover any security related issues, please email author instead of using the issue tracker.\n\n## Credits\n\n- [PayPal Docs](https://developer.paypal.com/docs/)\n- [Gitbook](https://www.gitbook.com/)\n\n## License\n\nPlease see the [Licence](./LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpjuice%2Fpaypal-http-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpjuice%2Fpaypal-http-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpjuice%2Fpaypal-http-client/lists"}