{"id":29311406,"url":"https://github.com/dev30na/daramet-donation-sync","last_synced_at":"2026-04-15T18:02:06.407Z","repository":{"id":302945704,"uuid":"1014019649","full_name":"dev30na/daramet-donation-sync","owner":"dev30na","description":"افزونه درگاه پرداخت دونیت دارمت برای سایت و ربات تگرام با نصب اسان","archived":false,"fork":false,"pushed_at":"2025-07-29T21:01:24.000Z","size":54,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T21:55:32.288Z","etag":null,"topics":["donation","gateway-api","mysql","payment-gateway","php","telegrambot"],"latest_commit_sha":null,"homepage":"https://daramet.com","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/dev30na.png","metadata":{"files":{"readme":"README.en.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}},"created_at":"2025-07-04T22:20:30.000Z","updated_at":"2025-07-29T21:14:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"8eac3c43-576e-4028-b4de-c4ec8aad31a5","html_url":"https://github.com/dev30na/daramet-donation-sync","commit_stats":null,"previous_names":["dev30na/daramet-donation-sync"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/dev30na/daramet-donation-sync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev30na%2Fdaramet-donation-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev30na%2Fdaramet-donation-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev30na%2Fdaramet-donation-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev30na%2Fdaramet-donation-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev30na","download_url":"https://codeload.github.com/dev30na/daramet-donation-sync/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev30na%2Fdaramet-donation-sync/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31853279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["donation","gateway-api","mysql","payment-gateway","php","telegrambot"],"created_at":"2025-07-07T08:14:36.091Z","updated_at":"2026-04-15T18:02:06.398Z","avatar_url":"https://github.com/dev30na.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\n  \u003ca href=\"README.md\"\u003eنسخه فارسی\u003c/a\u003e\n\n# 💸 Automated Donation Transactions with PHP + Telegram Bot\n\nThis PHP script helps you automatically fetch donation transactions from the Daramet API, store them in your database, and send notifications via a Telegram bot. It filters out duplicate transactions, updates user wallets, and converts amounts from Rial to Toman.\n\n---\n\n## 🎯 Features\n\n* Direct connection to Daramet API\n* Store donation data in MySQL\n* Prevent duplicate entries\n* Send notifications to Telegram (admin and user)\n* Run via cron job every 5 minutes\n* Amount conversion from Rial to Toman\n* Increment user wallet balance by user ID\n* IP-based access control (only server IP allowed)\n* Bot extracts ID\n* Site extracts email\n---\n\n## ⚙️ Quick Setup\n\nRun the appropriate installer script with one of the following commands:\n\n```bash\nbash \u003c(curl -sSL https://raw.githubusercontent.com/dev30na/daramet-donation-sync/main/install-web.sh)\n```\n\n\u003e Advanced one-line installer for the **web** version\n\n```bash\nbash \u003c(curl -sSL https://raw.githubusercontent.com/dev30na/daramet-donation-sync/main/install-bot.sh)\n```\n\n\u003e Advanced one-line installer for the **Telegram bot** version\n\n---\n\n## 🧱 Database Table: `donation_logs`\n\nUse this SQL to manually create the donation log table if needed:\n\n```sql\nCREATE TABLE IF NOT EXISTS donation_logs (\n    donate_id VARCHAR(255) PRIMARY KEY,\n    userid VARCHAR(255) NOT NULL,\n    amount INT NOT NULL,\n    created_at DATETIME NOT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;\n```\n\n---\n\n## 📬 Telegram Notifications (Bot Version Only)\n\nIf you provide your Telegram bot token and chat IDs, every new donation will be sent automatically to the admin and the donor. This helps you stay updated without logging into a control panel.\n\n---\n\n## 👤 Developer\n\n\u003e **Sina (dev30na)**\n\u003e [🌐 GitHub Profile](https://github.com/dev30na)\n\u003e Developed with ❤️\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev30na%2Fdaramet-donation-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev30na%2Fdaramet-donation-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev30na%2Fdaramet-donation-sync/lists"}