{"id":25953594,"url":"https://github.com/ahmetsezginn/credit-base-system-wp-plugin","last_synced_at":"2025-03-04T15:29:24.592Z","repository":{"id":279491198,"uuid":"938991375","full_name":"ahmetsezginn/Credit-Base-System-Wp-Plugin","owner":"ahmetsezginn","description":"WooCommerce Credit System is a plugin that enables a credit-based digital product download system for WooCommerce. Users can purchase credits and use them to download digital files. Admins can manage user credit balances and create credit-pack products. 🚀","archived":false,"fork":false,"pushed_at":"2025-02-25T20:47:43.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T21:27:32.261Z","etag":null,"topics":["credit-based","credit-based-system","credit-system","digital-downloads","e-commerce","php","plugin","woocommerce","woocommerce-plugin","wordpress","wordpress-plugin","wp-plugin"],"latest_commit_sha":null,"homepage":"https://justpables.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/ahmetsezginn.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}},"created_at":"2025-02-25T20:21:26.000Z","updated_at":"2025-02-25T20:52:52.000Z","dependencies_parsed_at":"2025-02-25T21:27:54.173Z","dependency_job_id":"797cb03d-58d8-445c-841e-18637ad6e15f","html_url":"https://github.com/ahmetsezginn/Credit-Base-System-Wp-Plugin","commit_stats":null,"previous_names":["ahmetsezginn/credit-base-system-wp-plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetsezginn%2FCredit-Base-System-Wp-Plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetsezginn%2FCredit-Base-System-Wp-Plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetsezginn%2FCredit-Base-System-Wp-Plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetsezginn%2FCredit-Base-System-Wp-Plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmetsezginn","download_url":"https://codeload.github.com/ahmetsezginn/Credit-Base-System-Wp-Plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241871583,"owners_count":20034500,"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":["credit-based","credit-based-system","credit-system","digital-downloads","e-commerce","php","plugin","woocommerce","woocommerce-plugin","wordpress","wordpress-plugin","wp-plugin"],"created_at":"2025-03-04T15:29:23.803Z","updated_at":"2025-03-04T15:29:24.562Z","avatar_url":"https://github.com/ahmetsezginn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WooCommerce Credit System\n\nA credit-based digital product download system for WooCommerce. Users can purchase and use credits to download digital files.\n\n## 📜 License\nCompatible with WooCommerce.\n\n---\n\n## 📌 Features\n\n### 🔹 Loan Management Panel\n- **Admin Panel**: Manage users' credit balances.\n\n![Admin Panel](images/admin-panel.png)\n\n### 🔹 Credit Products\n- **Create Credit Products**: Add credit-based products (e.g., 100 Credit Pack).\n\n![Credit Product Settings](images/credit-product-settings.png)\n\n### 🔹 File Download Control\n- **Restricted Access**: Users without sufficient credits cannot download files.\n\n![Insufficient Credits](images/insufficient-credits.png)\n\n### 🔹 My Account Integration\n- **User Dashboard**: Users can view their credit balance in the \"My Account\" section.\n\n![My Credits](images/my-credits.png)\n\n---\n\n## 🛠️ Installation\n\n### 1. Upload to WordPress\n1. Download the latest version.\n2. Go to **WordPress Admin \u003e Plugins \u003e Add New \u003e Upload Plugin**.\n3. Select the `custom-download-credits.zip` file and activate the plugin.\n\n### 2. Manual Installation\n```bash\ncd wp-content/plugins\ngit clone https://github.com/your-username/woocommerce-credit-system.git\n```\n\n---\n\n## 🚀 Usage\n\n### A. Admin Panel\n\n#### 🔹 Creating Credit Products\n- When adding a new product, check **“Credit Product”**.\n- Enter the credit amount (e.g., 100).\n\n#### 🔹 Managing User Credits\n- Edit user credit balances from the **Credit Management** menu.\n\n![Credit Management](images/credit-management.png)\n\n### B. User Side\n\n#### 🔹 Purchasing Credits\n- Add credit pack products to the cart and complete the purchase.\n\n#### 🔹 Downloading Files\n- Users can download files using credits by clicking the **\"Download\"** button on the product page.\n\n---\n\n## 💻 For Developers\n\n### 📂 Project Structure\n```\n📦 woocommerce-credit-system\n ┣ 📂 admin      # Admin panel classes\n ┣ 📂 public     # Frontend logic\n ┣ 📂 includes   # Core functionality\n ┣ 📂 assets     # CSS/JS/Images\n ┣ 📜 README.md\n ┗ 📜 LICENSE\n```\n\n### 🔧 Dependencies\n- PHP **7.4+**\n- WordPress **5.6+**\n- WooCommerce **5.0+**\n\n### 🔌 Hooks \u0026 Filters\n```php\n// Custom credit calculation filter\nadd_filter('cdc_credit_calculation', function($credit, $product_id) {\n    return $credit * 2; // Double the credit value\n});\n```\n\n---\n\n## 🤝 Contribution\n1. **Fork** the repository.\n2. **Create a new branch**: \n   ```bash\n   git checkout -b feature/new-feature\n   ```\n3. **Commit** your changes.\n4. **Open a Pull Request**.\n\n---\n\n## ❗ Support\nFor bug reports or feature requests, please open an **issue** on GitHub.\n\n---\n\n## ⭐ Thank You!\nThank you for using the WooCommerce Credit System! If you like it, consider giving it a ⭐ on GitHub!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetsezginn%2Fcredit-base-system-wp-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetsezginn%2Fcredit-base-system-wp-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetsezginn%2Fcredit-base-system-wp-plugin/lists"}