A simple random-image-api written in PHP.
Getting Started
Useful Links
Getting Started
- Download or clone from the GitHub repository.
- API Path: ./assets/api/ri-api.php
- Default Img Path: ./assets/images/
Code:
<?php require_once './assets/api/ri-api.php'; ?> <!-- Request API file. -->
<img src="<?php echo $path . $img ?>"/> <!-- Displays images. -->
Code:
$path = './assets/images/'; //Change the img file path if needed.
Useful Links
- Source - OblivionSan/random-image-api
- Live Version - HerokuApp/random-image-api