Skip to content

Commit 238f8d4

Browse files
authored
Merge pull request #34 from macocci7/update_examples
Update examples and README
2 parents cb35035 + ae16a10 commit 238f8d4

16 files changed

Lines changed: 19 additions & 30 deletions

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This class treats basic matters of numbers.
6161
```php
6262
<?php
6363

64-
require_once('../vendor/autoload.php');
64+
require_once __DIR__ . '/../vendor/autoload.php';
6565

6666
use Macocci7\PhpMathInteger\Number;
6767

@@ -136,7 +136,7 @@ This class treats basic matters of primes.
136136
```php
137137
<?php
138138

139-
require_once('../vendor/autoload.php');
139+
require_once __DIR__ . '/../vendor/autoload.php';
140140

141141
use Macocci7\PhpMathInteger\Prime;
142142

@@ -245,7 +245,7 @@ This class treats basic matters of divisors.
245245
```php
246246
<?php
247247

248-
require_once('../vendor/autoload.php');
248+
require_once __DIR__ . '/../vendor/autoload.php';
249249

250250
use Macocci7\PhpMathInteger\Divisor;
251251

@@ -319,7 +319,7 @@ This class treats basic matters of multiples.
319319
```php
320320
<?php
321321

322-
require_once('../vendor/autoload.php');
322+
require_once __DIR__ . '/../vendor/autoload.php';
323323

324324
use Macocci7\PhpMathInteger\Multiple;
325325

@@ -357,7 +357,7 @@ This class treats basic matters of Euclidean Algorithm.
357357
```php
358358
<?php
359359

360-
require_once('../vendor/autoload.php');
360+
require_once __DIR__ . '/../vendor/autoload.php';
361361

362362
use Macocci7\PhpMathInteger\Euclid;
363363

@@ -440,7 +440,7 @@ This class treats basic matters of common fractions.
440440
```php
441441
<?php
442442

443-
require_once('../vendor/autoload.php');
443+
require_once __DIR__ . '/../vendor/autoload.php';
444444

445445
use Macocci7\PhpMathInteger\Fraction;
446446

@@ -547,7 +547,7 @@ This class treats basic matters of Bezout's Identity.
547547
```php
548548
<?php
549549

550-
require_once('../vendor/autoload.php');
550+
require_once __DIR__ . '/../vendor/autoload.php';
551551

552552
use Macocci7\PhpMathInteger\Bezout;
553553

@@ -607,6 +607,6 @@ This class treats basic matters of Bezout's Identity.
607607

608608
*Document Created: 2023/10/19*
609609

610-
*Document Updated: 2024/04/17*
610+
*Document Updated: 2024/04/18*
611611

612612
Copyright 2023 - 2024 macocci7

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "macocci7/php-math-integer",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"description": "PHP Math Library of the subjects of number theory(only natural number).",
55
"type": "library",
66
"license": "MIT",
@@ -16,6 +16,9 @@
1616
}
1717
],
1818
"minimum-stability": "stable",
19+
"require": {
20+
"php": ">=8.1"
21+
},
1922
"require-dev": {
2023
"squizlabs/php_codesniffer": "^3.7",
2124
"phpunit/phpunit": "^10.5",

examples/UseBezout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Bezout;
66

examples/UseDivisor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Divisor;
66

examples/UseEuclid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Euclid;
66

examples/UseFraction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Fraction;
66

examples/UseMultiple.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Multiple;
66

examples/UseNumber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Number;
66

examples/UsePrime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
require_once('../vendor/autoload.php');
3+
require_once __DIR__ . '/../vendor/autoload.php';
44

55
use Macocci7\PhpMathInteger\Prime;
66

tests/BezoutTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace Macocci7\PhpMathInteger;
66

7-
require_once('vendor/autoload.php');
8-
97
use PHPUnit\Framework\Attributes\DataProvider;
108
use PHPUnit\Framework\TestCase;
119
use Macocci7\PhpMathInteger\Bezout;

0 commit comments

Comments
 (0)