Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/test_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.1', '8.2', '8.3', '8.4', '8.5']
php: ['8.3', '8.4', '8.5']

steps:
- name: Set up PHP
Expand All @@ -24,7 +24,7 @@ jobs:
node-version: '24.x'

- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.4']
php: ['8.5']

steps:
- name: Set up PHP
Expand All @@ -82,15 +82,15 @@ jobs:
node-version: '24.x'

- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0

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

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

- name: PHP Lint
run: ./vendor/bin/parallel-lint src tests examples
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 macocci7
Copyright (c) 2023-present macocci7

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 0 additions & 2 deletions PHP_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
8.1
8.2
8.3
8.4
8.5
24 changes: 13 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,20 @@ You can also retrieve parsed data:

## 3. Requirements

- PHP 8.1 or later
- PHP 8.3 or later
- Imagick PHP Extension

Check with commands:
```php
php -i | grep imagick
(php -m; php -i) | grep imagick
```
- Composer
- Mbstring PHP Extension

Check with commands:
```php
(php -m; php -i) | grep mbstring
```
- [Composer](https://getcomposer.org/)

## 4. Installation

Expand Down Expand Up @@ -279,7 +285,7 @@ First, prepare a Neon file like this:
yLimitUpper: 12
yLimitLower: 0
plotDiameter: 6
#fontPath: 'fonts/ipaexg.ttf' # IPA ex Gothic 00401
#fontPath: '/usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf'
#fontSize: 16
#fontColor: '#333333'
referenceLineX: true
Expand Down Expand Up @@ -416,7 +422,7 @@ Then, run the PHP code.
'yLimitUpper' => 12,
'yLimitLower' => 0,
'plotDiameter' => 6,
//'fontPath' => __DIR__ . '/fonts/ipaexg.ttf', // IPA ex Gothic 00401
//'fontPath' => '/usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf',
//'fontSize' => 16,
//'fontColor' => '#333333',
'referenceLineX' => true,
Expand Down Expand Up @@ -653,13 +659,9 @@ Then, run the PHP code.

<a href="examples/img/TransparentBackground.png"><img src="examples/img/TransparentBackground.png" width="300" /></a>

- [ParsedData.php](example/ParsedData.php) >> results in [ParsedData.txt](example/ParsedData.txt)
- [Matrix.php](example/Matrix.php) >> results in [Matrix.md](example/Matrix.md)
- [ParsedData.php](examples/ParsedData.php) >> results in [ParsedData.txt](examples/ParsedData.txt)
- [Matrix.php](examples/Matrix.php) >> results in [Matrix.md](examples/Matrix.md)

## 7. License

[MIT](LICENSE)

***

Copyright 2023 - 2026 macocci7.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
],
"minimum-stability": "stable",
"require": {
"php": ">=8.1",
"intervention/image": "^3.11",
"php": ">=8.3",
"intervention/image": "^4.0",
"macocci7/php-frequency-table": "^1.4",
"macocci7/php-csv": "^1.1",
"macocci7/php-combination": "^1.1",
"nette/neon": "^3.4"
},
"require-dev": {
"squizlabs/php_codesniffer": "^4.0",
"phpunit/phpunit": "^10.5",
"phpunit/phpunit": "^12.5",
"phpstan/phpstan": "^2.1",
"php-parallel-lint/php-parallel-lint": "^1.4"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/AdjustDisplayByArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
'yLimitUpper' => 12,
'yLimitLower' => 0,
'plotDiameter' => 6,
//'fontPath' => __DIR__ . '/fonts/ipaexg.ttf', // IPA ex Gothic 00401
//'fontPath' => '/usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf:',
//'fontSize' => 16,
//'fontColor' => '#333333',
'referenceLineX' => true,
Expand Down
2 changes: 1 addition & 1 deletion examples/AdjustDisplayByNeon.neon
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ xLimitLower: 0
yLimitUpper: 12
yLimitLower: 0
plotDiameter: 6
#fontPath: 'fonts/ipaexg.ttf' # IPA ex Gothic 00401
#fontPath: '/usr/share/fonts/opentype/ipafont-gothic/ipagp.ttf'
#fontSize: 16
#fontColor: '#333333'
referenceLineX: true
Expand Down
Loading