title: ramsey/uuid - validate a name-based hashed has the name that we assign it to the uuid
body: <p>Any reliable uuid package from Packagist that I can download and use it for Slim framework?</p>
  
  <p>Ideally,I would an uuid that I can hash a type, e.g. php, into the string. then i can check if that uuid has 'php'.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>How can I validate a <a href="https://github.com/ramsey/uuid" rel="nofollow noreferrer">name-based hashed</a> has the <strong>name</strong> that we assign it to the uuid?</p>
  
  <pre><code>// Generate a version 3 (name-based and hashed with MD5) UUID object
  $uuid3 = Uuid::uuid3(Uuid::NAMESPACE_DNS, 'php.net');
  $uuid = $uuid3-&gt;toString();
  </code></pre>
  
  <p>For instance:</p>
  
  <pre><code>if ($uuid3-&gt;getName($uuid) === 'php.net') {
  // do something
  }
  </code></pre>
  
  <p>Is this possible?</p>