Skip to content

Commit fbb43ef

Browse files
committed
init
0 parents  commit fbb43ef

14 files changed

+1391
-0
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
* text eol=lf
2+
/tests export-ignore
3+
/.gitattributes export-ignore
4+
/.gitignore export-ignore
5+
/.travis.yml export-ignore
6+
/phpunit.xml export-ignore

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor
2+
/composer.lock
3+
.idea

.travis.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: php
2+
php:
3+
- nightly
4+
- hhvm
5+
- 7.1
6+
- 7.0
7+
- 5.6
8+
- 5.5
9+
- 5.4
10+
11+
sudo: false
12+
13+
before_script:
14+
- composer install --dev --no-interaction
15+
16+
matrix:
17+
allow_failures:
18+
- php: hhvm
19+
- php: nightly
20+
fast_finish: true
21+
22+
script:
23+
- ./vendor/bin/phpunit -v --configuration phpunit.xml --coverage-text ./tests/
24+
25+
cache:
26+
directories:
27+
- $HOME/.composer/cache

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 Viacheslav Poturaev
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

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# phperf/highcharts
2+
3+
HighCharts bindings
4+
5+
[![Build Status](https://travis-ci.org/phperf/highcharts.svg?branch=master)](https://travis-ci.org/phperf/highcharts)
6+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phperf/highcharts/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phperf/highcharts/?branch=master)
7+
[![Code Climate](https://codeclimate.com/github/phperf/highcharts/badges/gpa.svg)](https://codeclimate.com/github/phperf/highcharts)
8+
9+
## Installation
10+
11+
```
12+
composer require phperf/highcharts
13+
```
14+
15+
## Usage
16+
17+
```php
18+
$hc = new HighCharts();
19+
$hc->addOption('legend', 'enabled', false);
20+
$hc->setTitle($name);
21+
$hc->addOption('plotOptions', 'series', 'point', 'mouseOver', <<<JS
22+
function(){console.log(this.x, this.y)}
23+
JS
24+
25+
$hc->addRow(1, 1);
26+
$hc->addRow(2, 2);
27+
$hc->addRow(3, 3);
28+
29+
$hc->render();
30+
```

composer.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "phperf/highcharts",
3+
"description": "HighCharts bindings",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Viacheslav Poturaev",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {
13+
"swaggest/json": "^1.0",
14+
"phperf/pipeline": "^0.0.1"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"Phperf\\HighCharts\\": "src/"
19+
}
20+
},
21+
"require-dev": {
22+
"phpunit/phpunit": "^4.0"
23+
}
24+
}

phpunit.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
colors="true"
4+
processIsolation="false"
5+
stopOnFailure="false"
6+
syntaxCheck="false"
7+
convertErrorsToExceptions="true"
8+
convertNoticesToExceptions="true"
9+
convertWarningsToExceptions="true"
10+
testSuiteLoaderClass="PHPUnit_Runner_StandardTestSuiteLoader">
11+
12+
<testsuites>
13+
<testsuite name="Tests">
14+
<directory>./tests</directory>
15+
</testsuite>
16+
</testsuites>
17+
<filter>
18+
<whitelist processUncoveredFilesFromWhitelist="true">
19+
<directory suffix=".php">./src/</directory>
20+
</whitelist>
21+
</filter>
22+
23+
</phpunit>

0 commit comments

Comments
 (0)