{"id":27151381,"url":"https://github.com/checkout/checkout-php-library","last_synced_at":"2025-04-08T14:40:05.142Z","repository":{"id":29198609,"uuid":"32729873","full_name":"checkout/checkout-php-library","owner":"checkout","description":"Checkout.com API PHP Library","archived":false,"fork":false,"pushed_at":"2020-07-29T16:56:41.000Z","size":357,"stargazers_count":24,"open_issues_count":5,"forks_count":29,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-25T20:03:26.355Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/checkout.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":null,"security":null,"support":null}},"created_at":"2015-03-23T12:06:26.000Z","updated_at":"2021-10-16T22:38:46.000Z","dependencies_parsed_at":"2022-08-17T19:41:04.979Z","dependency_job_id":null,"html_url":"https://github.com/checkout/checkout-php-library","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkout%2Fcheckout-php-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkout%2Fcheckout-php-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkout%2Fcheckout-php-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/checkout%2Fcheckout-php-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/checkout","download_url":"https://codeload.github.com/checkout/checkout-php-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247863693,"owners_count":21008952,"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":[],"created_at":"2025-04-08T14:40:04.273Z","updated_at":"2025-04-08T14:40:04.994Z","avatar_url":"https://github.com/checkout.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e**:heavy_exclamation_mark: This library points to Checkout.com's classic API. Please refer to the [latest PHP SDK](https://github.com/checkout/checkout-sdk-php) instead to benefit from the updated API**\n\n### Requirements\n\nPHP 5 \u003e 5.3.0\n\n### How to use the library\n\nAdd the latest version of checkout-php-library into your project by using Composer or manually:\n\n__Using Composer (Recommended)__\n\nEither run the following command in the root directory of your project:\n```\ncomposer require checkout/checkout-php-api\n```\n\nOr require the Checkout.com package inside the composer.json of your project:\n```\n\"require\": {\n    \"php\": \"\u003e=5.2.4\",\n    \"checkout/checkout-php-api\": \"1.2.18\"\n},\n```\n__Manually__\n\nDownload or clone the github repository, [master](https://github.com/checkout/checkout-php-library/archive/master.zip) or download a [release](https://github.com/checkout/checkout-php-library/releases), and manually add it to your project.\n\n### Example\n\nAfter adding the library to your project, include the file autoload.php found in root of the library.\n```html\ninclude 'checkout-php-api/autoload.php';\n```\nYou will be required to set the secret key when initialising a new **APIClient** instance. You will also have option for other configurations defined in AppSettings.php file. \n\nThe constructor available for configuration:\n```html\n __construct($secretKey, $env = 'sandbox' ,$debugMode = false, $connectTimeout = 60, $readTimeout =60)\n\n //Example:\nuse com\\checkout;\n$apiClient = new checkout\\ApiClient('sk_test_XXXXXXXXXXXX');\n```\nBy default both **$connectTimeout** and **$readTimeout** are to 60 seconds. You may change them as needed.\n\n**$env** accepts either `'sandbox'` or `'live'` as value.  This parameter allow you to shift between the sandbox environment or live environment. By Default the sandbox environment will be used. \n\n### Sample code for:\n\n  - [Tokens](https://github.com/checkout/checkout-php-library/wiki/Tokens)\n  \n  - [Charges](https://github.com/checkout/checkout-php-library/wiki/Charges)\n  \n  - [Cards](https://github.com/checkout/checkout-php-library/wiki/Cards)\n  \n  - [Customers](https://github.com/checkout/checkout-php-library/wiki/Customers)\n\n  - [Recurring Payments](https://github.com/checkout/checkout-php-library/wiki/RecurringPayments)\n  \n  - [Local Payment Providers](https://github.com/checkout/checkout-php-library/wiki/lpp)\n\n  - [Reporting](https://github.com/checkout/checkout-php-library/wiki/Reporting)\n\n  - [Visa Checkout](https://github.com/checkout/checkout-php-library/wiki/VisaCheckout)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckout%2Fcheckout-php-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheckout%2Fcheckout-php-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheckout%2Fcheckout-php-library/lists"}