Slim Framework

The Slim Micro Framework for PHP 5 is a micro framework that enables developers to quickly write RESTful web applications and APIs. Emphasize is placed on micro because Slim is just that — a lightweight and nimble PHP framework used to build smaller web applications and APIs. Unlike the larger frameworks CodeIgniter and Symfony, Slim forgoes controllers and abstract components for simplicity and ease-of-use.

A Slim Framework web application can be built with only a single file. Over time, however, projects grow in scope and size; better organization becomes necessary. Slim does not use controllers to organize application methods or routes; controllers are beyond Slim’s concern.

Features of the Slim Framework for PHP

  • HTTP routing
  • Named routes
  • Route passing
  • Route redirects
  • Route halting
  • Middleware & Hooks
  • Custom views
  • HTTP caching
  • Signed cookies
  • Custom 404 page
  • Custom 500 page
  • Error handling
  • Logging