2017 © Pedro Peláez
 

library ergo

image

99designs/ergo

  • Saturday, July 28, 2018
  • by lox
  • Repository
  • 46 Watchers
  • 32 Stars
  • 10,487 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 29 Versions
  • 0 % Grown

The README.md

Ergo

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

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

Install

Ergo is designed to be easy to install and integrate., (*3)

$ 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., (*4)

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

For running, Ergo has no external dependancies. For development [Composer][1] is used to pull in SimpleTest as a dependancy., (*5)

To install dependancies via Composer:, (*6)

$ composer install --dev

Run the test suite:, (*7)

$ 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

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

The Versions

28/07 2018

dev-commerce

dev-commerce

  Sources   Download

10/07 2015

dev-master

9999999-dev http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

 

The Development Requires

request 99designs routing response

09/07 2014

v2.7.0

2.7.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

 

The Development Requires

request 99designs routing response

01/04 2014

v2.6.2

2.6.2.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

 

The Development Requires

request 99designs routing response

01/04 2014

v2.6.1

2.6.1.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

 

The Development Requires

request 99designs routing response

15/01 2014

dev-lazy-load-the-error-handler

dev-lazy-load-the-error-handler http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

 

The Development Requires

request 99designs routing response

13/01 2014

v2.6.0

2.6.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

 

The Development Requires

request 99designs routing response

27/02 2013

v2.5.1

2.5.1.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

26/02 2013

v2.5.0

2.5.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

21/02 2013

v2.4.6

2.4.6.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

19/02 2013

v2.4.5

2.4.5.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

08/02 2013

v2.4.4

2.4.4.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

08/02 2013

v2.4.3

2.4.3.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

04/01 2013

v2.4.2

2.4.2.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

04/01 2013

v2.4.1

2.4.1.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

04/01 2013

v2.4.0

2.4.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

04/01 2013

2.3.0

2.3.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

03/01 2013

dev-composer_lock

dev-composer_lock http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

20/12 2012

v2.2.1

2.2.1.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

20/12 2012

v2.2.0

2.2.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

12/12 2012

dev-template-uniqueness

dev-template-uniqueness http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

11/12 2012

v2.1.1

2.1.1.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

16/11 2012

dev-nginx

dev-nginx http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

10/10 2012

dev-trash/build

dev-trash/build http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

10/10 2012

dev-features/cibuild_script

dev-features/cibuild_script http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

21/09 2012

dev-bugs/web-error-handler-ob-fix

dev-bugs/web-error-handler-ob-fix http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

20/07 2012

dev-request-factory-http-host

dev-request-factory-http-host http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

20/06 2012

v2.1.0

2.1.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

request 99designs routing response

30/05 2012

v2.0.0

2.0.0.0 http://github.com/99designs/ergo

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

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

request 99designs routing response