title: Class 'Mews\Purifier\PurifierServiceProvider' not found
body: <p>I think I got messed up when I try to access my laravel site and got this error:</p>
  
  <pre><code> Symfony \ Component \ Debug \ Exception \ FatalErrorException (E_UNKNOWN)
  
  Class 'Mews\Purifier\PurifierServiceProvider' not found 
  </code></pre>
  
  <p>I try to do <code>composer update</code> but I got this error:</p>
  
  <pre><code> composer update
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - The requested package mews/purifier could not be found in any version, there may be a typo in the package name.
  
  Potential causes:
   - A typo in the package name
   - The package is not available in a stable-enough version according to your minimum-stability setting
     see &lt;https://getcomposer.org/doc/04-schema.md#minimum-stability&gt; for more details.
  
  Read &lt;https://getcomposer.org/doc/articles/troubleshooting.md&gt; for further common problems.
  </code></pre>
  
  <p>I also try the link stated above but nothing happen. this is the content of my composer.json</p>
  
  <pre><code>{
          "name": "laravel/laravel",
          "description": "The Laravel Framework.",
          "keywords": ["framework", "laravel"],
          "license": "MIT",
          "require": {
                  "laravel/framework": "4.2.*",
                  "vtalbot/markdown": "1.*",
                  "mews/purifier": "dev-master-14",
                  "hybridauth/hybridauth": "dev-master#6d89473",
                  "symfony/yaml": "dev-master",
          "greggilbert/recaptcha": "1.*",
                  "php": "&gt;=5.3.0",
          "ext-curl": "*",
          "ext-json": "*",
          "gloudemans/shoppingcart": "~1.2",
          "stripe/stripe-php":"dev-master"
          },
          "autoload": {
                  "classmap": [
                          "app/commands",
                          "app/controllers",
                          "app/models",
                          "app/database/migrations",
                          "app/database/seeds",
                          "app/tests/TestCase.php"
                  ],
                  "files" : [
                          "vendor/stripe/stripe-php/lib/Stripe.php"
                  ]
          }, "scripts": {
                  "post-install-cmd": [
                          "php artisan clear-compiled",
                          "php artisan optimize"
                  ],
                  "post-update-cmd": [
                          "php artisan clear-compiled",
                          "php artisan optimize"
                  ],
                  "post-create-project-cmd": [
                          "php artisan key:generate"
                  ]
          },
          "config": {
                  "preferred-install": "dist"
          },
          "minimum-stability": "dev"
  }
  </code></pre>
  
  <p>any ideas?</p>
  
  <p>I got this error because I tried to replace <code>"mews/purifier": "dev-master-14",</code> to <code>"mews/purifier": "dev-master",</code> but I got error again like in <a href="https://stackoverflow.com/questions/36355452/composer-update-error-in-laravel-4-after-renaming-a-controller-file">Composer Update error in Laravel 4 after renaming a controller file</a> ...</p>
  
  <p>Any idea about my case? any help will be appreciated.. </p>
  
  <p>I try also to <code>composer install</code> but I get this error:</p>
  
  <pre><code>composer install
  Loading composer repositories with package information
  Installing dependencies (including require-dev) from lock file
  Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
  Nothing to install or update
  Generating autoload files
  &gt; php artisan clear-compiled
  PHP Fatal error:  Class 'Mews\Purifier\PurifierServiceProvider' not found in /var/www/staging.theskitrip.ca/protected/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 157
  {"error":{"type":"Symfony\\Component\\Debug\\Exception\\FatalErrorException","message":"Class 'Mews\\Purifier\\PurifierServiceProvider' not found","file":"\/var\/www\/staging.theskitrip.ca\/protected\/vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/ProviderRepository.php","line":157}}Script php artisan clear-compiled handling the post-install-cmd event returned with an error
  
  
    [RuntimeException]
    Error Output: PHP Fatal error:  Class 'Mews\Purifier\PurifierServiceProvider' not foun
    d in /var/www/staging.theskitrip.ca/protected/vendor/laravel/framework/src/Illuminate/
    Foundation/ProviderRepository.php on line 157
  
  
  install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [&lt;packages&gt;]...
  </code></pre>