aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md17
-rw-r--r--composer.json7
2 files changed, 23 insertions, 1 deletions
diff --git a/README.md b/README.md
index a64c0a2..38ce1bd 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,23 @@ Moreover, Hoa aims at being a bridge between industrial and research worlds.
This library allows to manipulate UTF-8 strings easily with some search
algorithms.
+## Installation
+
+With [Composer](http://getcomposer.org/), to include this library into your
+dependencies, you need to require
+[`hoa/string`](https://packagist.org/packages/hoa/string):
+
+```json
+{
+ "require": {
+ "hoa/string": "~2.0"
+ }
+}
+```
+
+Please, read the website to [get more informations about how to
+install](http://hoa-project.net/Source.html).
+
## Quick usage
We propose a quick overview of two usages: manipulate UTF-8 strings and one
diff --git a/composer.json b/composer.json
index 108bc6b..7a1e214 100644
--- a/composer.json
+++ b/composer.json
@@ -21,12 +21,17 @@
"source": "http://git.hoa-project.net/"
},
"require": {
- "hoa/core" : "~1.0",
+ "hoa/core" : "~2.0",
"ext-iconv" : "*"
},
"target-dir": "Hoa/String",
"autoload" : { "psr-0": { "Hoa\\String": "." } },
"suggest" : {
"ext-intl": "To get a better Hoa\\String::toAscii() and Hoa\\String::compareTo()."
+ },
+ "extra" : {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
}
}