repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/TupleValue.php
src/GoValue/TupleValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue; use GoPhp\Error\InternalError; use GoPhp\Operator; use function count; /** * Not a real Go value, but an internal representation * of a set of values returned from a function call with multiple return values. * * @psalm-type Tuple = list<GoValue> * @temp...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Slice/SliceValue.php
src/GoValue/Slice/SliceValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Slice; use GoPhp\Error\RuntimeError; use GoPhp\GoType\SliceType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Ref; use GoPhp\GoValue\Unpackable; use GoPhp\GoValue\UntypedNilValue; use GoPhp\GoValue\PointerValue; use GoPhp\GoValue\Array\UnderlyingArray; ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Slice/CapGrowthHelper.php
src/GoValue/Slice/CapGrowthHelper.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Slice; final class CapGrowthHelper { private const int THRESHOLD = 256; private function __construct() {} public static function calculateCap(int $cap): int { if ($cap === 0) { return 1; } if ($cap < self::T...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Slice/SliceBuilder.php
src/GoValue/Slice/SliceBuilder.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Slice; use GoParser\Ast\KeyedElement; use GoPhp\CompositeValueBuilder; use GoPhp\GoType\SliceType; use GoPhp\GoValue\GoValue; use function GoPhp\assert_types_compatible_with_cast; final class SliceBuilder implements CompositeValueBuilder { private array $v...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Struct/StructValue.php
src/GoValue/Struct/StructValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Struct; use GoPhp\Env\EnvMap; use GoPhp\Error\InternalError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\StructType; use GoPhp\GoValue\AddressableTrait; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\GoValue; use GoPhp\GoVa...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Struct/StructBuilder.php
src/GoValue/Struct/StructBuilder.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Struct; use GoParser\Ast\Expr\Ident; use GoParser\Ast\KeyedElement; use GoPhp\CompositeValueBuilder; use GoPhp\Env\EnvValue; use GoPhp\Env\EnvMap; use GoPhp\Error\RuntimeError; use GoPhp\GoType\StructType; use GoPhp\GoValue\GoValue; use function count; use func...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Float/UntypedFloatValue.php
src/GoValue/Float/UntypedFloatValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Float; use GoPhp\GoType\UntypedType; final class UntypedFloatValue extends FloatNumber { private readonly UntypedType $type; public function __construct(float $value) { parent::__construct($value); $this->type = ($value - (int) $va...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Float/FloatNumber.php
src/GoValue/Float/FloatNumber.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Float; use GoPhp\Error\RuntimeError; use GoPhp\GoType\BasicType; use GoPhp\GoType\NamedType; use GoPhp\GoType\UntypedType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Sealable; use GoPhp\GoValue\SimpleNumber; use GoPhp\Operat...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Float/Float32Value.php
src/GoValue/Float/Float32Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Float; use GoPhp\GoType\NamedType; final class Float32Value extends FloatNumber { public function type(): NamedType { return NamedType::Float32; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Float/Float64Value.php
src/GoValue/Float/Float64Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Float; use GoPhp\GoType\NamedType; final class Float64Value extends FloatNumber { public function type(): NamedType { return NamedType::Float64; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Func/Func.php
src/GoValue/Func/Func.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Func; use Closure; use GoPhp\Argv; use GoPhp\Env\Environment; use GoPhp\Error\InternalError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\FuncType; use GoPhp\GoType\PointerType; use GoPhp\GoType\SliceType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Func/FuncValue.php
src/GoValue/Func/FuncValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Func; use Closure; use GoPhp\Argv; use GoPhp\Env\Environment; use GoPhp\Error\InternalError; use GoPhp\Error\PanicError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\FuncType; use GoPhp\GoValue\AddressableTrait; use GoPhp\GoValue\AddressableValue; use GoPhp\Go...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Func/Param.php
src/GoValue/Func/Param.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Func; use GoPhp\GoType\GoType; /** * @template T = string|null */ final class Param { /** * @param T $name */ public function __construct( public readonly GoType $type, public readonly ?string $name = null, public rea...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Func/Params.php
src/GoValue/Func/Params.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Func; use ArrayAccess; use GoPhp\Error\InternalError; use GoPhp\Error\RuntimeError; use function count; use function implode; /** * Formal parameters, actual parameters (arguments), * or result parameters (named return values) of a function or method. * * ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Func/Receiver.php
src/GoValue/Func/Receiver.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Func; use GoPhp\Error\RuntimeError; use GoPhp\GoType\GoType; use GoPhp\GoType\InterfaceType; use GoPhp\GoType\PointerType; use GoPhp\GoType\WrappedType; /** * Receiver of a method. * * ``` * func (r *ReceiverType) MethodName() {} * ^^^^^^^^^^^^^^^^ *...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Interface/InterfaceBuilder.php
src/GoValue/Interface/InterfaceBuilder.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Interface; use GoParser\Ast\KeyedElement; use GoPhp\CompositeValueBuilder; use GoPhp\Error\InternalError; use GoPhp\GoType\FuncType; use GoPhp\GoType\InterfaceType; final class InterfaceBuilder implements CompositeValueBuilder { /** @var array<string, FuncT...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Interface/InterfaceValue.php
src/GoValue/Interface/InterfaceValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Interface; use GoPhp\Error\InternalError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\InterfaceType; use GoPhp\GoValue\AddressableTrait; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Ref; use GoP...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/String/UntypedStringValue.php
src/GoValue/String/UntypedStringValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\String; use GoPhp\GoType\UntypedType; final class UntypedStringValue extends BaseString { public function type(): UntypedType { return UntypedType::UntypedString; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/String/BaseString.php
src/GoValue/String/BaseString.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\String; use GoPhp\Error\RuntimeError; use GoPhp\GoType\NamedType; use GoPhp\GoType\UntypedType; use GoPhp\GoValue\AddressableTrait; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\Castable; use GoPhp\GoValue\GoValue; use GoPhp\...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/String/StringValue.php
src/GoValue/String/StringValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\String; use GoPhp\GoType\NamedType; final class StringValue extends BaseString { public function type(): NamedType { return NamedType::String; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Complex/Complex64Value.php
src/GoValue/Complex/Complex64Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Complex; use GoPhp\GoType\NamedType; final class Complex64Value extends ComplexNumber { public function type(): NamedType { return NamedType::Complex64; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Complex/ComplexNumber.php
src/GoValue/Complex/ComplexNumber.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Complex; use GoPhp\Error\InternalError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\BasicType; use GoPhp\GoType\NamedType; use GoPhp\GoType\UntypedType; use GoPhp\GoValue\AddressableTrait; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BoolValue; use G...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Complex/Complex128Value.php
src/GoValue/Complex/Complex128Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Complex; use GoPhp\GoType\NamedType; final class Complex128Value extends ComplexNumber { public function type(): NamedType { return NamedType::Complex128; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Complex/UntypedComplexValue.php
src/GoValue/Complex/UntypedComplexValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Complex; use GoPhp\GoType\UntypedType; use function substr; final class UntypedComplexValue extends ComplexNumber { public static function fromString(string $digits): self { return new self(0.0, (float) substr($digits, 0, -1)); } publi...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Int64Value.php
src/GoValue/Int/Int64Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Int64Value extends IntNumber { public function type(): NamedType { return NamedType::Int64; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Uint64Value.php
src/GoValue/Int/Uint64Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Uint64Value extends IntNumber { public const int MIN = 0; public const float MAX = 18_446_744_073_709_551_615; public function type(): NamedType { return NamedType::Uint64; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/UintptrValue.php
src/GoValue/Int/UintptrValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class UintptrValue extends IntNumber { public const int MIN = 0; public const float MAX = 18_446_744_073_709_551_615; public function type(): NamedType { return NamedType::Uintptr; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Uint8Value.php
src/GoValue/Int/Uint8Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; use function mb_ord; final class Uint8Value extends IntNumber { public const int MIN = 0; public const int MAX = 255; public static function fromByte(string $byte): self { return new self(mb_ord($byte))...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Uint16Value.php
src/GoValue/Int/Uint16Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Uint16Value extends IntNumber { public const int MIN = 0; public const int MAX = 65_535; public function type(): NamedType { return NamedType::Uint16; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Int8Value.php
src/GoValue/Int/Int8Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Int8Value extends IntNumber { public const int MIN = -128; public const int MAX = +127; public function type(): NamedType { return NamedType::Int8; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/IntSystem.php
src/GoValue/Int/IntSystem.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\Error\RuntimeError; use function bindec; use function hexdec; use function octdec; use function strlen; use function substr; enum IntSystem { case Binary; case Octal; case OldOctal; case Hexadecimal; case Decimal; public...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Int32Value.php
src/GoValue/Int/Int32Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Int32Value extends IntNumber { public const int MIN = -2_147_483_648; public const int MAX = +2_147_483_647; public function type(): NamedType { return NamedType::Int32; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/UintValue.php
src/GoValue/Int/UintValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class UintValue extends IntNumber { public const int MIN = 0; public const float MAX = 18_446_744_073_709_551_615; public function type(): NamedType { return NamedType::Uint; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/IntNumber.php
src/GoValue/Int/IntNumber.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\Error\RuntimeError; use GoPhp\GoType\NamedType; use GoPhp\GoType\UntypedType; use GoPhp\GoValue\Complex\ComplexNumber; use GoPhp\GoValue\Complex\Complex128Value; use GoPhp\GoValue\Complex\Complex64Value; use GoPhp\GoValue\Float\Float32Value; use G...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/UntypedIntValue.php
src/GoValue/Int/UntypedIntValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\UntypedType; use function mb_ord; final class UntypedIntValue extends IntNumber { public function __construct( int $value, private readonly UntypedType $type = UntypedType::UntypedInt, ) { parent::__constru...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Int16Value.php
src/GoValue/Int/Int16Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Int16Value extends IntNumber { public const int MIN = -32_768; public const int MAX = +32_767; public function type(): NamedType { return NamedType::Int16; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/Uint32Value.php
src/GoValue/Int/Uint32Value.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class Uint32Value extends IntNumber { public const int MIN = 0; public const int MAX = 4_294_967_295; public function type(): NamedType { return NamedType::Uint32; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Int/IntValue.php
src/GoValue/Int/IntValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Int; use GoPhp\GoType\NamedType; final class IntValue extends IntNumber { public function type(): NamedType { return NamedType::Int; } }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Array/ArrayBuilder.php
src/GoValue/Array/ArrayBuilder.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Array; use GoParser\Ast\KeyedElement; use GoPhp\CompositeValueBuilder; use GoPhp\GoType\ArrayType; use GoPhp\GoValue\AddressableValue; use function GoPhp\assert_types_compatible_with_cast; final class ArrayBuilder implements CompositeValueBuilder { /** @va...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Array/ArrayValue.php
src/GoValue/Array/ArrayValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Array; use GoPhp\Error\RuntimeError; use GoPhp\GoType\ArrayType; use GoPhp\GoType\SliceType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\PointerValue; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Array/UnderlyingArray.php
src/GoValue/Array/UnderlyingArray.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Array; use ArrayAccess; use Countable; use Iterator; use GoPhp\GoValue\AddressableValue; use function array_slice; use function count; use function current; use function key; use function next; use function reset; /** * @template V of AddressableValue * * @...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Map/KeyValueTupleMap.php
src/GoValue/Map/KeyValueTupleMap.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Map; use GoPhp\Error\InternalError; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Hashable; /** * @psalm-type Key = Hashable&GoValue * * @template K of Key * @template V of GoValue * * @template-implements Map<K, V> * ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Map/MapLookupValue.php
src/GoValue/Map/MapLookupValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Map; use Closure; use GoPhp\Error\RuntimeError; use GoPhp\GoType\GoType; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\GoValue; use GoPhp\Operator; /** * @psalm-type Mutator = Closure(): void * @template V of GoValue * @template-implements GoValue<V> */ fi...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Map/MapValue.php
src/GoValue/Map/MapValue.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Map; use GoPhp\Error\InternalError; use GoPhp\Error\PanicError; use GoPhp\Error\RuntimeError; use GoPhp\GoType\MapType; use GoPhp\GoValue\AddressableTrait; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\BoolValue; use GoPhp\GoV...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Map/MapBuilder.php
src/GoValue/Map/MapBuilder.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Map; use GoParser\Ast\Expr\Expr; use GoParser\Ast\KeyedElement; use GoPhp\CompositeValueBuilder; use GoPhp\GoType\MapType; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Hashable; use function GoPhp\assert_index_type; use function GoPhp\assert_types_compatible_wi...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoValue/Map/Map.php
src/GoValue/Map/Map.php
<?php declare(strict_types=1); namespace GoPhp\GoValue\Map; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\Sequence; /** * @template K of GoValue&Hashable * @template V of GoValue * * @template-extends Sequence<K, V> */ interface Map extends Sequence { /** * @param K $at ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/ErrorHandler/Collector.php
src/ErrorHandler/Collector.php
<?php declare(strict_types=1); namespace GoPhp\ErrorHandler; use GoPhp\Error\GoError; /** * Error handler that collects errors into an array. */ final class Collector implements ErrorHandler { /** @var list<GoError> */ private array $errors = []; public function onError(GoError $error): void { ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/ErrorHandler/ErrorHandler.php
src/ErrorHandler/ErrorHandler.php
<?php declare(strict_types=1); namespace GoPhp\ErrorHandler; use GoPhp\Error\GoError; interface ErrorHandler { public function onError(GoError $error): void; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/ErrorHandler/Noop.php
src/ErrorHandler/Noop.php
<?php declare(strict_types=1); namespace GoPhp\ErrorHandler; use GoPhp\Error\GoError; /** * Error handler that does nothing. */ final class Noop implements ErrorHandler { public function onError(GoError $error): void {} }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/ErrorHandler/StreamWriter.php
src/ErrorHandler/StreamWriter.php
<?php declare(strict_types=1); namespace GoPhp\ErrorHandler; use GoPhp\Error\GoError; use GoPhp\Stream\OutputStream; /** * Error handler that writes error messages to a stream. */ final class StreamWriter implements ErrorHandler { public function __construct( private readonly OutputStream $stream, ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinProvider.php
src/Builtin/BuiltinProvider.php
<?php declare(strict_types=1); namespace GoPhp\Builtin; use GoPhp\Env\Environment; use GoPhp\PanicPointer; interface BuiltinProvider { /** * Returns pointer to the ordinal number iota value. */ public function iota(): Iota; /** * Returns pointer to the panic value. */ public fun...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/Iota.php
src/Builtin/Iota.php
<?php declare(strict_types=1); namespace GoPhp\Builtin; interface Iota { public function set(int $value): void; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/StdIota.php
src/Builtin/StdIota.php
<?php declare(strict_types=1); namespace GoPhp\Builtin; use GoPhp\GoType\GoType; use GoPhp\GoType\UntypedType; use GoPhp\GoValue\Int\IntNumber; class StdIota extends IntNumber implements Iota { public function type(): GoType { return UntypedType::UntypedInt; } public function set(int $value...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/StdBuiltinProvider.php
src/Builtin/StdBuiltinProvider.php
<?php declare(strict_types=1); namespace GoPhp\Builtin; use GoPhp\Builtin\BuiltinFunc\Append; use GoPhp\Builtin\BuiltinFunc\Cap; use GoPhp\Builtin\BuiltinFunc\Complex; use GoPhp\Builtin\BuiltinFunc\Copy; use GoPhp\Builtin\BuiltinFunc\Delete; use GoPhp\Builtin\BuiltinFunc\Imag; use GoPhp\Builtin\BuiltinFunc\Len; use ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Append.php
src/Builtin/BuiltinFunc/Append.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\Builtin\BuiltinFunc\Marker\PermitsStringUnpacking; use GoPhp\GoValue\Slice\SliceValue; use function array_slice; use function GoPhp\assert_arg_type; use function GoPhp\assert_arg_value; use function GoPhp\assert_argc; /**...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Panic.php
src/Builtin/BuiltinFunc/Panic.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\Error\PanicError; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#panic */ class Panic implements BuiltinFunc { public function __construct( private readonly string $name, ) {} ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Len.php
src/Builtin/BuiltinFunc/Len.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\Error\RuntimeError; use GoPhp\GoType\ArrayType; use GoPhp\GoValue\Int\IntValue; use GoPhp\GoValue\PointerValue; use GoPhp\GoValue\Sequence; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#len */ cl...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Real.php
src/Builtin/BuiltinFunc/Real.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoValue\Complex\ComplexNumber; use GoPhp\GoValue\Float\FloatNumber; use function GoPhp\assert_arg_value; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#real */ class Real implements BuiltinFunc { ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Complex.php
src/Builtin/BuiltinFunc/Complex.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoValue\Complex\Complex128Value; use GoPhp\GoValue\Complex\Complex64Value; use GoPhp\GoValue\Complex\ComplexNumber; use GoPhp\GoValue\Complex\UntypedComplexValue; use GoPhp\GoValue\Float\Float32Value; use GoPhp\GoValue\Floa...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/New_.php
src/Builtin/BuiltinFunc/New_.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\Builtin\BuiltinFunc\Marker\ExpectsTypeAsFirstArg; use GoPhp\GoValue\PointerValue; use GoPhp\GoValue\TypeValue; use function GoPhp\assert_arg_value; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#ne...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Print_.php
src/Builtin/BuiltinFunc/Print_.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoValue\VoidValue; use GoPhp\Stream\OutputStream; use function implode; /** * @see https://pkg.go.dev/builtin#print */ class Print_ implements BuiltinFunc { public function __construct( private readonly stri...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Imag.php
src/Builtin/BuiltinFunc/Imag.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoValue\Complex\ComplexNumber; use GoPhp\GoValue\Float\FloatNumber; use function GoPhp\assert_arg_value; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#imag */ class Imag implements BuiltinFunc { ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Recover.php
src/Builtin/BuiltinFunc/Recover.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoType\InterfaceType; use GoPhp\GoValue\Interface\InterfaceValue; use GoPhp\PanicPointer; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#recover */ class Recover implements BuiltinFunc { publi...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Make.php
src/Builtin/BuiltinFunc/Make.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\Builtin\BuiltinFunc\Marker\ExpectsTypeAsFirstArg; use GoPhp\Error\RuntimeError; use GoPhp\GoType\MapType; use GoPhp\GoType\SliceType; use GoPhp\GoValue\Int\IntNumber; use GoPhp\GoValue\Map\MapBuilder; use GoPhp\GoValue\Map\...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/BuiltinFunc.php
src/Builtin/BuiltinFunc/BuiltinFunc.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\GoValue\ConstInvokable; interface BuiltinFunc extends ConstInvokable { public function name(): string; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Copy.php
src/Builtin/BuiltinFunc/Copy.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoType\BasicType; use GoPhp\GoType\NamedType; use GoPhp\GoType\SliceType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Int\IntNumber; use GoPhp\GoValue\Int\IntValue; use GoPhp\GoValue\Sequence; use GoPhp\GoValue\Sl...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Delete.php
src/Builtin/BuiltinFunc/Delete.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\Map\MapValue; use GoPhp\GoValue\VoidValue; use function GoPhp\assert_arg_value; use function GoPhp\assert_argc; /** * @see https://pkg.go.dev/builtin#delete */ class Delete implements...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Println.php
src/Builtin/BuiltinFunc/Println.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\GoValue\VoidValue; use GoPhp\Stream\OutputStream; use function implode; /** * @see https://pkg.go.dev/builtin#println */ class Println implements BuiltinFunc { public function __construct( private readonly s...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Cap.php
src/Builtin/BuiltinFunc/Cap.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc; use GoPhp\Argv; use GoPhp\Error\RuntimeError; use GoPhp\GoType\ArrayType; use GoPhp\GoValue\Array\ArrayValue; use GoPhp\GoValue\Int\IntValue; use GoPhp\GoValue\PointerValue; use GoPhp\GoValue\Slice\SliceValue; use function GoPhp\assert_argc; /** ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Marker/PermitsStringUnpacking.php
src/Builtin/BuiltinFunc/Marker/PermitsStringUnpacking.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc\Marker; interface PermitsStringUnpacking {}
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Builtin/BuiltinFunc/Marker/ExpectsTypeAsFirstArg.php
src/Builtin/BuiltinFunc/Marker/ExpectsTypeAsFirstArg.php
<?php declare(strict_types=1); namespace GoPhp\Builtin\BuiltinFunc\Marker; interface ExpectsTypeAsFirstArg {}
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/SliceType.php
src/GoType/SliceType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Slice\SliceValue; use function sprintf; /** * @see https://golang.org/ref/spec#Slice_types */ final class SliceType implements RefType { public readonly st...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/InterfaceType.php
src/GoType/InterfaceType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\Env\Environment; use GoPhp\Error\InterfaceTypeError; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\Interface\InterfaceValue; use GoPhp\GoValue\WrappedValue; use function implode; use function sprintf; /** * @psalm...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/NamedType.php
src/GoType/NamedType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoType\Converter\NumberConverter; use GoPhp\GoType\Converter\StringConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BoolValue; use GoPhp\GoValue\Complex\Complex128Value; use GoPhp\GoValue\Com...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/GoType.php
src/GoType/GoType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoValue\AddressableValue; /** * Interface for all Go types. * * @see https://golang.org/ref/spec#Types */ interface GoType { /** * Returns the name of the type. */ public function name(): string; /** * Checks whether th...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/WrappedType.php
src/GoType/WrappedType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\Error\InterfaceTypeError; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\Unwindable; use GoPhp\GoValue\WrappedValue; use function GoPhp\construct_qualified_name; /** * User-defined type t...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/UntypedType.php
src/GoType/UntypedType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\Error\InternalError; use GoPhp\GoValue\AddressableValue; use function GoPhp\try_unwind; /** * Primitive type that is not yet assigned to any variable */ enum UntypedType implements BasicType { case UntypedInt; // bare int literals ca...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/RefType.php
src/GoType/RefType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; /** * Reference type is a type whose zero value is `nil` */ interface RefType extends GoType {}
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/ArrayType.php
src/GoType/ArrayType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\Error\RuntimeError; use GoPhp\Error\InternalError; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Array\ArrayValue; use function sprintf; /** * @see https://golang.org/ref/spec#Array_types */ fina...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/FuncType.php
src/GoType/FuncType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Func\FuncValue; use GoPhp\GoValue\Func\Params; use function sprintf; /** * @see https://golang.org/ref/spec#Function_types */ final class FuncType implements R...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/PointerType.php
src/GoType/PointerType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\PointerValue; use function sprintf; /** * @see https://golang.org/ref/spec#Pointer_types * * @template T of GoType */ final class PointerType implements RefT...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/UntypedNilType.php
src/GoType/UntypedNilType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\Error\InternalError; use GoPhp\GoValue\AddressableValue; /** * Pseudo type for untyped nil, in other words, `nil` literal, which was not assigned to any variable */ final class UntypedNilType implements RefType { public const string NAME = 'nil'...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/MapType.php
src/GoType/MapType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Map\MapValue; use function sprintf; /** * @see https://golang.org/ref/spec#Map_types */ final class MapType implements RefType { public readonly string $na...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/StructType.php
src/GoType/StructType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\GoType\Converter\DefaultConverter; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\Struct\StructBuilder; use GoPhp\GoValue\Struct\StructValue; use function count; use function implode; use function sprintf; use function GoPhp\try_unwind; /** *...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/BuiltinFuncType.php
src/GoType/BuiltinFuncType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; use GoPhp\Error\InternalError; use GoPhp\GoValue\AddressableValue; /** * Pseudo type for builtin functions * * @see https://go.dev/ref/spec#Built-in_functions */ final class BuiltinFuncType implements GoType { public function __construct( privat...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/BasicType.php
src/GoType/BasicType.php
<?php declare(strict_types=1); namespace GoPhp\GoType; /** * Primitive types */ interface BasicType extends GoType { public function isFloat(): bool; public function isInt(): bool; public function isString(): bool; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/Converter/DefaultConverter.php
src/GoType/Converter/DefaultConverter.php
<?php declare(strict_types=1); namespace GoPhp\GoType\Converter; use GoPhp\Error\RuntimeError; use GoPhp\GoType\GoType; use GoPhp\GoValue\AddressableValue; use function GoPhp\try_unwind; final class DefaultConverter { public static function convert(AddressableValue $value, GoType $type): AddressableValue {...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/Converter/StringConverter.php
src/GoType/Converter/StringConverter.php
<?php declare(strict_types=1); namespace GoPhp\GoType\Converter; use GoPhp\Error\RuntimeError; use GoPhp\GoType\NamedType; use GoPhp\GoValue\GoValue; use GoPhp\GoValue\Int\IntNumber; use GoPhp\GoValue\Slice\SliceValue; use GoPhp\GoValue\String\BaseString; use GoPhp\GoValue\String\UntypedStringValue; use function ar...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/GoType/Converter/NumberConverter.php
src/GoType/Converter/NumberConverter.php
<?php declare(strict_types=1); namespace GoPhp\GoType\Converter; use GoPhp\GoType\NamedType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\SimpleNumber; final class NumberConverter { public static function convert(AddressableValue $value, NamedType $type): AddressableValue { return $value in...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/ResourceOutputStream.php
src/Stream/ResourceOutputStream.php
<?php declare(strict_types=1); namespace GoPhp\Stream; use function fwrite; class ResourceOutputStream implements OutputStream { /** * @param resource $stream */ public function __construct( private readonly mixed $stream, ) {} public function write(string $str): void { ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/OutputStream.php
src/Stream/OutputStream.php
<?php declare(strict_types=1); namespace GoPhp\Stream; interface OutputStream { public function write(string $str): void; public function writeln(string $str): void; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/StdStreamProvider.php
src/Stream/StdStreamProvider.php
<?php declare(strict_types=1); namespace GoPhp\Stream; use const STDERR; use const STDIN; use const STDOUT; final class StdStreamProvider implements StreamProvider { public function __construct( private readonly OutputStream $stdout = new ResourceOutputStream(STDOUT), private readonly OutputStre...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/StreamProvider.php
src/Stream/StreamProvider.php
<?php declare(strict_types=1); namespace GoPhp\Stream; interface StreamProvider { public function stdout(): OutputStream; public function stderr(): OutputStream; public function stdin(): InputStream; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/StringStreamProvider.php
src/Stream/StringStreamProvider.php
<?php declare(strict_types=1); namespace GoPhp\Stream; final class StringStreamProvider implements StreamProvider { private readonly OutputStream $stdout; private readonly OutputStream $stderr; private readonly InputStream $stdin; public function __construct( string &$outBuffer, stri...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/StringInputStream.php
src/Stream/StringInputStream.php
<?php declare(strict_types=1); namespace GoPhp\Stream; use GoPhp\Error\InternalError; use function fclose; use function fopen; use function fwrite; use function rewind; class StringInputStream implements InputStream { /** @var resource */ private mixed $handle; private readonly ResourceInputStream $res...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/StringOutputStream.php
src/Stream/StringOutputStream.php
<?php declare(strict_types=1); namespace GoPhp\Stream; class StringOutputStream implements OutputStream { public function __construct( private string &$buffer, ) {} public function write(string $str): void { $this->buffer .= $str; } public function writeln(string $str): void...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/ResourceInputStream.php
src/Stream/ResourceInputStream.php
<?php declare(strict_types=1); namespace GoPhp\Stream; use function fgetc; use function fgets; class ResourceInputStream implements InputStream { /** * @param resource $stream */ public function __construct( private readonly mixed $stream, ) {} public function getChar(): ?string ...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Stream/InputStream.php
src/Stream/InputStream.php
<?php declare(strict_types=1); namespace GoPhp\Stream; interface InputStream { public function getChar(): ?string; public function getLine(): ?string; }
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/Environment.php
src/Env/Environment.php
<?php declare(strict_types=1); namespace GoPhp\Env; use GoPhp\Error\RuntimeError; use GoPhp\GoType\GoType; use GoPhp\GoValue\AddressableValue; use GoPhp\GoValue\BlankValue; use GoPhp\GoValue\BuiltinFuncValue; use GoPhp\GoValue\Func\FuncValue; use GoPhp\GoValue\Hashable; use GoPhp\GoValue\Sealable; use GoPhp\GoValue\...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false
tuqqu/go-php
https://github.com/tuqqu/go-php/blob/5e82555ba66a555576dd1dbb587b19f8bbd9e797/src/Env/EnvMap.php
src/Env/EnvMap.php
<?php declare(strict_types=1); namespace GoPhp\Env; use GoPhp\Error\RuntimeError; final class EnvMap { public const string NAMESPACE_TOP = ''; /** @var array<string, array<string, EnvValue>> */ private array $values = []; public function tryGet(string $name, string $namespace = self::NAMESPACE_TOP...
php
MIT
5e82555ba66a555576dd1dbb587b19f8bbd9e797
2026-01-05T03:09:05.335673Z
false