{"id":31788925,"url":"https://github.com/zerosdev/durianpay-php-client","last_synced_at":"2026-01-20T16:24:08.077Z","repository":{"id":57090196,"uuid":"429083086","full_name":"zerosdev/durianpay-php-client","owner":"zerosdev","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-21T08:54:33.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T00:08:46.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/zerosdev.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,"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":"2021-11-17T14:40:38.000Z","updated_at":"2024-08-21T08:53:13.000Z","dependencies_parsed_at":"2024-08-21T10:07:14.739Z","dependency_job_id":"bb1988da-8be3-46b7-8dee-30bf4bf7f41f","html_url":"https://github.com/zerosdev/durianpay-php-client","commit_stats":{"total_commits":27,"total_committers":5,"mean_commits":5.4,"dds":"0.18518518518518523","last_synced_commit":"e1e4513f6f7c4a6f4088f4ac5f184bd2aea4a0d9"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/zerosdev/durianpay-php-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Fdurianpay-php-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Fdurianpay-php-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Fdurianpay-php-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Fdurianpay-php-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerosdev","download_url":"https://codeload.github.com/zerosdev/durianpay-php-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerosdev%2Fdurianpay-php-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: 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":[],"created_at":"2025-10-10T14:29:09.694Z","updated_at":"2026-01-20T16:24:08.060Z","avatar_url":"https://github.com/zerosdev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003edurianpay-php-client\u003c/h1\u003e\n\u003ch6 align=\"center\"\u003e\u003c/h6\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/v/release/ZerosDev/durianpay-php-client?include_prereleases\" alt=\"release\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/ZerosDev/durianpay-php-client\" alt=\"language\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/ZerosDev/durianpay-php-client\" alt=\"license\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/code-size/ZerosDev/durianpay-php-client\" alt=\"size\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/downloads/ZerosDev/durianpay-php-client/total\" alt=\"downloads\"/\u003e\n  \u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg\" alt=\"pulls\"/\u003e\n\u003c/p\u003e\n\n## About\n\nThis library give you an easy way to call DurianPay API in elegant code style. Example :\n\n```php\nDurianpay::orders()-\u003efetch();\n```\n```php\nDurianpay::payments()\n    -\u003esetType('VA')\n    -\u003esetRequest(function (Request $request) {\n        $request-\u003esetOrderId('ord_JGytr64yGj8')\n            -\u003esetBankCode('XXX')\n            -\u003esetName('Nama Pelanggan')\n            -\u003esetAmount(10000);\n    })\n    -\u003echarge()\n```\n\n## Installation\n\n1. Run command\n\u003cpre\u003e\u003ccode\u003ecomposer require zerosdev/durianpay-php-client\u003c/code\u003e\u003c/pre\u003e\n\n### The following steps only needed if you are using Laravel\n\n2. Then\n\u003cpre\u003e\u003ccode\u003ephp artisan vendor:publish --provider=\"ZerosDev\\Durianpay\\Laravel\\ServiceProvider\"\u003c/code\u003e\u003c/pre\u003e\n\n3. Edit **config/durianpay.php** and put your API credentials\n\n## Usage\n\n### Laravel\n\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers;\n\nuse Durianpay;\nuse ZerosDev\\Durianpay\\Components\\Customer\\Customer;\nuse ZerosDev\\Durianpay\\Components\\Customer\\Adress;\nuse ZerosDev\\Durianpay\\Components\\Customer\\Info;\nuse ZerosDev\\Durianpay\\Components\\Items;\nuse ZerosDev\\Durianpay\\Components\\Metadata;\n\nclass YourController extends Controller\n{\n    public function index()\n    {\n        $order = Durianpay::orders()\n            -\u003esetAmount(10000)\n            -\u003esetPaymentOption('full_payment')\n            -\u003esetCurrency('IDR')\n            -\u003esetOrderRefId(\"123456\")\n            -\u003esetCustomer(function (Customer $customer) {\n                $customer-\u003esetEmail('email@customer.com')\n                    -\u003esetAddress(function (Address $address) {\n                        $address-\u003esetReceiverName('Nama Penerima');\n                    });\n            })\n            -\u003esetItems(function (Items $items) {\n                $items-\u003eadd('Nama Produk', 10000, 1, 'https://google.com/product.jpg');\n            })\n            -\u003esetMetadata(function (Metadata $metadata) {\n                $metadata-\u003esetMerchantRef('123456789');\n            })\n            -\u003ecreate();\n            \n        dd($order);\n    }\n}\n```\n\n### Non-Laravel\n\n```php\n\u003c?php\n\nrequire 'path/to/your/vendor/autoload.php';\n\nuse ZerosDev\\Durianpay\\Client;\nuse ZerosDev\\Durianpay\\Components\\Customer\\Customer;\nuse ZerosDev\\Durianpay\\Components\\Customer\\Adress;\nuse ZerosDev\\Durianpay\\Components\\Customer\\Info;\nuse ZerosDev\\Durianpay\\Components\\Items;\nuse ZerosDev\\Durianpay\\Components\\Metadata;\n\n$durianpay = new Client('your_api_key_here');\n\n$order = $durianpay-\u003eorders()\n    -\u003esetAmount(10000)\n    -\u003esetPaymentOption('full_payment')\n    -\u003esetCurrency('IDR')\n    -\u003esetOrderRefId(\"123456\")\n    -\u003esetCustomer(function (Customer $customer) {\n        $customer-\u003esetEmail('email@customer.com')\n            -\u003esetAddress(function (Address $address) {\n                $address-\u003esetReceiverName('Nama Penerima');\n            });\n    })\n    -\u003esetItems(function (Items $items) {\n        $items-\u003eadd('Nama Produk', 10000, 1, 'https://google.com/product.jpg');\n    })\n    -\u003esetMetadata(function (Metadata $metadata) {\n        $metadata-\u003esetMerchantRef('123456789');\n    })\n    -\u003ecreate();\n    \nprint_r($order);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerosdev%2Fdurianpay-php-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerosdev%2Fdurianpay-php-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerosdev%2Fdurianpay-php-client/lists"}