đ Check IGN API
Game Nickname Lookup - Deployment Guide
â
Ready for Shared Hosting
đ Complete Documentation
â ī¸ No Node.js Required
đ System Requirements
â
Required
- PHP 7.4+
- MySQL 5.7+ or MariaDB
- cURL Extension
- mysqli Extension
- Shared Hosting (Standard)
â NOT Required
- Node.js
- npm
- Docker
- VPS/Dedicated Server
- Command Line Access
â This works on any standard PHP hosting with MySQL!
đ Quick Start (5 Minutes)
- Upload Files - Via FTP, upload all files to public_html/
- Create Database - In cPanel/Plesk, create database "api_games"
- Import Schema - Import database.sql file via phpMyAdmin
- Configure - Rename .env.example to .env and add database credentials
- Verify - Open config_check.php in browser, then delete it
đ File Upload Instructions
Using FTP (Recommended for Shared Hosting)
- Download FTP client: FileZilla (free) or WinSCP
- Connect with your hosting FTP credentials
- Navigate to public_html folder
- Drag & drop all files from check-ign-main folder
- Wait for upload to complete
đĄ Tip: Get FTP credentials from your hosting control panel (cPanel, Plesk, etc.)
đī¸ Database Setup
Via phpMyAdmin (Easy Way)
- Log into your hosting control panel (cPanel)
- Open "phpMyAdmin"
- Click "New Database"
- Enter name:
api_games
- Select newly created database
- Go to "Import" tab
- Choose database.sql file
- Click "Go" to import
â Database is now ready!
âī¸ Configuration
Step 1: Rename the File
Rename: .env.example
To: .env
Step 2: Edit .env File
Open .env in a text editor and enter your database credentials:
DB_HOST=localhost
DB_USER=your_database_user
DB_PASS=your_database_password
DB_NAME=api_games
âšī¸ Note: Get DB_USER and password from your hosting control panel
â
Verification
Step 1: Run Health Check
- Open browser:
https://yourdomain.com/config_check.php
- Check all items are â (green)
- If any are â (red), fix the issue first
Step 2: Delete config_check.php
â ī¸ Important: Delete config_check.php via FTP after verification for security
Step 3: Test API
Send a test request:
POST https://yourdomain.com/api_example.php
game=GROWTOPIA
user_id=Mrshadnic
other_id=
Expected response:
{
"response": true,
"data": {
"status": 200,
"nickname": "Mrshadnic"
}
}
đŽ Supported Games (Sample)
| Game Name |
Code |
User ID Example |
| Mobile Legends: Bang Bang |
MOBILE_LEGENDS |
604210151 (+ Zone: 8425) |
| Free Fire |
FREEFIRE |
116502997 |
| Growtopia |
GROWTOPIA |
Mrshadnic |
| Genshin Impact |
GENSHIN_IMPACT |
700001772 |
50+ games supported! See README.md for complete list.
đ Security Features
- â
SQL Injection Prevention
- â
File Access Protection
- â
HTTP Security Headers
- â
Error Handling (No data leaks)
- â
Configuration Isolation (.env)
đ Common Issues
â "Database connection error"
Solution:
- Check database credentials in .env are correct
- Verify database "api_games" exists
- Ensure database user has permissions
- Confirm MySQL is running on hosting
â "Game not found"
Solution:
- Check game code spelling (case-sensitive)
- Refer to README.md for correct codes
- Update ApiGames.php if new games needed
â 500 Internal Server Error
Solution:
- Run config_check.php to identify issue
- Verify PHP version is 7.4+
- Ensure cURL extension is enabled
- Check file permissions (644)
đ Documentation Files
- QUICKSTART.md - Quick 5-minute setup
- DEPLOYMENT.md - Detailed deployment guide
- CHANGES.md - What was fixed & improved
- README.md - Project information
- INDEX.md - Complete documentation index
⨠Production Checklist
- Database created and schema imported
- .env file configured with production credentials
- .htaccess deployed for security
- File permissions set correctly
- API endpoint tested and working
- HTTPS enabled on domain
- config_check.php deleted
- Backup schedule configured
đ¯ Next Steps
- Read QUICKSTART.md or DEPLOYMENT.md
- Prepare your hosting environment
- Upload files via FTP
- Create and import database
- Configure .env file
- Verify setup with config_check.php
- Delete config_check.php
- Test API endpoints
- Go live!