PHP HTML Other
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
placeimg
.gitignore
LICENSE
README.md

README.md

placeimg

What

Image place holder web application.

Features

Generate random image based on given width and height.

How

  • HTTP GET on http://[a domain name]/ will display help page.
  • HTTP GET on http://[a domain name]/{width}x{height} will retrieve width and height, validates it and then output JPEG image.
  • HTTP GET on http://[a domain name]/{width}x{height}/jpg will retrieve width and height, validates it and then output JPEG image.
  • HTTP GET on http://[a domain name]/{width}x{height}/png will retrieve width and height, validates it and then output PNG image.

For example: http://place.img/200x300 will output JPEG image with 200 x 300 resolution.

Installation

  • Clone this repository and then cd placeimg/placeimg
  • Make sure you have Composer installed somewhere.
  • Run composer install to install all software packages dependencies.
  • Create a virtual host on your web server then point public directory as Document Root.
  • From shell run composer dumpautoload to generate autoload file (optional).

Info

Application is built on top of Laravel framework 5.1 and Intervention Image (http://image.intervention.io)

That's it. If you add new cool features, please feel free to submit PR.

Zamrony P. Juhara zamronypj@yahoo.com @zpjuhara