PHPackages                             ryanyonzon/orinoco - 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. ryanyonzon/orinoco

ActiveLibrary[Framework](/categories/framework)

ryanyonzon/orinoco
==================

A lightweight PHP framework.

031PHP

Since Jul 9Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/ryanyonzon/Orinoco)[ Packagist](https://packagist.org/packages/ryanyonzon/orinoco)[ RSS](/packages/ryanyonzon-orinoco/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Orinoco Framework
=================

[](#orinoco-framework)

A lightweight PHP framework.

This source is the package implementation of [orinoco-framework-php](https://github.com/ryanyonzon/orinoco-framework-php) (with some added features).

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

[](#installation)

Create your project's directory:

```
mkdir myapp ; cd myapp

```

Inside your project's directory, create a `composer.json` file and add `ryanyonzon/orinoco` as required dependency:

```
{
    "require": {
        "ryanyonzon/orinoco": "dev-master"
    }
}

```

Install `Composer` by running this command from your terminal:

```
curl -sS https://getcomposer.org/installer | php

```

Now, install the framework using the command below:

```
php composer.phar install

```

Congratulations! Orinoco framework package should now be installed in your project's directory.

Hello, World
------------

[](#hello-world)

A simple `hello, world` application.

Require the Composer's autoloader:

```
require "vendor/autoload.php";

```

Instantiate a Orinoco application (using default configurations):

```
$app = new Orinoco\Application(new Orinoco\Configuration());

```

Set your home page route handler:

```
$app->Route()->set('/', function() {
    echo "hello, world";
});

```

Run the application:

```
$app->run();

```

Configuration
-------------

[](#configuration)

Here's an example of a basic configuration:

```
