Skip to content

Skinny Documentation

A Micro Framework for PHP

Skinny's origin
Skinny is a fast, lightweight framework for PHP applications. It advances beyond where Slim v2 stops, while staying closer to its roots than Slim v3. It addresses some shortcomings observed while using Slim to refactor a large, legacy application. With respect, acknowledgement goes to all who freely shared their work on Slim v2. Without it Skinny would not exist.

You are viewing documentation for Skinny v1.5.3. For completeness, the parts of Skinny that remain largely unchanged from Slim are conspicuously ”borrowed” from Slim's original documentation.

Clicking Skinny Docs in the heading takes you to the topic links on this page. Alternately, topic links are provided on the left-hand side of every page. Depending on your browser width, you'll see one of these icons at the top of the page on the left side of the header:

Mardown icon — Topic links are displayed on the left side of the page. Navigation icon — Clicking this icon in the header opens a popover panel with topic links.

The Search feature is good at finding words (not phrases) in section headings, but not so good at finding anything elsewhere.

Demo

A simple MVC demonstration applicstion is provided in the demo directory of this package. Instructions for running it locally are detailed in demo/README-DEMO. You can also run the demo from the official website.

Topics

Topic Link Description
Skinny Docs (this page)
Why Skinny Reasons Skinny diverged from Slim
Getting Started Installation and simple usage
Web Server Setup Tips Tips on setting up various web servers
Configuration Application settings
Routing REST-ful request/endpoint resolution
Environment Application context
Request HTTP request object
Response HTTP response object
View Preparing content for presentation
HTTP Cache Reducing repetitive view rendering
Middleware Affecting requests before controllers are called
Hooks Responding to applicatoin events
Flash Messages Saving and restoring form field data
Sessions Retaining user state information
Logging Keeping information for review
Error Handling Responding to errors
Dependency Injection Making data available wherever it's needed
License The MIT License (MIT)
Release Notes Change log for Skinny versions
Repository README Preview repository README.md