Hi,
i have checked the reference site, and if you want a php class that will be able to breakdown texts like that, that is possible. but in that site a javascript porter was used, do you want the same thing to be implemented? also for spam scoring, i can provide that too. but for that there will be a second section where spam count will be mentioned. but the formula that used in the referenced site , we can not count the spam in result,
if you want i can show you an example within next 5-6 hours. let me know.
another important thing is breaking down the syllables, i will use Frank Liang's algorithm also a library of word, you may have to add more words when necessary.