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
2424```
2525
2626Now you can test it with following example:
27+
2728``` php
2829<?php
2930declare(strict_types=1);
3031
31- use Native\Type \Matrix;
32+ use Lisachenko\NativePhpMatrix \Matrix;
3233
3334$first = new Matrix([[10, 20, 30]]);
3435$second = new Matrix([[2, 4, 6]]);
Original file line number Diff line number Diff line change 99 */
1010declare (strict_types=1 );
1111
12- use Native \ Type \Matrix ;
12+ use Lisachenko \ NativePhpMatrix \Matrix ;
1313use ZEngine \Core ;
1414use ZEngine \Reflection \ReflectionClass as ReflectionClassEx ;
1515
Original file line number Diff line number Diff line change 11{
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" ,
44 "type" : " library" ,
55 "license" : " MIT" ,
66 "authors" : [
1010 }
1111 ],
1212 "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 "
1515 },
1616 "autoload" : {
1717 "psr-4" : {
18- "Native \\ Type \\ " : " src/"
18+ "Lisachenko \\ NativePhpMatrix \\ " : " src/"
1919 },
2020 "files" : [" bootstrap.php" ]
2121 }
Original file line number Diff line number Diff line change 99 */
1010declare (strict_types = 1 );
1111
12- namespace Native \ Type ;
12+ namespace Lisachenko \ NativePhpMatrix ;
1313
1414use InvalidArgumentException ;
1515use ZEngine \ClassExtension \Hook \CompareValuesHook ;
1919use ZEngine \ClassExtension \ObjectCreateTrait ;
2020use ZEngine \ClassExtension \ObjectDoOperationInterface ;
2121use ZEngine \System \OpCode ;
22- use function count , is_numeric ;
22+
23+ use function count ;
24+ use function is_numeric ;
2325
2426/**
2527 * Simple class Matrix powered by custom operator handlers
You can’t perform that action at this time.
0 commit comments