title: SlimPHP - is there way to use CorsSlim with Slim v3?
body: <p>I've got stuck with making a REST API with AngularJS for front and SlimPHP for backend. everuthing is OK when I use only $http.get and $http.post, but doesn't work with $http.delete and $http.put.
  I've set headers:</p>
  
  <pre><code>$app = new \Slim\App();
  
  header('Access-Control-Allow-Origin: *');
  header('Access-Control-Allow-Headers: Content-Type');
  header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
  </code></pre>
  
  <p>but that didn't help, so I found that there's such a thing as CorsSlim, but when i write this:</p>
  
  <pre><code>require __DIR__ . '/vendor/autoload.php';
  
  $app = new \Slim\App();
  
  $app-&gt;add(new \CorsSlim\CorsSlim());
  </code></pre>
  
  <p>I immeaditely get a below problem, even after installing slim and corsslim through composer.</p>
  
  <p>Fatal error: Class 'Slim\Middleware' not found in /wwwpath/vendor/palanik/corsslim/CorsSlim.php on line 5</p>
  
  <p>On their CorsSlim GitHub <a href="https://github.com/palanik/CorsSlim" rel="nofollow">https://github.com/palanik/CorsSlim</a> I found that they restrict their slim to version &lt;3.0, so it's not compatible with my Slim.</p>
  
  <p>So, the question is: Are there any ways to make such a REST API with get/post/put/delete requests with Angular and Slim v3 or I have to remake the whole backend part to v2 to make it work? 
  Thanks in advance.</p>