11PHP BitArray
22======================
3- [ ![ Travis] ( https://img.shields.io/travis/chdemko/php-bitarray.svg )] ( http://travis-ci.org/chdemko/php-bitarray )
4- [ ![ Coveralls] ( https://img.shields.io/coveralls/chdemko/php-bitarray.svg )] ( https://coveralls.io/r/chdemko/php-bitarray?branch=master )
5- [ ![ Scrutinizer] ( https://img.shields.io/scrutinizer/g/chdemko/php-bitarray.svg )] ( https://scrutinizer-ci.com/g/chdemko/php-bitarray/?branch=master )
6- [ ![ PHP versions] ( https://img.shields.io/php-eye/chdemko/bitarray.svg )] ( https://packagist.org/packages/chdemko/bitarray )
3+ ![ PHP package] ( https://github.com/chdemko/php-bitarray/workflows/PHP%20Composer/badge.svg?branch=develop )
4+ [ ![ Documentation Status] ( https://img.shields.io/readthedocs/php-bitarray.svg )] ( http://php-bitarray.readthedocs.io/en/latest/?badge=latest )
5+ [ ![ Coveralls] ( https://img.shields.io/coveralls/chdemko/php-bitarray.svg )] ( https://coveralls.io/r/chdemko/php-bitarray?branch=develop )
6+ [ ![ Scrutinizer] ( https://img.shields.io/scrutinizer/g/chdemko/php-bitarray/develop.svg )] ( https://scrutinizer-ci.com/g/chdemko/php-bitarray/?branch=develop )
7+ [ ![ PHP versions] ( https://img.shields.io/packagist/dependency-v/chdemko/bitarray/php )] ( https://packagist.org/packages/chdemko/bitarray )
78[ ![ Latest Stable Version] ( https://img.shields.io/packagist/v/chdemko/bitarray.svg )] ( https://packagist.org/packages/chdemko/bitarray )
89[ ![ Packagist] ( https://img.shields.io/packagist/dt/chdemko/bitarray.svg )] ( https://packagist.org/packages/chdemko/bitarray )
910[ ![ Latest Unstable Version] ( https://poser.pugx.org/chdemko/bitarray/v/unstable.svg )] ( https://packagist.org/packages/chdemko/bitarray )
10- [ ![ License] ( https://poser.pugx.org/chdemko/bitarray/license.svg )] ( https://raw.githubusercontent.com/chdemko/php-bitarray/master /LICENSE )
11+ [ ![ License] ( https://poser.pugx.org/chdemko/bitarray/license.svg )] ( https://raw.githubusercontent.com/chdemko/php-bitarray/develop /LICENSE )
1112
1213BitArray for PHP.
1314
@@ -27,16 +28,18 @@ It also provides methods for bitwise logical operations between two bit arrays `
2728
2829This project uses:
2930
30- * [ PHP Code Sniffer] ( https://github.com/squizlabs/php_codesniffer ) for checking PHP code style using [ Joomla Coding Standards ] ( https://github.com/joomla/coding-standards )
31+ * [ PHP Code Sniffer] ( https://github.com/squizlabs/php_codesniffer ) for checking PHP code style
3132* [ PHPUnit] ( http://phpunit.de/ ) for unit test (100% covered)
32- * [ phpDocumentor] ( http://http://www.phpdoc.org/ ) for api documentation
33+ * [ Sphinx] ( https://www.sphinx-doc.org/ ) and [ Doxygen] ( https://www.doxygen.nl/ ) for the
34+ [ documentation] ( http://php-sorted-collections.readthedocs.io/en/latest/?badge=latest )
3335
34- Installation
36+
37+ Instructions
3538------------
3639
3740Using composer: either
3841
39- ~~~
42+ ~~~ shell
4043$ composer create-project chdemko/bitarray:1.2.x-dev --dev; cd bitarray
4144~~~
4245
@@ -49,38 +52,57 @@ or create a `composer.json` file containing
4952 }
5053}
5154~~~
55+
5256and run
53- ~~~
57+
58+ ~~~ shell
5459$ composer install
5560~~~
5661
5762Create a ` test.php ` file containing
63+
5864~~~ php
5965<?php
66+
6067require __DIR__ . '/vendor/autoload.php';
6168
6269use chdemko\BitArray\BitArray;
6370
6471$bits = BitArray::fromTraversable([true,false,false,true]);
6572echo $bits . PHP_EOL;
6673~~~
74+
6775This should print
68- ~~~
76+
77+ ~~~ console
69781001
7079~~~
80+
7181See the [ examples] ( https://github.com/chdemko/php-bitarray/tree/master/examples ) folder for more information.
7282
7383Documentation
7484-------------
7585
76- * [ http://chdemko.github.io/php-bitarray ] ( http://chdemko.github.io/php-bitarray )
86+ Run
87+
88+ ~~~ shell
89+ $ sudo apt install doxygen python3-pip python3-virtualenv
90+ $ virtualenv venv
91+ $ venv/bin/activate
92+ (venv) $ pip install -r docs/requirements.txt
93+ (venv) $ sphinx-build -b html docs/ html/
94+ (venv) $ deactivate
95+ $
96+ ~~~
97+
98+ if you want to create local documentation with Sphinx.
7799
78100Citation
79101--------
80102
81- If you are using this project including publication in research activities, you have to cite it using (
[ BibTeX format
] ( https://raw.github.com/chdemko/php-bitarray/master /cite.bib ) ). You are also pleased to send me an email to
[email protected] .
103+ If you are using this project including publication in research activities, you have to cite it using (
[ BibTeX format
] ( https://raw.github.com/chdemko/php-bitarray/develop /cite.bib ) ). You are also pleased to send me an email to
[email protected] .
82104* authors: Christophe Demko
83105* title: php-bitarray: a PHP library for handling bit arrays
84106* year: 2014
85- * how published: http ://chdemko.github.io/php- bitarray
107+ * how published: https ://packagist.org/packages/chdemko/ bitarray/
86108
0 commit comments