PHPackages                             99designs/ergo - 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. 99designs/ergo

AbandonedArchivedLibrary

99designs/ergo
==============

Micro-framework for routing and request/response handling in PHP 5.3

v2.7.0(11y ago)3010.5k4[1 issues](https://github.com/99designs/ergo/issues)1MITPHPPHP &gt;=5.3.0

Since May 30Pushed 9y ago74 watchersCompare

[ Source](https://github.com/99designs/ergo)[ Packagist](https://packagist.org/packages/99designs/ergo)[ Docs](http://github.com/99designs/ergo)[ RSS](/packages/99designs-ergo/feed)WikiDiscussions master Synced 2mo ago

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

Ergo
====

[](#ergo)

A light-weight library for processing requests and responses in PHP5.3. Provides a closure-based infrastructure for routing, controllers and templating.

The name is from the latin, Cogito ergo sum. "I think, therefore I am".

Install
-------

[](#install)

Ergo is designed to be easy to install and integrate.

```
$ pear channel-discover pearhub.org
$ pear install pearhub/Ergo

```

Alternately, check it out as a submodule and use your own classloader on the classes dir.

Basic Usage
-----------

[](#basic-usage)

```
require_once('Ergo/ergo.php');

Ergo::router()->connect('/helloworld', 'helloworld', function() {
	return Ergo::template('helloworld.tpl.php', array(
	  'greeting'=>'Hello World'
	));
});

Ergo::router()->connect('/*', 'any', function() {
	throw new \Ergo\Http\NotFound("Not implemented yet");
});

```

How to develop
--------------

[](#how-to-develop)

For running, Ergo has no external dependancies. For development [Composer](https://github.com/composer/composer) is used to pull in SimpleTest as a dependancy.

To install dependancies via Composer:

```
$ composer install --dev

```

Run the test suite:

```
$ phpunit
PHPUnit 3.7.10 by Sebastian Bergmann.

Configuration read from /home/vagrant/ergo/phpunit.xml.dist

...............................................................  63 / 100 ( 63%)
.....................................

Time: 0 seconds, Memory: 11.25Mb

OK (100 tests, 269 assertions)

```

Status
------

[](#status)

Used in several high-volume production websites, including 99designs.com, flippa.com, learnable.com and sitepoint.com.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 54.8% 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 ~42 days

Recently: every ~124 days

Total

19

Last Release

4326d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d94165c13417941a32d14d4468f27868c7643e96495090cfd33009055ea48c?d=identicon)[mtibben](/maintainers/mtibben)

![](https://www.gravatar.com/avatar/6d43d23630fc281c26ff5872d03d054e1508b5676eeefee1424464ab5c0f00e4?d=identicon)[arthens](/maintainers/arthens)

---

Top Contributors

[![lox](https://avatars.githubusercontent.com/u/15758?v=4)](https://github.com/lox "lox (92 commits)")[![pda](https://avatars.githubusercontent.com/u/15759?v=4)](https://github.com/pda "pda (24 commits)")[![richo](https://avatars.githubusercontent.com/u/476418?v=4)](https://github.com/richo "richo (18 commits)")[![mtibben](https://avatars.githubusercontent.com/u/980499?v=4)](https://github.com/mtibben "mtibben (13 commits)")[![sinamt](https://avatars.githubusercontent.com/u/29794?v=4)](https://github.com/sinamt "sinamt (8 commits)")[![lwc](https://avatars.githubusercontent.com/u/336402?v=4)](https://github.com/lwc "lwc (5 commits)")[![harto](https://avatars.githubusercontent.com/u/103448?v=4)](https://github.com/harto "harto (4 commits)")[![larsyencken](https://avatars.githubusercontent.com/u/36012?v=4)](https://github.com/larsyencken "larsyencken (2 commits)")[![xzyfer](https://avatars.githubusercontent.com/u/579928?v=4)](https://github.com/xzyfer "xzyfer (1 commits)")[![dhotson](https://avatars.githubusercontent.com/u/21532?v=4)](https://github.com/dhotson "dhotson (1 commits)")

---

Tags

responserequestrouting99designs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/99designs-ergo/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-message

Common interface for HTTP messages

7.1k1.0B5.5k](/packages/psr-http-message)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[fig/http-message-util

Utility classes and constants for use with PSR-7 (psr/http-message)

39489.0M274](/packages/fig-http-message-util)[nette/http

🌐 Nette Http: abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.

48619.2M541](/packages/nette-http)[psr/http-server-handler

Common interface for HTTP server-side request handler

175101.3M921](/packages/psr-http-server-handler)

PHPackages © 2026

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