Skip to content

Commit cf98197

Browse files
committed
First commit
Create package structure
0 parents  commit cf98197

File tree

6 files changed

+93
-0
lines changed

6 files changed

+93
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/build/
2+
/composer.lock
3+
/vendor/

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language:
2+
php
3+
4+
php:
5+
- 5.4
6+
- 5.5
7+
- 5.6
8+
9+
before_script:
10+
- make install
11+
12+
script:
13+
- make phpcs
14+
- make phpunit

Makefile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
PACKAGE=PHPFluent/ArrayStorage
2+
SOURCE=src/
3+
TEST=tests/
4+
VERSION=$(shell git describe --always)
5+
6+
.title:
7+
@echo "\033[32m${PACKAGE}\033[m - \033[33m${VERSION}\033[m"
8+
9+
install: .title
10+
@test ! -f composer.phar && curl -sS https://getcomposer.org/installer | php || composer.phar self-update
11+
@php composer.phar install
12+
13+
phpcs: .title
14+
@vendor/bin/phpcs --standard=PSR2 "${SOURCE}"
15+
16+
phpmd: .title
17+
@vendor/bin/phpmd "${SOURCE}" text codesize,controversial,design,naming,unusedcode
18+
19+
phpunit: .title
20+
@vendor/bin/phpunit "${TEST}"
21+
22+
phpunit-coverage-html: .title
23+
@vendor/bin/phpunit --coverage-html=build/coverage "${TEST}"
24+
25+
phpunit-coverage-text: .title
26+
@vendor/bin/phpunit --coverage-text "${TEST}"
27+
28+
phpunit-testdox: .title
29+
@vendor/bin/phpunit --testdox "${TEST}"

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# PHPFluent\ArrayStorage
2+
[![Build Status](https://secure.travis-ci.org/PHPFluent/ArrayStorage.png)](http://travis-ci.org/PHPFluent/ArrayStorage)
3+
[![Total Downloads](https://poser.pugx.org/phpfluent/arraystorage/downloads.png)](https://packagist.org/packages/phpfluent/arraystorage)
4+
[![License](https://poser.pugx.org/phpfluent/arraystorage/license.png)](https://packagist.org/packages/phpfluent/arraystorage)
5+
[![Latest Stable Version](https://poser.pugx.org/phpfluent/arraystorage/v/stable.png)](https://packagist.org/packages/phpfluent/arraystorage)
6+
[![Latest Unstable Version](https://poser.pugx.org/phpfluent/arraystorage/v/unstable.png)](https://packagist.org/packages/phpfluent/arraystorage)
7+
8+
Non-persistent way to use arrays as _database_.
9+
10+
## Installation
11+
12+
Package is available on [Packagist](https://packagist.org/packages/phpfluent/arraystorage), you can install it
13+
using [Composer](http://getcomposer.org).
14+
15+
```bash
16+
composer require phpfluent/arraystorage
17+
```

composer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "phpfluent/arraystorage",
3+
"type": "library",
4+
"homepage": "http://github.com/PHPFluent/ArrayStorage",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Henrique Moody",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"autoload": {
13+
"psr-4": {
14+
"PHPFluent\\ArrayStorage\\": ["src", "tests"]
15+
}
16+
},
17+
"require-dev": {
18+
"phpmd/phpmd" : "~1.5",
19+
"phpunit/phpunit": "~4.1",
20+
"squizlabs/php_codesniffer": "~1.5"
21+
}
22+
}

phpunit.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<phpunit colors="true">
3+
<testsuites>
4+
<testsuite>
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
</phpunit>

0 commit comments

Comments
 (0)