aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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)
treee1f2b2c33956b20c47b117c5922168e4865e4507
parenta6835a5af6728db52d0b92213fc67cf0be7addaa (diff)
downloadRouter-72f8c6d13f882bd1fe4971160d4b20128e42eb41.zip
Router-72f8c6d13f882bd1fe4971160d4b20128e42eb41.tar.gz
Router-72f8c6d13f882bd1fe4971160d4b20128e42eb41.tar.bz2
Documentation: New `README.md` file.
-rw-r--r--README.md100
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](http://static.hoa-project.net/Image/Hoa_small.png)
-
-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>
+
+---
+
+<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>
+<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.
+</p>
+
+# 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)
+[![Documentation](https://img.shields.io/badge/documentation-hack_book-ff0066.svg)](https://central.hoa-project.net/Documentation/Library/Router)
+[![Board](https://img.shields.io/badge/organisation-board-ff0066.svg)](https://waffle.io/hoaproject/router)
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
-[`hoa/router`](https://packagist.org/packages/hoa/router):
+With [Composer](https://getcomposer.org/), to include this library into
+your dependencies, you need to
+require [`hoa/router`](https://packagist.org/packages/hoa/router):
-```json
-{
- "require": {
- "hoa/router": "~3.0"
- }
-}
+```sh
+$ composer require hoa/router '~3.0'
```
-Please, read the website to [get more informations about how to
-install](http://hoa-project.net/Source.html).
+For more installation procedures, please read [the Source
+page](https://hoa-project.net/Source.html).
+
+## Testing
+
+Before running the test suites, the development dependencies must be installed:
+
+```sh
+$ composer install
+```
+
+Then, to run all the test suites:
+
+```sh
+$ vendor/bin/hoa test:run
+```
+
+For more information, please read the [contributor
+guide](https://hoa-project.net/Literature/Contributor/Guide.html).
## Quick usage
@@ -139,10 +172,35 @@ the terminal.
## Documentation
-Different documentations can be found on the website:
-[http://hoa-project.net/](http://hoa-project.net/).
+The
+[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:
+
+```sh
+$ composer require --dev hoa/devtools
+$ vendor/bin/hoa devtools:documentation --open
+```
+
+More documentation can be found on the project's website:
+[hoa-project.net](https://hoa-project.net/).
+
+## 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
-[`LICENSE`](http://hoa-project.net/LICENSE).
+Hoa is under the New BSD License (BSD-3-Clause). Please, see
+[`LICENSE`](https://hoa-project.net/LICENSE) for details.