{"id":27401043,"url":"https://github.com/ammarfaizi2/klikbca","last_synced_at":"2025-04-14T03:53:43.270Z","repository":{"id":21246844,"uuid":"84713293","full_name":"ammarfaizi2/KlikBCA","owner":"ammarfaizi2","description":"KlikBCA Scraper","archived":false,"fork":false,"pushed_at":"2022-12-26T00:13:57.000Z","size":50,"stargazers_count":78,"open_issues_count":1,"forks_count":24,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-01T13:26:43.999Z","etag":null,"topics":["banking","bca","ibank","klikbca"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ammarfaizi2.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":"2017-03-12T09:07:15.000Z","updated_at":"2024-01-09T08:18:41.000Z","dependencies_parsed_at":"2023-01-11T21:08:09.643Z","dependency_job_id":null,"html_url":"https://github.com/ammarfaizi2/KlikBCA","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarfaizi2%2FKlikBCA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarfaizi2%2FKlikBCA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarfaizi2%2FKlikBCA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ammarfaizi2%2FKlikBCA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ammarfaizi2","download_url":"https://codeload.github.com/ammarfaizi2/KlikBCA/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248819363,"owners_count":21166474,"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":["banking","bca","ibank","klikbca"],"created_at":"2025-04-14T03:53:42.762Z","updated_at":"2025-04-14T03:53:43.261Z","avatar_url":"https://github.com/ammarfaizi2.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KlikBCA\nThis is the KlikBCA scraper library written in PHP by Ammar Faizi.\n\n# Features\n1. Get account balance information.\n2. Get account statements given the date range.\n\n# Examples\n### 1. Get account balance information.\n```php\n\u003c?php\n// SPDX-License-Identifier: GPL-2.0-only\n\nrequire __DIR__.\"/src/KlikBCA/KlikBCA.php\";\ndefine(\"COOKIE_FILE\", __DIR__.\"/cookie.tmp\");\n\n/*\n * Uncomment this define() to use proxy.\n */\n// define(\"PROXY\", \"socks5://139.180.140.164:1080\");\n\n$username = \"your_klikbca_username\";\n$password = \"your_klikbca_password\";\n\n/**\n * Show the account balance information.\n *\n * @param string $username\n * @param string $password\n * @return bool\n */\nfunction show_balance($username, $password)\n{\n\t$bca = new KlikBCA\\KlikBCA($username, $password, COOKIE_FILE);\n\n\t/*\n\t * Use proxy if the PROXY constant is defined.\n\t */\n\tif (defined(\"PROXY\"))\n\t\t$bca-\u003esetProxy(PROXY);\n\n\t$ret = $bca-\u003elogin();\n\tif (!$ret)\n\t\tgoto err;\n\n\t$ret = $bca-\u003ebalanceInquiry();\n\tif (!$ret)\n\t\tgoto err;\n\n\tprintf(\"Balance information:\\n%s\\n\\n\",\n               json_encode($ret, JSON_PRETTY_PRINT));\n\treturn;\n\nerr:\n\tprintf(\"Error: %s\\n\", $bca-\u003egetErr());\n}\nshow_balance($username, $password);\n```\n\n### 2. Get account statements given the date range.\n```php\n\u003c?php\n// SPDX-License-Identifier: GPL-2.0-only\n\nrequire __DIR__.\"/src/KlikBCA/KlikBCA.php\";\ndefine(\"COOKIE_FILE\", __DIR__.\"/cookie.tmp\");\n\n/*\n * Uncomment this define() to use proxy.\n */\n// define(\"PROXY\", \"socks5://139.180.140.164:1080\");\n\n$username = \"your_klikbca_username\";\n$password = \"your_klikbca_password\";\n\n/**\n * Show account statements given the date range.\n *\n * @param string $username\n * @param string $password\n * @param string $startDate\n * @param string $endDate\n * @return bool\n */\nfunction show_account_statements($username, $password, $startDate, $endDate)\n{\n\t$bca = new KlikBCA\\KlikBCA($username, $password, COOKIE_FILE);\n\n\t/*\n\t * Use proxy if the PROXY constant is defined.\n\t */\n\tif (defined(\"PROXY\"))\n\t\t$bca-\u003esetProxy(PROXY);\n\n\t$ret = $bca-\u003elogin();\n\tif (!$ret)\n\t\tgoto err;\n\n\t$ret = $bca-\u003eaccountStatement($startDate, $endDate);\n\tif (!$ret)\n\t\tgoto err;\n\n\tprintf(\"Account statements for %s to %s:\\n%s\\n\\n\", $startDate, $endDate,\n\t       json_encode($ret, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES));\n\treturn;\n\nerr:\n\tprintf(\"Error: %s\\n\", $bca-\u003egetErr());\n}\n$startDate = \"2022-04-25\";\n$endDate   = \"2022-05-01\";\nshow_account_statements($username, $password, $startDate, $endDate);\n```\n\n# License\nThis project is licensed under the GNU GPL v2.\n\n# Contributing\nI welcome pull request through the GitHub repository:\nhttps://github.com/ammarfaizi2/KlikBCA\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarfaizi2%2Fklikbca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fammarfaizi2%2Fklikbca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fammarfaizi2%2Fklikbca/lists"}