File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,12 @@ composer require lisachenko/native-types
24
24
```
25
25
26
26
Now you can test it with following example:
27
+
27
28
``` php
28
29
<?php
29
30
declare(strict_types=1);
30
31
31
- use Native\Type \Matrix;
32
+ use Lisachenko\NativePhpMatrix \Matrix;
32
33
33
34
$first = new Matrix([[10, 20, 30]]);
34
35
$second = new Matrix([[2, 4, 6]]);
Original file line number Diff line number Diff line change 9
9
*/
10
10
declare (strict_types=1 );
11
11
12
- use Native \ Type \Matrix ;
12
+ use Lisachenko \ NativePhpMatrix \Matrix ;
13
13
use ZEngine \Core ;
14
14
use ZEngine \Reflection \ReflectionClass as ReflectionClassEx ;
15
15
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " lisachenko/native-types " ,
3
- "description" : " PHP Library that provides an implementation of userland types, powered with overloaded operators" ,
2
+ "name" : " lisachenko/native-php-matrix " ,
3
+ "description" : " PHP extension that provides Matrix class powered with overloaded operators" ,
4
4
"type" : " library" ,
5
5
"license" : " MIT" ,
6
6
"authors" : [
10
10
}
11
11
],
12
12
"require" : {
13
- "lisachenko/z-engine" : " ^0.7 || ^0.8 " ,
14
- "php" : " ~ 7.4"
13
+ "lisachenko/z-engine" : " ^0.8 || ^0.9 " ,
14
+ "php" : " ^ 7.4|^8.0 "
15
15
},
16
16
"autoload" : {
17
17
"psr-4" : {
18
- "Native \\ Type \\ " : " src/"
18
+ "Lisachenko \\ NativePhpMatrix \\ " : " src/"
19
19
},
20
20
"files" : [" bootstrap.php" ]
21
21
}
Original file line number Diff line number Diff line change 9
9
*/
10
10
declare (strict_types = 1 );
11
11
12
- namespace Native \ Type ;
12
+ namespace Lisachenko \ NativePhpMatrix ;
13
13
14
14
use InvalidArgumentException ;
15
15
use ZEngine \ClassExtension \Hook \CompareValuesHook ;
19
19
use ZEngine \ClassExtension \ObjectCreateTrait ;
20
20
use ZEngine \ClassExtension \ObjectDoOperationInterface ;
21
21
use ZEngine \System \OpCode ;
22
- use function count , is_numeric ;
22
+
23
+ use function count ;
24
+ use function is_numeric ;
23
25
24
26
/**
25
27
* Simple class Matrix powered by custom operator handlers
You can’t perform that action at this time.
0 commit comments