Skip to content

Commit 6519aa3

Browse files
committed
initial
0 parents  commit 6519aa3

File tree

9 files changed

+1952
-0
lines changed

9 files changed

+1952
-0
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* text eol=lf
2+
*.serialized -text
3+
*.dat -text
4+
/tests export-ignore
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.travis.yml export-ignore

.gitignore

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

.travis.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
language: php
2+
php:
3+
- nightly
4+
- hhvm
5+
- 7.0
6+
- 5.6
7+
- 5.5
8+
- 5.4
9+
- 5.3
10+
11+
sudo: false
12+
13+
script:
14+
- phpunit tests

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Vea Rooftop
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# phperf/cli-spark, ▁▂▃▄▂█ spark line charts for your CLI app
2+
3+
A PHP-embeddable port of https://github.com/holman/spark
4+
5+
## Install
6+
7+
```
8+
composer require phperf/cli-spark
9+
```
10+
11+
## Usage
12+
13+
```
14+
echo \Sparkline\Spark::getString(array(-150, 0, 30, 55.5, 80, 33, 150)); // ▁▄▅▅▆▅█
15+
```

composer.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "phperf/cli-spark",
3+
"type": "library",
4+
"description": "Spark line charts for your CLI app",
5+
"keywords": [
6+
"chart",
7+
"cli"
8+
],
9+
"homepage": "https://github.com/phperf/cli-spark",
10+
"license": "MIT",
11+
"authors": [
12+
{
13+
"name": "Viacheslav Poturaev",
14+
"email": "[email protected]",
15+
"homepage": "https://github.com/vearutop"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.3.0"
20+
},
21+
"require-dev": {
22+
"codeclimate/php-test-reporter": "0.1.2",
23+
"phpunit/phpunit": "4.8.23"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"Sparkline\\": "src/"
28+
}
29+
},
30+
"autoload-dev": {
31+
"psr-4": {
32+
"Sparkline\\Tests\\": "tests/src/"
33+
}
34+
},
35+
"scripts": {
36+
"test": "php -dxdebug.coverage_enable=1 ./vendor/bin/phpunit --coverage-text"
37+
}
38+
}

0 commit comments

Comments
 (0)