diff options
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-10-21 17:08:26 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-10-21 17:08:26 +0200
commit72f8c6d13f882bd1fe4971160d4b20128e42eb41 (patch)
parenta6835a5af6728db52d0b92213fc67cf0be7addaa (diff)
Documentation: New `README.md` file.
1 files changed, 79 insertions, 21 deletions
diff --git a/README.md b/README.md
index eb930a5..5dd4c28 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,27 @@
-Hoa is a **modular**, **extensible** and **structured** set of PHP libraries.
-Moreover, Hoa aims at being a bridge between industrial and research worlds.
-# Hoa\Router ![state](http://central.hoa-project.net/State/Router)
+<p align="center">
+ <img src="https://static.hoa-project.net/Image/Hoa.svg" alt="Hoa" width="250px" />
+<p align="center">
+ <a href="https://travis-ci.org/hoaproject/router"><img src="https://img.shields.io/travis/hoaproject/router/master.svg" alt="Build status" /></a>
+ <a href="https://coveralls.io/github/hoaproject/router?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/router/master.svg" alt="Code coverage" /></a>
+ <a href="https://packagist.org/packages/hoa/router"><img src="https://img.shields.io/packagist/dt/hoa/router.svg" alt="Packagist" /></a>
+ <a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/router.svg" alt="License" /></a>
+<p align="center">
+ Hoa is a <strong>modular</strong>, <strong>extensible</strong> and
+ <strong>structured</strong> set of PHP libraries.<br />
+ Moreover, Hoa aims at being a bridge between industrial and research worlds.
+# Hoa\Router
+[![Help on IRC](https://img.shields.io/badge/help-%23hoaproject-ff0066.svg)](https://webchat.freenode.net/?channels=#hoaproject)
+[![Help on Gitter](https://img.shields.io/badge/help-gitter-ff0066.svg)](https://gitter.im/hoaproject/central)
This library allows to find an appropriated route and extracts data from a
request. Conversely, given a route and data, this library is able to build a
@@ -12,22 +30,37 @@ request.
For now, we have two routers: HTTP (routes understand URI and subdomains) and
CLI (routes understand a full command-line).
+[Learn more](https://central.hoa-project.net/Documentation/Library/Router).
## Installation
-With [Composer](http://getcomposer.org/), to include this library into your
-dependencies, you need to require
+With [Composer](https://getcomposer.org/), to include this library into
+your dependencies, you need to
+require [`hoa/router`](https://packagist.org/packages/hoa/router):
- "require": {
- "hoa/router": "~3.0"
- }
+$ composer require hoa/router '~3.0'
-Please, read the website to [get more informations about how to
+For more installation procedures, please read [the Source
+## Testing
+Before running the test suites, the development dependencies must be installed:
+$ composer install
+Then, to run all the test suites:
+$ vendor/bin/hoa test:run
+For more information, please read the [contributor
## Quick usage
@@ -139,10 +172,35 @@ the terminal.
## Documentation
-Different documentations can be found on the website:
+[hack book of `Hoa\Router`](https://central.hoa-project.net/Documentation/Library/Router)
+contains detailed information about how to use this library and how it works.
+To generate the documentation locally, execute the following commands:
+$ composer require --dev hoa/devtools
+$ vendor/bin/hoa devtools:documentation --open
+More documentation can be found on the project's website:
+## Getting help
+There are mainly two ways to get help:
+ * On the [`#hoaproject`](https://webchat.freenode.net/?channels=#hoaproject)
+ IRC channel,
+ * On the forum at [users.hoa-project.net](https://users.hoa-project.net).
+## Contribution
+Do you want to contribute? Thanks! A detailed [contributor
+guide](https://hoa-project.net/Literature/Contributor/Guide.html) explains
+everything you need to know.
## License
-Hoa is under the New BSD License (BSD-3-Clause). Please, see
+Hoa is under the New BSD License (BSD-3-Clause). Please, see
+[`LICENSE`](https://hoa-project.net/LICENSE) for details.