@henrylearn2rock The source code is heavily commented too so you can figure out how it all works.
@henrylearn2rock .htacess rules and a single PHP script.
@henrylearn2rock Placehold.it and dummyimage.com are run from the same PHP code which is completely open source dummyimage.com