https://github.com/femlolstudio/gacha-club-php-api
This is a simple Gacha Club API. With it you can make a server for online character import-export and data transfer.
https://github.com/femlolstudio/gacha-club-php-api
api club gacha mod php
Last synced: about 1 month ago
JSON representation
This is a simple Gacha Club API. With it you can make a server for online character import-export and data transfer.
- Host: GitHub
- URL: https://github.com/femlolstudio/gacha-club-php-api
- Owner: FemLolStudio
- License: mit
- Created: 2023-11-30T09:36:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T17:50:29.000Z (over 2 years ago)
- Last Synced: 2024-05-02T05:17:22.252Z (about 2 years ago)
- Topics: api, club, gacha, mod, php
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

# Gacha Club PHP API
 [](https://github.com/FemLolStudio/gacha-club-php-api/releases) [](LICENSE.txt) 
This is a simple Gacha Club API. With it you can make a server for online character import-export and data transfer.
[**Download**](https://github.com/FemLolStudio/gacha-club-php-api/releases)
## Setup
1. Rent a web hosting *(For example here: [Contabo](https://contabo.com/en/web-hosting/))*.
2.
- Method 1: [Download the files](https://github.com/FemLol2003/gacha-club-php-api/releases) frim this GitHub repo.
- Method 2: If the web server support Git use it to setup the server.
3. Upload files into the web host.
4. Create the database and run the [`database/database.sql`](database/database.sql) file. *(Recomened to use [phpMyAdmin](https://www.phpmyadmin.net/).)*
5. 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.)*
6. Switching out the links inside the Gacha Club mod. *(Follow [Gacha Club files](#gacha-club-files) steps bellow.)*
7. Using CloudFlare proxy for the web space.**\*** *(Optional)*
> **\*** 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)*
## Enviorment variables
You need to setup these variables to enable connection between the PHP files and the database.
* `SERVER`: mysql server address
- default: `"localhost"`
- For example: `"127.0.0.1"`, `"localhost"`
* `PORT`: mysql server port *(`1`-`65535`)*
- Default: `3306`
* `USER`: mysql username
- For example: `"root"`
* `PASSWORD`: mysql user password
- For example: `"password@123"`
* `DATABASE`: mysql database name
- For example: `"gacha-club"`
> 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_` variables.
## Gacha Club files
You need to switch out from these files these links:
1. **File: `club_export.php`**
- Uploading OC to the server *(Export)*
- ActionScript file: `gacha_club_fla/importexpoort_.as`
- Old link: `https://gacha.club/gclubdata/club_export.php`
- New link: `https:///scripts/club_export.php` *(or similar)*
1. **File: `club_import.php`**
- Downloading OC from the server *(Import)*
- ActionScript file: `gacha_club_fla/importexpoort_.as`
- Old link: `https://gacha.club/gclubdata/club_import.php`
- New link: `https:///scripts/club_import.php` *(or similar)*
1. **File: `club_register.php`**
- Uploading transfer datas to the server *(Data Transfer)*
- ActionScript file: `gacha_club_fla/accounts_.as`
- Old link: `https://lunime.com/gachaclub/gclubdata/club_register.php`
- New link: `https:///scripts/club_register.php` *(or similar)*
1. **File: `club_login.php`**
- Downloading transfer datas from the server *(Restore)*
- ActionScript file: `gacha_club_fla/restore_.as`
- Old link: `https://lunime.com/gachaclub/gclubdata/club_login.php`
- New link: `https:///scripts/club_login.php` *(or similar)*
## License
Gacha 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.