A PHP application that retrieves and displays PUBG player statistics in honor of the Rios family and their squad "claqué".
Live Demo: https://riosapp.zeabur.app/
RiosApp is a tribute to Riosrap, the leader of our PUBG squad "claqué" (trash). This application allows you to search for PUBG players and view their most relevant statistics. All searches are saved in the database for historical tracking.
- 🔍 Search PUBG players by username
- 📊 View detailed player statistics and season data
- 📝 Search history tracking
- 🔐 User authentication system
- 🚀 One-click deployment with Zeabur
The easiest way to deploy RiosApp is using Zeabur:
- Click the "Deploy on Zeabur" button above
- Connect your GitHub account
- Configure environment variables (see Environment Variables)
- Deploy!
-
Clone the repository
git clone https://github.com/yourusername/RiosApp.git cd RiosApp -
Install dependencies
composer install
-
Configure environment
cp .env.example .env # Edit .env with your configuration -
Set up database
- Create a MySQL database
- Update database credentials in
.env - The application will automatically create required tables
-
Run the application
# Using PHP built-in server php -S localhost:8000 # Or configure with Apache/Nginx
Copy .env.example to .env and configure:
# PUBG API Configuration
PUBG_API_KEY=your_pubg_api_key_here
# Database Configuration
DB_HOST=localhost
DB_PORT=3306
DB_NAME=riosapp
DB_USER=your_db_user
DB_PASSWORD=your_db_password
DB_URL=mysql://user:password@host:port/database- Visit PUBG Developer Portal
- Create an account and register your application
- Copy your API key to the
.envfile
- Deployment Guide - Detailed GCP deployment instructions
- Preparation Guide - Application preparation for production
RiosApp is built with vanilla PHP using a custom MVC architecture:
- Custom Router: Handles routing with middleware support
- Container/DI: Service container for dependency injection
- Database Layer: PDO-based abstraction with prepared statements
- Authentication: Session-based auth with middleware protection
- Data Classes: Type-safe PHP classes for PUBG API responses
Build and run with Docker:
# Build the image
docker build -t riosapp .
# Run the container
docker run -p 80:80 --env-file .env riosappUse the one-click deploy button for the easiest deployment experience.
For GCP deployment with Kubernetes:
# Use the automated deployment script
make all
# or
./cicd.shThis will:
- Commit your changes
- Build and push Docker image to GCR
- Deploy to your GKE cluster
See Deployment Guide for detailed instructions.
RiosApp/
├── src/
│ ├── controllers/ # MVC Controllers
│ ├── core/ # Core framework classes
│ ├── router/ # Routing system
│ └── data/ # Sample data
├── views/ # View templates
├── data-classes/ # PUBG API data models
├── public/ # Public assets
└── docs/ # Documentation
- Deploy:
make all- Full deployment to GKE - Install deps:
composer install - Local server:
php -S localhost:8000
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
- Riosrap and the "claqué" squad for the inspiration
- PUBG API for providing player statistics
- The PHP community for excellent tools and libraries
Made with ❤️ for the PUBG community