title: PHP short hash like URL-shortening websites
body: <p>I am looking for a PHP function that creates a short hash out of a string or a file, similar to those URL-shortening websites like <a href="http://tinyurl.com" rel="noreferrer">tinyurl.com</a></p>
  
  <p>The hash should not be longer than 8 characters.</p>