Skip to content

Commit

Permalink
Merge pull request #21 from macocci7/dev_1.2.0
Browse files Browse the repository at this point in the history
Dev 1.2.0
  • Loading branch information
macocci7 authored Apr 18, 2024
2 parents 46d76cf + 0ec1d94 commit 8651af0
Show file tree
Hide file tree
Showing 21 changed files with 54 additions and 3,411 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag_meged_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
tools: composer:v2

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
tools: composer:v2

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -63,12 +63,12 @@ jobs:
tools: composer:v2

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14.x'

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down Expand Up @@ -126,25 +126,25 @@ jobs:
tools: composer:v2

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '14.x'

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run Composer
run: composer install --no-interaction

- name: Update PHPUnit for Code Coverage
run: composer require phpunit/phpunit:^9.6 phploc/phploc:* sebastian/version:* --with-all-dependencies
run: composer require phpunit/phpunit:^10.5 sebastian/version:* --with-all-dependencies

- name: PHP Lint
run: ./vendor/bin/parallel-lint src tests examples

- name: Unit tests
run: |
mkdir -p build/logs
./vendor/bin/phpunit ./tests/ --coverage-clover build/logs/clover.xml
XDEBUG_MODE=coverage ./vendor/bin/phpunit ./tests/ --coverage-clover build/logs/clover.xml --coverage-filter=./src/
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

composer.lock
.php-version
/vendor
/.phpunit.cache
.phpunit.result.cache
Expand Down
1 change: 0 additions & 1 deletion .php-version

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ composer require macocci7/php-boxplot
```php
<?php

require('../vendor/autoload.php');
require_once __DIR__ . '/../vendor/autoload.php';

use Macocci7\PhpBoxplot\Boxplot;

Expand Down Expand Up @@ -97,7 +97,7 @@ composer require macocci7/php-boxplot
- The hash keys of the data are used as the labels for the X axis.

- Details:
- Import Autoloader: `require_once('../vendor/autoload.php')`
- Import Autoloader: `require_once __DIR__ . '/../vendor/autoload.php'`
- Declare: `use Macocci7\PhpBoxplot\Boxplot`
- Instantiate: `new Boxplot()`
- Set Data: `setData($data)`
Expand All @@ -117,7 +117,7 @@ And Setting Caption can be done as follows:
```php
<?php

require('../vendor/autoload.php');
require_once __DIR__ . '/../vendor/autoload.php';

use Macocci7\PhpBoxplot\Boxplot;

Expand Down Expand Up @@ -202,7 +202,7 @@ Multiple datasets can be displayed side by side at the same time.
```php
<?php

require_once('../vendor/autoload.php');
require_once __DIR__ . '/../vendor/autoload.php';

use Macocci7\PhpBoxplot\Boxplot;

Expand Down Expand Up @@ -370,7 +370,7 @@ Second, Code PHP like this:
```php
<?php

require_once('../vendor/autoload.php');
require_once __DIR__ . '/../vendor/autoload.php';

use Macocci7\PhpBoxplot\Boxplot;

Expand All @@ -394,7 +394,7 @@ You can Adjust the Display by using Array.
```php
<?php

require_once('../vendor/autoload.php');
require_once __DIR__ . '/../vendor/autoload.php';

use Macocci7\PhpBoxplot\Boxplot;

Expand Down Expand Up @@ -460,7 +460,7 @@ You can set transparent background like this.
```php
<?php

require_once('../vendor/autoload.php');
require_once __DIR__ . '/../vendor/autoload.php';

use Macocci7\PhpBoxplot\Boxplot;

Expand Down Expand Up @@ -545,6 +545,6 @@ You can set transparent background like this.

*Document created: 2023/05/28*

*Document updated: 2024/03/09*
*Document updated: 2024/04/18*

Copyright 2023 - 2024 macocci7
2 changes: 1 addition & 1 deletion bin/TestAndLint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ test_and_lint() {
echo "-----------------------------------------------------------"
echo "[PHP $1][phpunit]"
./vendor/bin/phpunit ./tests/ \
--color auto
--color=auto
echo "-----------------------------------------------------------"
}

Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "macocci7/php-boxplot",
"version": "1.1.1",
"version": "1.2.0",
"description": "it's easy to use for creating boxplots.",
"type": "library",
"require": {
"intervention/image": "^3.4",
"macocci7/php-frequency-table": "1.2.0",
"php": ">=8.1",
"intervention/image": "^3.5",
"macocci7/php-frequency-table": "1.3.0",
"fakerphp/faker": "^1.22",
"nette/neon": "^3.4"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7",
"phpunit/phpunit": "^9.6",
"phpunit/phpunit": "^10.5",
"phpmd/phpmd": "^2.15",
"phpstan/phpstan": "^1.10",
"phploc/phploc": "^7.0",
"php-parallel-lint/php-parallel-lint": "^1.3"
},
"license": "MIT",
Expand Down
Loading

0 comments on commit 8651af0

Please sign in to comment.