My Wiki Parser Class for PHP

I was looking for a script which could parse wiki syntax which is used in Google Code (see http://code.google.com/p/support/wiki/WikiSyntax). I could only find MediaWiki parsing, which isn’t what I wanted. The closest I could find was a PHP class which parsed ‘wiki’ syntax, but had quite a few bugs in (http://www.phpclasses.org/package/3111-PHP-Retrieve-and-process-articles-from-Wikipedia.html). This was my starting point.

I used the WikiSyntax page given above to add some of the features that I wanted to add. I didn’t add all of them, because I didn’t need all of them, but you can edit the code to suit your needs if you want to. Read the rest of this entry »

Formatting JSON like the Facebook Graph API

A recent project of mine required me to format JSON in a similar way to the Facebook Graph API. So I wrote a bit of PHP code to do the job.
Read the rest of this entry »

PHP Code: Generate random string

For whatever reason, it may be useful for your PHP application to automatically generate a PHP string. We have written a quick function to do this for you. Enjoy! Read the rest of this entry »

PHP Code: Resize and crop images

I couldn’t find a function that did this anywhere on the internet, so I built it. I hope other people find it useful. What it does is resizes and then crops an image so that it doesn’t lose its aspect ratio. It’s very cool…
Read the rest of this entry »

Follow

Get every new post delivered to your Inbox.