PHPackages                             skateboard/framework - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. skateboard/framework

ActiveLibrary[Framework](/categories/framework)

skateboard/framework
====================

Minimalist PHP framework

v1.4.1(4y ago)0311MITPHPPHP ^7.1|^8.0

Since Mar 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/JannieT/wheels)[ Packagist](https://packagist.org/packages/skateboard/framework)[ RSS](/packages/skateboard-framework/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (2)Versions (7)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/07b65381df1da1e6cdaf31abeb001f77ffc362cd2537e783c79cdf1ad09b9d11/68747470733a2f2f706f7365722e707567782e6f72672f736b617465626f6172642f6672616d65776f726b2f762f737461626c65)](https://packagist.org/packages/skateboard/framework) [![Total Downloads](https://camo.githubusercontent.com/1c52deeed194e7136a157e7a5bbd6ca84fdfe242656c1e2c5d314ef2845cec67/68747470733a2f2f706f7365722e707567782e6f72672f736b617465626f6172642f6672616d65776f726b2f646f776e6c6f616473)](https://packagist.org/packages/skateboard/framework) [![License](https://camo.githubusercontent.com/1ed7866d690e08e1dd562ecfa9fc06043609ce6a342cd280037e4f2ed43deef6/68747470733a2f2f706f7365722e707567782e6f72672f736b617465626f6172642f6672616d65776f726b2f6c6963656e7365)](https://packagist.org/packages/skateboard/framework)

> **Note:** This repository contains the core code of the Skateboard framework. If you want to build an application using Skateboard, visit the [Skateboard project repository](https://github.com/OneSheep/skateboard).

About Skateboard
----------------

[](#about-skateboard)

Minimalist PHP framework

Features
--------

[](#features)

- Easy and powerful routing
- Request input parsing
- json responses
- Template rendering with layout
- Aborts and redirects
- Environment file

Installation
------------

[](#installation)

Install with Composer

```
composer require skateboard/framework

```

Routing
-------

[](#routing)

See the [router docs](https://github.com/bramus/router)

Controllers
-----------

[](#controllers)

### Properties

[](#properties)

`viewPath` string
The file path to the views folder relative to the controller. Defaults to "../views"

`layout` string
The file name and extension of a template layout inside your viewPath to wrap your views.
Defaults to "layout.php", so set this to `null` if you do not use a layout

### Methods

[](#methods)

`view($view, $data = [], $raw = [])`
Render a view template with some data.

- string $view file name of the view in the viewPath folder such as 'about'
- array $data items that will be escaped and provided to the view
- array $raw safe items that will be rendered without escaping

`json($output, $code = 200)`
Render a json response.

- mixed $output that will be json encoded
- int $code status code of the http response

`redirect($url)`
Redirects the request to another route.

- string $url the relative or absolute route to redirect to such as "/about"

`abort($code, $html = null)`
Exits the request with a status code.

- int $code the 3 digit http response code
- string $html any markup to return in the response body

`html($output, $code = 200)`
Respond with html markup and a response code.

- string $output the html that should be sent in the response
- int $code the http response code to respond with

`requestIsJson()`
Checks if the request is a json request based on the Accept header.

Returns bool true if the Accept header specifies json format otherwise false

`getHeaderLine($key, $default = null)`
Get the value of a request header.

- string $key the header key to use to look up the value such as 'Accept'
- string $default the default to return if the key is not found in the request header

Returns a string that containts the value of the specified request header

`input($key)`
Get a request get parameter, post value or a cookie value.

- string $key that identifies the parameter or cookie to get

Returns a string with the value that was passed with the request

Views
-----

[](#views)

PHP is already a templating language, so all we need in our views is a little self-discipline:

views/layout.php

```
DOCTYPE html>

    My App

        About
        ...

```

views/about.php

```

  About

```

License
-------

[](#license)

`skateboard/framework` is released under the MIT public license. See the enclosed `LICENSE` for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~131 days

Recently: every ~164 days

Total

6

Last Release

1584d ago

PHP version history (2 changes)v1.0PHP ^7.1

v1.4.1PHP ^7.1|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5163423?v=4)[Jannie Theunissen](/maintainers/JannieT)[@JannieT](https://github.com/JannieT)

---

Tags

phpskateboardskateboard-framework

### Embed Badge

![Health badge](/badges/skateboard-framework/health.svg)

```
[![Health](https://phpackages.com/badges/skateboard-framework/health.svg)](https://phpackages.com/packages/skateboard-framework)
```

###  Alternatives

[doppar/framework

The Doppar Framework

366.7k8](/packages/doppar-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
