Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 169d1f2

Browse files
committed
Documentation: New README.md file.
1 parent eb4efe6 commit 169d1f2

File tree

1 file changed

+81
-23
lines changed

1 file changed

+81
-23
lines changed

README.md

Lines changed: 81 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
1-
![Hoa](http://static.hoa-project.net/Image/Hoa_small.png)
2-
3-
Hoa is a **modular**, **extensible** and **structured** set of PHP libraries.
4-
Moreover, Hoa aims at being a bridge between industrial and research worlds.
5-
6-
# Hoa\Acl ![state](http://central.hoa-project.net/State/Acl)
1+
<p align="center">
2+
<img src="https://static.hoa-project.net/Image/Hoa.svg" alt="Hoa" width="250px" />
3+
</p>
4+
5+
---
6+
7+
<p align="center">
8+
<a href="https://travis-ci.org/hoaproject/acl"><img src="https://img.shields.io/travis/hoaproject/acl/master.svg" alt="Build status" /></a>
9+
<a href="https://coveralls.io/github/hoaproject/acl?branch=master"><img src="https://img.shields.io/coveralls/hoaproject/acl/master.svg" alt="Code coverage" /></a>
10+
<a href="https://packagist.org/packages/hoa/acl"><img src="https://img.shields.io/packagist/dt/hoa/acl.svg" alt="Packagist" /></a>
11+
<a href="https://hoa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/acl.svg" alt="License" /></a>
12+
</p>
13+
<p align="center">
14+
Hoa is a <strong>modular</strong>, <strong>extensible</strong> and
15+
<strong>structured</strong> set of PHP libraries.<br />
16+
Moreover, Hoa aims at being a bridge between industrial and research worlds.
17+
</p>
18+
19+
# Hoa\Acl
20+
21+
[![Help on IRC](https://img.shields.io/badge/help-%23hoaproject-ff0066.svg)](https://webchat.freenode.net/?channels=#hoaproject)
22+
[![Help on Gitter](https://img.shields.io/badge/help-gitter-ff0066.svg)](https://gitter.im/hoaproject/central)
23+
[![Documentation](https://img.shields.io/badge/documentation-hack_book-ff0066.svg)](https://central.hoa-project.net/Documentation/Library/Acl)
24+
[![Board](https://img.shields.io/badge/organisation-board-ff0066.svg)](https://waffle.io/hoaproject/acl)
725

826
This library allows to create and manipulate an Access Control List (ACL). The
927
actors of an ACL are the following:
@@ -21,25 +39,40 @@ actors of an ACL are the following:
2139

2240
Whilst the word “list” is contained in its name, the underlying structure is a
2341
graph (please, see [the `Hoa\Graph`
24-
library](http://central.hoa-project.net/Resource/Library/Graph)) where vertices
42+
library](https://central.hoa-project.net/Resource/Library/Graph)) where vertices
2543
(i.e. nodes) are groups.
2644

45+
[Learn more](https://central.hoa-project.net/Documentation/Library/Acl).
46+
2747
## Installation
2848

29-
With [Composer](http://getcomposer.org/), to include this library into your
30-
dependencies, you need to require
31-
[`hoa/acl`](https://packagist.org/packages/hoa/acl):
49+
With [Composer](https://getcomposer.org/), to include this library into
50+
your dependencies, you need to
51+
require [`hoa/acl`](https://packagist.org/packages/hoa/acl):
3252

33-
```json
34-
{
35-
"require": {
36-
"hoa/acl": "~1.0"
37-
}
38-
}
53+
```sh
54+
$ composer require hoa/acl '~1.0'
3955
```
4056

41-
Please, read the website to [get more informations about how to
42-
install](http://hoa-project.net/Source.html).
57+
For more installation procedures, please read [the Source
58+
page](https://hoa-project.net/Source.html).
59+
60+
## Testing
61+
62+
Before running the test suites, the development dependencies must be installed:
63+
64+
```sh
65+
$ composer install
66+
```
67+
68+
Then, to run all the test suites:
69+
70+
```sh
71+
$ vendor/bin/hoa test:run
72+
```
73+
74+
For more information, please read the [contributor
75+
guide](https://hoa-project.net/Literature/Contributor/Guide.html).
4376

4477
## Quick usage
4578

@@ -220,15 +253,40 @@ $acl->isAllowed(
220253

221254
Obviously, the assert body can be complex and this library does not address
222255
asserter aggregation or similar problems. However, [the `Hoa\Ruler`
223-
library](http://central.hoa-project.net/Resource/Library/Ruler) perfectly fills
256+
library](https://central.hoa-project.net/Resource/Library/Ruler) perfectly fills
224257
this role, you might want to consider it.
225258

226259
## Documentation
227260

228-
Different documentations can be found on the website:
229-
[http://hoa-project.net/](http://hoa-project.net/).
261+
The
262+
[hack book of `Hoa\Acl`](https://central.hoa-project.net/Documentation/Library/Acl)
263+
contains detailed information about how to use this library and how it works.
264+
265+
To generate the documentation locally, execute the following commands:
266+
267+
```sh
268+
$ composer require --dev hoa/devtools
269+
$ vendor/bin/hoa devtools:documentation --open
270+
```
271+
272+
More documentation can be found on the project's website:
273+
[hoa-project.net](https://hoa-project.net/).
274+
275+
## Getting help
276+
277+
There are mainly two ways to get help:
278+
279+
* On the [`#hoaproject`](https://webchat.freenode.net/?channels=#hoaproject)
280+
IRC channel,
281+
* On the forum at [users.hoa-project.net](https://users.hoa-project.net).
282+
283+
## Contribution
284+
285+
Do you want to contribute? Thanks! A detailed [contributor
286+
guide](https://hoa-project.net/Literature/Contributor/Guide.html) explains
287+
everything you need to know.
230288

231289
## License
232290

233-
Hoa is under the New BSD License (BSD-3-Clause). Please, see
234-
[`LICENSE`](http://hoa-project.net/LICENSE).
291+
Hoa is under the New BSD License (BSD-3-Clause). Please, see
292+
[`LICENSE`](https://hoa-project.net/LICENSE) for details.

0 commit comments

Comments
 (0)