<commit_before>Here is an example of a very basic Tonis app.

```php
<?php

require __DIR__ . '/../vendor/autoload.php';

$app = new Tonis\App;
$app->get('/', function($request, $response) {
    $response->end('Hello from Tonis');
});

$server = Zend\Diactoros\Server::createServer($app, $_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
$server->listen();
```

You can run it with:

```php -S 127.0.0.1:8080 index.php```

Then, load [http://127.0.0.1:8080](http://127.0.0.1:8080) in a browser to see the output.<commit_msg>Docs update<commit_after>Here is an example of a very basic Tonis app.

```php
<?php

require __DIR__ . '/../vendor/autoload.php';

$app = new Tonis\App;
$app->get('/', function($request, $response) {
    $response->end('Hello from Tonis');
});

$server = Zend\Diactoros\Server::createServer($app, $_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
$server->listen();
```

You can run it with:

```php -S 127.0.0.1:8080 index.php```

Then, load [http://127.0.0.1:8080](http://127.0.0.1:8080) in a browser to see the output.

Tonis Project
-------------

For a more detailed example you can clone the [Tonis Project](http://github.com/tonis-io/tonis-project) which 
includes a recommended application skeleton.
{'fraction_non_alphanumeric': 0.20130932896890344, 'fraction_numerical': 0.049099836333878884, 'mean_word_length': 4.053719008264463, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4873647', 'n_tokens_mistral': 483, 'n_tokens_neox': 433, 'n_words': 121}