title: Including Paragonie Halite in project doesn't find variables and functions
body: <p>I've installed libsodium on Windows for PHP 7 and I'm developing my project with PHPStorm. I've also installed Halite from Paragonie which couldn't even be installable if the libsodium extension were not installed correctly. Also the IDE finds the used functions and when clicking on the variables and so on it opens up the fitting files of libsodium.</p>
  
  <p>But unfortunately in my setup I get the following error: </p>
  
  <pre><code>Uncaught Error: Undefined constant 'Sodium\CRYPTO_PWHASH_OPSLIMIT_INTERACTIVE' in C:\Server\nginx-1.11.1\html\mywebsite\vendor\paragonie\halite\src\KeyFactory.php:344
  </code></pre>
  
  <p>My index.php file looks like the following:</p>
  
  <pre><code>    &lt;?php
      require_once 'vendor/autoload.php';
  
      spl_autoload_register(function ($class) {
          require_once $class . '.php';
      });
  
      $router = new AltoRouter();
  
      $router-&gt;setBasePath('/' . basename(__DIR__));
  
      require_once 'config/routes.php';
  
      $match = $router-&gt;match();
  
      $GLOBALS['db'] = new \config\database(true, null);
  
      try
      {
          if ($match) {
              $routeController = new Modules\Core\RouteController($match);
              echo $routeController-&gt;bootstrap();
          }
      }
      catch (Exception $ex)
      {
          //@todo log every Exception
      }
  </code></pre>
  
  <p>I'm also submitting my form with Jquery which leads successfully to the execution of the following function (which doesn't find the libsodium functions/variables):</p>
  
  <pre><code>public function hash($password)
  {
      $this-&gt;setEncryptionKey();
      return Password::hash(
          $password, // string
          $this-&gt;encryption_key      // \ParagonIE\Halite\Symmetric\EncryptionKey
      );
  }
  
  public function check($stored_hash, $password)
  {
      try {
          if (Password::verify(
              $password, // string
              $stored_hash,
              $this-&gt;encryption_key
          )) {
              return true;
          }
      } catch (\ParagonIE\Halite\Alerts\InvalidMessage $ex) {
          // Handle an invalid message here. This usually means tampered ciphertext.
          throw new \Exception($ex);
      }
  }
  </code></pre>
  
  <p>I've installed the php_libsodium.dll in the extension directory and put the libsodium.dll in in the directory of the php server. Just for trying out i put it later also in system32 directory and in Syswow64 directory - both didn't change anything.</p>
  
  <p>I just installed the halite library from paragonie with composer but using it is unfortunately harder than I thought. I also tried to use the libsodium extension without Halite but that lead to similar errors that the needed classes, constants and functions and so on were not found.</p>
  
  <p>I've also tried to change my autoloader, but the strange thing anyway is that the IDE finds everything without problems but executing the script in the browser just don't.</p>