Hello
I have script ready in python. I can convert it in any language you want. But, according to me python is best for working on data not php. Please reply to this message so that I can send script to you. Later, I can add custom feature as per your needs. Price of bid can be negotiated.
Also tell, how you want to run the script from command line or in web browser ?
Thanks