PHPackages                             toby/toby - 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. toby/toby

ActiveLibrary[Framework](/categories/framework)

toby/toby
=========

Put 'ol Toby in your pipe and smoke it. A micro web framework similar to Sinatra that makes PHP fun again.

v0.2(11y ago)8330[2 issues](https://github.com/tamagokun/toby/issues)MITPHPPHP &gt;=5.3.0

Since Dec 20Pushed 11y ago2 watchersCompare

[ Source](https://github.com/tamagokun/toby)[ Packagist](https://packagist.org/packages/toby/toby)[ Docs](http://github.com/tamagokun/toby)[ RSS](/packages/toby-toby/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

[Old Toby](http://www.youtube.com/watch?v=YAZpjWZRNAc)
======================================================

[](#old-toby)

*Making PHP development fun again.*

The finest Leaf in the Southfarthing is also a web framework similar to [Sinatra](http://www.sinatrarb.com/).

Built on [Rack'em](https://github.com/tamagokun/rackem).

Setting Up
----------

[](#setting-up)

Toby works best with [Composer](http://getcomposer.org/). Add it to your `composer.json`

```
{
  "require": {
	  "toby/toby": "dev-master"
	},
	"minimum-stability": "dev"
}
```

```
$ composer install
```

Hello World
-----------

[](#hello-world)

```

```

```
$ vendor/bin/rackem
$ open http://localhost:9393
```

[Check out the manual](http://ripeworks.com/toby)
-------------------------------------------------

[](#check-out-the-manual)

What we have so far
-------------------

[](#what-we-have-so-far)

- routing (`DELETE`,`GET`,`HEAD`,`OPTIONS`,`PATCH`,`POST`,`PUT`)
- route matching (`$app->get("/hello/:name");`)
- render templates and layouts
    - currently supported: `php`,`mustache`,`markdown`,`haml`
- conditions and filters
- redirection
- halting
- passing routes
- error handling (`error` `not_found` `halt(500)`)
- logging via Rackem\\Logger
- settings
- configure blocks (global and per environment)
- completely Rack complient (using Rack'em)
- serving static files
- handling file uploads
- handling sessions (`$app->enable("sessions");`)
- flash messaging (`$app->flash("error","Gah! Something happened!");`)

What needs doing
----------------

[](#what-needs-doing)

- support for more templating engines. (twig, jade, etc.)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~264 days

Total

2

Last Release

4313d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd7b1fe83cb5efed95c6a9388cdbfed237a4c8100986aae44a07d87df45e227b?d=identicon)[tamagokun](/maintainers/tamagokun)

---

Top Contributors

[![tamagokun](https://avatars.githubusercontent.com/u/487333?v=4)](https://github.com/tamagokun "tamagokun (73 commits)")

---

Tags

frameworkwebroutesinatrarackem

### Embed Badge

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

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

###  Alternatives

[hprose/hprose

It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.

2.0k221.3k37](/packages/hprose-hprose)[silverstripe/behat-extension

SilverStripe framework extension for Behat

32585.8k5](/packages/silverstripe-behat-extension)[hprose/hprose-yii

Hprose Server for Yii 2

357.2k](/packages/hprose-hprose-yii)[developermarius/simple-router

Simple, fast PHP router that is easy to get integrated and in almost any project. Heavily inspired by the Laravel router.

112.5k](/packages/developermarius-simple-router)

PHPackages © 2026

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