{"id":36980009,"url":"https://github.com/explorer-cash/api-php","last_synced_at":"2026-01-13T22:49:37.724Z","repository":{"id":45809509,"uuid":"293150031","full_name":"explorer-cash/api-php","owner":"explorer-cash","description":"Accept Bitcoin, Bitcoin Cash, Ethereum, USDT, USDT, ... payments directly into your wallet without setting up the whole infrastructure for each crypto currency.","archived":false,"fork":false,"pushed_at":"2021-01-24T19:18:57.000Z","size":11,"stargazers_count":17,"open_issues_count":2,"forks_count":13,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-07T03:16:42.121Z","etag":null,"topics":["api","bitcoin","bitcoincash","blockchain","ethereum","litecoin","payment","php","ripple","tether","usdc"],"latest_commit_sha":null,"homepage":"https://www.explorer.cash","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/explorer-cash.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":"2020-09-05T20:33:01.000Z","updated_at":"2025-05-03T02:56:08.000Z","dependencies_parsed_at":"2022-07-19T14:38:59.415Z","dependency_job_id":null,"html_url":"https://github.com/explorer-cash/api-php","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/explorer-cash/api-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explorer-cash%2Fapi-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explorer-cash%2Fapi-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explorer-cash%2Fapi-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explorer-cash%2Fapi-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explorer-cash","download_url":"https://codeload.github.com/explorer-cash/api-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explorer-cash%2Fapi-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","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":["api","bitcoin","bitcoincash","blockchain","ethereum","litecoin","payment","php","ripple","tether","usdc"],"created_at":"2026-01-13T22:49:37.658Z","updated_at":"2026-01-13T22:49:37.718Z","avatar_url":"https://github.com/explorer-cash.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![N|Solid](https://www.explorer.cash/logo-dark.png)](https://www.explorer.cash/)\n\n## explorer.cash API for PHP\n\nThe library provide an access to explorer.cash Blockchain API for PHP applications.\nYou can easily add payment request and receive a notification when a crypto payment is confirmed on the blockchain.\nexplorer.cash Blockchain API supports multiple cryptocurrencies like Bitcoin (BTC), Bitcoin Cash (BCH), Tether (USDT), USD Coin (USDC), Ethereum (ETH), Litecoin (LTC) ...\n\n:green_book: [See explorer.cash Blockchain API documentation](https://www.explorer.cash/en/blockchain-api-documentation.html)\n\n## Requirements\n\nPHP version \u003e= 7.x\n\n## How to install\n\n```\n$ composer require explorer-cash/api-php\n```\n\n## How to use\n\n### Register a payment request to explorer.cash\n\n```php\nuse ExplorerCash\\PaymentRequest;\n\n$payment_request = new PaymentRequest();\n\n$payment_request-\u003epush([\n    'unit' =\u003e 'BTC',\n    'address' =\u003e '1R9NpmdVpC4eKajqutKqSSEn5hH4DEkLs',\n    'payment_reference' =\u003e 'ORD-4579',\n    'amount' =\u003e '0.084',\n    'callback_url' =\u003e 'https://your-callback-url',\n    'timeout' =\u003e 10,\n    'confirmations' =\u003e 3\n]);\n\n// In your code\n$cart = Cart::byReference('ORD-4579');\n\n$cart-\u003epayment_id = $payment_request-\u003epaymentId();\n$cart-\u003esave();\n```\n\n### Retrieve payment request when your callback URL is called\n\nYou need to check that \"payment_id\" associated to the \"payment_reference\" are the same.\n\n```php\nuse ExplorerCash\\PaymentRequest;\n\n$payment_request = new PaymentRequest();\n\n$payment_data = $payment_request-\u003epull();\n\n// In your code\n$cart = Cart::byReference($payment_data['payment_reference']);\n\nif ($cart-\u003epayment_id === $payment_data['payment_id']) {\n    if ($payment_data['status'] === 'PAID') {\n        $cart-\u003eisPaid = true;\n    }\n}\n```\n\n### Subscribe to explorer.cash crypto currencies exchange rates\n\nYou will receive the exchange rates of top 100 cryptos in the currency you provided.\n\n```php\nuse ExplorerCash\\Api;\n\nApi::subscribeRates([\n    'currency' =\u003e 'EUR',\n    'callback_url' =\u003e 'https://your-callback-url'\n]);\n```\n\n## Support or Contact\n\nHaving trouble with this library or explorer.cash API ? [Contact our support](https://www.explorer.cash/en/contact-us) and we’ll help you sort it out.\n\n\n## License\n\nGNU Lesser General Public License v3.0\n\n© 2020 explorer.cash. All Rights Reserved.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplorer-cash%2Fapi-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplorer-cash%2Fapi-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplorer-cash%2Fapi-php/lists"}