A simple PHP application that fetches and displays upcoming game releases for PlayStation 4 and PlayStation 5 using the IGDB API.
This is the vercel branch. This branch is used to host the application on Vercel.
This is the default branch for this repository.
Other branches:
native-php = This branch contains the application written in native PHP. It is not intended to be hosted on Vercel. It's purpose is to be hosted on a regular PHP host.
- Retrieves upcoming game releases for PS4 and PS5 (platforms can be changed).
- Displays games in a table, sorted by release date.
- Uses Bootstrap 5 for styling.
- Utilizes caching to reduce redundant API requests.
- Dark mode theme for better visibility.
- PHP 7.4 or higher.
- Composer for PHP package management.
- IGDB API client credentials.
-
Clone this repository:
git clone https://github.com/AlanOC91/upcoming-game-releases.git
-
Navigate to the project directory and install dependencies using Composer:
cd upcoming-game-releases composer install -
Copy the
.env.examplefile to a new file called.envand update theCLIENT_IDandCLIENT_SECRETvalues with your IGDB API credentials. -
Run your PHP server and access the application.
Once the application is set up, navigate to the homepage to view the list of upcoming games for PS4 and PS5. Should you wish to change platforms, simply pass in an array of IGDB Platform IDs to fetchUpcomingGames().
The application uses PSLegends branding by default. Should you wish to change it please modify the /assets/ folder.
You should also correctly modify the .env APP_NAME abd APP_URL values.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
This project is licensed under the MIT License. See the LICENSE file for more details.