<commit_before>TuumPHP Starter Repository
======

A starter repository for TuumPHP web site. 

TuumPHP is a basic (micro + view) web application framework inspired by clean middleware structure of StackPHP, simplicity of Slim Framework, and ease of development of Laravel. 

> tbh, I feel TuumPHP is a bit too complicated compared to Slim. 

### License

MIT lisense.

### required packages

TuumPHP uses following packages;

*   [Aura/Session](https://github.com/auraphp/Aura.Session),
*   [Phly/Http](https://github.com/phly/http),
*   [Psr/Http-message](https://github.com/php-fig/http-message),
*   [Monolog/Monolog](https://github.com/Seldaek/monolog),
*   [League/Container](https://github.com/thephpleague/container),
*   [League/Flysystem](https://github.com/thephpleague/flysystem),
*   [Filp/Whoops](https://github.com/filp/whoops).

Uses home grown [template view](https://github.com/TuumPHP/View) and [router](https://github.com/TuumPHP/Router) (;´д｀)

Getting Started
----

### system requirements

This repository requires PHP >= 5.6.0. 

### installation

use ```git``` and ```composer``` to install. 

```sh
git clone https://github.com/TuumPHP/tuum
cd tuum
composer install
cd public
php -S localhost:8888 index.php
```

> please make the ```var/``` directory writable to the server.

and access ```http://localhost:8888``` in a browser. 

### simple routing using closures

The directory, ```app/```, contains scripts and configurations to construct a web application. The ```app/routes.php``` file contains routes definitions. 

So, how about adding the following code, somewhere after ```// add routes``` comments?

```php
$routes->get( '/new', function($request) {
    /** @var Request $request */
    return $request->respond()
    	->asText('just added a new page!');
});
$routes->get( '/back', function($request) {
    /** @var Request $request */
    return $request->redirect()
    	->withMessage('just redirected back')
    	->toPath('/new');<commit_msg>specify tag name (version) to install.<commit_after>TuumPHP Starter Repository
======

A starter repository for TuumPHP web site. 

TuumPHP is a basic (micro + view) web application framework inspired by clean middleware structure of StackPHP, simplicity of Slim Framework, and ease of development of Laravel. 

> tbh, I feel TuumPHP is a bit too complicated compared to Slim. 

### License

MIT lisense.

### required packages

TuumPHP uses following packages;

*   [Aura/Session](https://github.com/auraphp/Aura.Session),
*   [Phly/Http](https://github.com/phly/http),
*   [Psr/Http-message](https://github.com/php-fig/http-message),
*   [Monolog/Monolog](https://github.com/Seldaek/monolog),
*   [League/Container](https://github.com/thephpleague/container),
*   [League/Flysystem](https://github.com/thephpleague/flysystem),
*   [Filp/Whoops](https://github.com/filp/whoops).

Uses home grown [template view](https://github.com/TuumPHP/View) and [router](https://github.com/TuumPHP/Router) (;´д｀)

Getting Started
----

### system requirements

This repository requires PHP >= 5.6.0. 

### installation

use ```git``` and ```composer``` to install. 

```sh
git clone https://github.com/TuumPHP/tuum -b 0.1.0
cd tuum
composer install
cd public
php -S localhost:8888 index.php
```

> please make the ```var/``` directory writable to the server.

and access ```http://localhost:8888``` in a browser. 

### simple routing using closures

The directory, ```app/```, contains scripts and configurations to construct a web application. The ```app/routes.php``` file contains routes definitions. 

So, how about adding the following code, somewhere after ```// add routes``` comments?

```php
$routes->get( '/new', function($request) {
    /** @var Request $request */
    return $request->respond()
    	->asText('just added a new page!');
});
$routes->get( '/back', function($request) {
    /** @var Request $request */
    return $request->redirect()
    	->withMessage('just redirected back')
    	->toPath('/new');
{'fraction_non_alphanumeric': 0.16116116116116116, 'fraction_numerical': 0.006256256256256257, 'mean_word_length': 4.204427083333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, 'https://': 20, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3447965', 'n_tokens_mistral': 1287, 'n_tokens_neox': 1233, 'n_words': 360}