YOURLS is a set of PHP script that will allow you to run your own URL shortener, a la TinyURL/bit.ly
You can make it private or publi. It provides wicked stats and analytics. There's an API. There are plugins. It's available in several languages. It's free.
Use Patent Claims
Include Install Instructions
These details are provided for information only. No information here is legal advice and should not be used as such.