{"id":25695664,"url":"https://github.com/femlolstudio/gacha-club-php-api","last_synced_at":"2026-05-15T22:02:58.342Z","repository":{"id":210018648,"uuid":"725505937","full_name":"FemLolStudio/gacha-club-php-api","owner":"FemLolStudio","description":"This is a simple Gacha Club API. With it you can make a server for online character import-export and data transfer.","archived":false,"fork":false,"pushed_at":"2023-11-30T17:50:29.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T05:17:22.252Z","etag":null,"topics":["api","club","gacha","mod","php"],"latest_commit_sha":null,"homepage":"","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/FemLolStudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-30T09:36:07.000Z","updated_at":"2023-11-30T09:49:42.000Z","dependencies_parsed_at":"2023-11-30T10:44:55.737Z","dependency_job_id":null,"html_url":"https://github.com/FemLolStudio/gacha-club-php-api","commit_stats":null,"previous_names":["femlol2003/gacha-club-php-api","femlolstudio/gacha-club-php-api"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FemLolStudio%2Fgacha-club-php-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FemLolStudio%2Fgacha-club-php-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FemLolStudio%2Fgacha-club-php-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FemLolStudio%2Fgacha-club-php-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FemLolStudio","download_url":"https://codeload.github.com/FemLolStudio/gacha-club-php-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240582031,"owners_count":19824146,"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":["api","club","gacha","mod","php"],"created_at":"2025-02-25T00:52:20.031Z","updated_at":"2025-10-13T11:04:44.133Z","avatar_url":"https://github.com/FemLolStudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Banner](https://lunime.com/gachaclub/webbanner.jpg)\n\n# Gacha Club PHP API\n\n![Static Badge](https://img.shields.io/badge/language-php-purple) [![GitHub release](https://img.shields.io/github/v/release/FemLolStudio/gacha-club-php-api)](https://github.com/FemLolStudio/gacha-club-php-api/releases) [![GitHub License](https://img.shields.io/github/license/FemLolStudio/gacha-club-php-api)](LICENSE.txt) ![GitHub last commit (by committer)](https://img.shields.io/github/last-commit/FemLolStudio/gacha-club-php-api)\n\nThis is a simple Gacha Club API. With it you can make a server for online character import-export and data transfer.\n\n[**Download**](https://github.com/FemLolStudio/gacha-club-php-api/releases)\n\n## Setup\n\n1. Rent a web hosting *(For example here: [Contabo](https://contabo.com/en/web-hosting/))*.\n2. \n    - Method 1: [Download the files](https://github.com/FemLol2003/gacha-club-php-api/releases) frim this GitHub repo.\n    - Method 2: If the web server support Git use it to setup the server.\n3. Upload files into the web host.\n4. Create the database and run the [`database/database.sql`](database/database.sql) file. *(Recomened to use [phpMyAdmin](https://www.phpmyadmin.net/).)*\n5. Apply [Enviorment variables](#enviorment-variables) or write them directly into the [`scripts/lib/connect.php`](scripts/lib/connect.php). *(Follow [Enviorment variables](#enviorment-variables) steps bellow.)*\n6. Switching out the links inside the Gacha Club mod. *(Follow [Gacha Club files](#gacha-club-files) steps bellow.)*\n7. Using CloudFlare proxy for the web space.**\\*** *(Optional)*\n\n\u003e **\\*** It's recomened to use CloudFlare proxy, because the Adobe AIR runtime somewhy don't know the Let's Encrypt certificates. *(It's required for https connections)*\n\n## Enviorment variables\n\nYou need to setup these variables to enable connection between the PHP files and the database.\n\n* `SERVER`: mysql server address\n    - default: `\"localhost\"`\n    - For example: `\"127.0.0.1\"`, `\"localhost\"`\n* `PORT`: mysql server port *(`1`-`65535`)*\n    - Default: `3306`\n* `USER`: mysql username\n    - For example: `\"root\"`\n* `PASSWORD`: mysql user password\n    - For example: `\"password@123\"`\n* `DATABASE`: mysql database name\n    - For example: `\"gacha-club\"`\n\n\u003e If you can't setup enviorment variables write the values directly into the [`scripts/lib/connect.php`](scripts/lib/connect.php) file into the `$static_\u003cname\u003e` variables.\n\n## Gacha Club files\n\nYou need to switch out from these files these links:\n\n1. **File: `club_export.php`**\n    - Uploading OC to the server *(Export)*\n    - ActionScript file: `gacha_club_fla/importexpoort_\u003cnumber\u003e.as`\n    - Old link: `https://gacha.club/gclubdata/club_export.php`\n    - New link: `https://\u003cyour_domain\u003e/scripts/club_export.php` *(or similar)*\n1. **File: `club_import.php`**\n    - Downloading OC from the server *(Import)*\n    - ActionScript file: `gacha_club_fla/importexpoort_\u003cnumber\u003e.as`\n    - Old link: `https://gacha.club/gclubdata/club_import.php`\n    - New link: `https://\u003cyour_domain\u003e/scripts/club_import.php` *(or similar)*\n1. **File: `club_register.php`**\n    - Uploading transfer datas to the server *(Data Transfer)*\n    - ActionScript file: `gacha_club_fla/accounts_\u003cnumber\u003e.as`\n    - Old link: `https://lunime.com/gachaclub/gclubdata/club_register.php`\n    - New link: `https://\u003cyour_domain\u003e/scripts/club_register.php` *(or similar)*\n1. **File: `club_login.php`**\n    - Downloading transfer datas from the server *(Restore)*\n    - ActionScript file: `gacha_club_fla/restore_\u003cnumber\u003e.as`\n    - Old link: `https://lunime.com/gachaclub/gclubdata/club_login.php`\n    - New link: `https://\u003cyour_domain\u003e/scripts/club_login.php` *(or similar)*\n\n## License\n\nGacha Club PHP API is licensed under the [MIT License](LICENSE.txt). You're free to use, modify, and distribute the code as you see fit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemlolstudio%2Fgacha-club-php-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffemlolstudio%2Fgacha-club-php-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffemlolstudio%2Fgacha-club-php-api/lists"}