Add a 60-second arcade game to any PHP website in two lines of HTML – with a server-verified monthly leaderboard and TOP 3 prizes.
WHAT IS IT? Asteroids fly towards a planet and your visitors have 60 seconds to tap them before they hit. Big rocks take two hits, golden ones are fast and worth a fortune, and a streak of hits builds a score multiplier of up to x5. Over a round the planet changes from Earth to Mars, an ice world and a lava world, and the asteroids get faster.
A quick, addictive reason for visitors to come back every day – and a simple way to run monthly prize campaigns.
HIGHLIGHTS
- Fair scores – the browser never decides the score. Your server replays every game from the recorded taps and stores its own result.
- Monthly leaderboard and rewards – each month starts fresh, the TOP 3 are picked automatically, and a hook lets you create real discount coupons.
- Easy to embed – one <div> and one <script> tag. No frameworks, no build step.
- Guests or customers – visitors can play with a nickname, or you can connect the game to your customers' accounts.
- Zero-setup storage – SQLite out of the box, MySQL/MariaDB supported.
- Responsive – works on phones, fullscreen mode, recolourable with CSS variables.
- Built-in protection – timing checks, tap-rate limits, per-player and per-IP limits, signed game tokens, ban switch.
- Detailed manual included – installation, rewards, security, privacy, troubleshooting.
HOW IT WORKS
- Upload the folder to your server.
- Paste two lines of HTML where the game should appear.
- Play – leaderboard, nicknames and score verification work immediately.
Optional: add a monthly cron job and the TOP 3 are paid out automatically.
REQUIREMENTS
- PHP 7.3 or newer (tested on PHP 8.3)
- SQLite (default) or MySQL/MariaDB
- Any modern browser for players
- HTTPS recommended
Platforms without PHP (e.g. hosted shop builders) can run the module on a subdomain and embed it with an iframe.
Live demo: https://onlyptc.eu/games/planet (account required)