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
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Support/Extensions/NumberTestExtension.php
tests/Support/Extensions/NumberTestExtension.php
<?php namespace Xefi\Faker\Tests\Support\Extensions; use Xefi\Faker\Extensions\Extension; class NumberTestExtension extends Extension { public function returnOne() { return 1; } public function returnNumberBetween($min, $max) { return rand($min, $max); } }
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Support/Extensions/EnUsExtensionTest.php
tests/Support/Extensions/EnUsExtensionTest.php
<?php namespace Xefi\Faker\Tests\Support\Extensions; use Xefi\Faker\Extensions\Extension; use Xefi\Faker\Extensions\Traits\HasLocale; class EnUsExtensionTest extends Extension { use HasLocale; public function getName(): string { return 'locale-extension-test'; } public function getLocal...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Support/Extensions/FrFrExtensionTest.php
tests/Support/Extensions/FrFrExtensionTest.php
<?php namespace Xefi\Faker\Tests\Support\Extensions; use Xefi\Faker\Extensions\Extension; use Xefi\Faker\Extensions\Traits\HasLocale; class FrFrExtensionTest extends Extension { use HasLocale; public function getName(): string { return 'locale-extension-test'; } public function getLocal...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Support/Extensions/NullLocaleExtensionTest.php
tests/Support/Extensions/NullLocaleExtensionTest.php
<?php namespace Xefi\Faker\Tests\Support\Extensions; use Xefi\Faker\Extensions\Extension; use Xefi\Faker\Extensions\Traits\HasLocale; class NullLocaleExtensionTest extends Extension { use HasLocale; public function getName(): string { return 'locale-extension-test'; } public function re...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/ContainerMixinManifestTest.php
tests/Unit/ContainerMixinManifestTest.php
<?php declare(strict_types=1); namespace Xefi\Faker\Tests\Unit; final class ContainerMixinManifestTest extends TestCase { protected function setUp(): void { parent::setUp(); $container = new \Xefi\Faker\Container\Container(); $container->forgetExtensions(); $container->resolv...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/LocaleTest.php
tests/Unit/LocaleTest.php
<?php class LocaleTest extends \Xefi\Faker\Tests\Unit\TestCase { protected function setUp(): void { parent::setUp(); (new \Xefi\Faker\Container\Container())->resolveExtensions([ \Xefi\Faker\Tests\Support\Extensions\NullLocaleExtensionTest::class, \Xefi\Faker\Tests\Suppo...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/ExtensionTest.php
tests/Unit/ExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit; use Random\Randomizer; use ReflectionClass; use Xefi\Faker\Container\Container; use Xefi\Faker\Extensions\Extension; class ExtensionTest extends TestCase { public function testExtensionReturnHello(): void { $container = new Container(); $this->assertEqu...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/TestCase.php
tests/Unit/TestCase.php
<?php namespace Xefi\Faker\Tests\Unit; use Xefi\Faker\Container\Container; class TestCase extends \PHPUnit\Framework\TestCase { protected function setUp(): void { Container::basePath(__DIR__.'/../Support'); Container::packageManifestPath('/tmp/packages.php'); Container::containerMixin...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/ProviderRepositoryTest.php
tests/Unit/ProviderRepositoryTest.php
<?php declare(strict_types=1); use Xefi\Faker\Tests\Unit\TestCase; final class ProviderRepositoryTest extends TestCase { public function testCreateProvider() { $repo = new \Xefi\Faker\Providers\ProviderRepository(); $this->assertEquals( $repo->createProvider(\Xefi\Faker\Tests\Sup...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/ContainerTest.php
tests/Unit/ContainerTest.php
<?php declare(strict_types=1); namespace Xefi\Faker\Tests\Unit; use Random\Randomizer; use Xefi\Faker\Container\Container; use Xefi\Faker\Tests\Support\Extensions\NumberTestExtension; use Xefi\Faker\Tests\Support\Extensions\StringTestExtension; final class ContainerTest extends TestCase { public function testMa...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/PackageManifestTest.php
tests/Unit/PackageManifestTest.php
<?php declare(strict_types=1); use Xefi\Faker\Manifests\PackageManifest; use Xefi\Faker\Tests\Unit\TestCase; final class PackageManifestTest extends TestCase { public function testAssetLoading() { @unlink('/tmp/packages.php'); $manifest = new PackageManifest(__DIR__.'/../Support', '/tmp/packa...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Strategies/ValidStrategyTest.php
tests/Unit/Strategies/ValidStrategyTest.php
<?php namespace Strategies; use Xefi\Faker\Faker; use Xefi\Faker\Strategies\ValidStrategy; use Xefi\Faker\Tests\Unit\TestCase; class ValidStrategyTest extends TestCase { /** * @throws \ErrorException */ public function testValidStrategyRegistered(): void { $faker = new Faker(); ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Strategies/RegexStrategyTest.php
tests/Unit/Strategies/RegexStrategyTest.php
<?php namespace Xefi\Faker\Tests\Unit\Strategies; use PHPUnit\Framework\Attributes\DataProvider; use Xefi\Faker\Exceptions\MaximumTriesReached; use Xefi\Faker\Faker; use Xefi\Faker\Strategies\RegexStrategy; use Xefi\Faker\Tests\Unit\TestCase; class RegexStrategyTest extends TestCase { public function testRegexSt...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Strategies/UniqueStrategyTest.php
tests/Unit/Strategies/UniqueStrategyTest.php
<?php namespace Xefi\Faker\Tests\Unit\Strategies; use Xefi\Faker\Exceptions\MaximumTriesReached; use Xefi\Faker\Faker; use Xefi\Faker\Strategies\UniqueStrategy; use Xefi\Faker\Tests\Unit\TestCase; class UniqueStrategyTest extends TestCase { public function testUniqueStrategyRegistered(): void { $fake...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Modifiers/LowercaseModifierTest.php
tests/Unit/Modifiers/LowercaseModifierTest.php
<?php namespace Xefi\Faker\Tests\Unit\Modifiers; use Xefi\Faker\Faker; use Xefi\Faker\Modifiers\LowercaseModifier; use Xefi\Faker\Tests\Unit\TestCase; class LowercaseModifierTest extends TestCase { public function testLowercaseModifierRegistered(): void { $faker = new Faker(); $container = $...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Modifiers/UppercaseModifierTest.php
tests/Unit/Modifiers/UppercaseModifierTest.php
<?php namespace Xefi\Faker\Tests\Unit\Modifiers; use Xefi\Faker\Faker; use Xefi\Faker\Modifiers\UppercaseModifier; use Xefi\Faker\Tests\Unit\TestCase; class UppercaseModifierTest extends TestCase { public function testUppercaseModifierRegistered(): void { $faker = new Faker(); $container = $...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Modifiers/OptionalModifierTest.php
tests/Unit/Modifiers/OptionalModifierTest.php
<?php namespace Xefi\Faker\Tests\Unit\Modifiers; use Random\Randomizer; use Xefi\Faker\Faker; use Xefi\Faker\Modifiers\NullableModifier; use Xefi\Faker\Tests\Unit\TestCase; class OptionalModifierTest extends TestCase { public function testOptionalModifierRegistered(): void { $faker = new Faker(); ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Calculators/IbanTest.php
tests/Unit/Calculators/IbanTest.php
<?php namespace Xefi\Faker\Tests\Unit\Calculators; use PHPUnit\Framework\Attributes\DataProvider; use Xefi\Faker\Calculators\Iban; use Xefi\Faker\Tests\Unit\TestCase; final class IbanTest extends TestCase { public static function checksumProvider() { return [ ['AL4721211009000000023569874...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Calculators/LuhnTest.php
tests/Unit/Calculators/LuhnTest.php
<?php namespace Xefi\Faker\Tests\Unit\Calculators; use PHPUnit\Framework\Attributes\DataProvider; use Xefi\Faker\Calculators\Luhn; use Xefi\Faker\Tests\Unit\TestCase; final class LuhnTest extends TestCase { public static function validatorProvider(): array { return [ ['79927398710', false...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/PersonExtensionTest.php
tests/Unit/Extensions/PersonExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use ReflectionClass; use Xefi\Faker\Extensions\PersonExtension; final class PersonExtensionTest extends TestCase { protected array $firstNameMale = []; protected array $firstNameFemale = []; protected array $lastName = []; protected array $titleMale =...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/TextExtensionTest.php
tests/Unit/Extensions/TextExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use PHPUnit\Framework\Attributes\DataProvider; use ReflectionClass; final class TextExtensionTest extends TestCase { protected array $paragraphs = []; protected function setUp(): void { parent::setUp(); $testExtension = new \Xefi\Faker\E...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/BooleanExtensionTest.php
tests/Unit/Extensions/BooleanExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use Xefi\Faker\Exceptions\BadParameterException; final class BooleanExtensionTest extends TestCase { public function testBoolean(): void { $results = []; for ($i = 0; $i < 2; $i++) { $results[] = $this->faker->unique()->boolean(); ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/HashExtensionTest.php
tests/Unit/Extensions/HashExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; final class HashExtensionTest extends TestCase { public function testSha1(): void { $result = $this->faker->sha1(); $this->assertMatchesRegularExpression('/^[a-z0-9]{40}$/', $result); } public function testSha256(): void { ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/PhoneExtensionTest.php
tests/Unit/Extensions/PhoneExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; final class PhoneExtensionTest extends TestCase { public function testPhoneNumberReturnsString(): void { $number = $this->faker->phoneNumber(); $this->assertIsString($number); $this->assertNotEmpty($number); } public function ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/TestCase.php
tests/Unit/Extensions/TestCase.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use Xefi\Faker\Container\Container; use Xefi\Faker\FakerServiceProvider; class TestCase extends \Xefi\Faker\Tests\Unit\TestCase { protected Container $faker; protected function setUp(): void { parent::setUp(); (new FakerServiceProvider()...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/FinancialExtensionTest.php
tests/Unit/Extensions/FinancialExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use Xefi\Faker\Calculators\Iban; final class FinancialExtensionTest extends TestCase { public function testIban() { $iban = $this->faker->iban(); $this->assertEquals(28, strlen($iban)); $this->assertMatchesRegularExpression('/^[A-Z]{2...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/ArraysExtensionTest.php
tests/Unit/Extensions/ArraysExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; final class ArraysExtensionTest extends TestCase { protected array $testArray = []; protected function setUp(): void { parent::setUp(); $this->testArray = ['a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5]; } public function test...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/ColorsExtensionTest.php
tests/Unit/Extensions/ColorsExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use Random\Randomizer; use Xefi\Faker\Extensions\ColorsExtension; final class ColorsExtensionTest extends TestCase { protected array $safeColorNames = []; protected array $colorNames = []; protected function setUp(): void { parent::setUp(); ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/GeographicalExtensionTest.php
tests/Unit/Extensions/GeographicalExtensionTest.php
<?php namespace Extensions; use Xefi\Faker\Tests\Unit\Extensions\TestCase; final class GeographicalExtensionTest extends TestCase { public function testLatitude(): void { for ($i = 0; $i < 100; $i++) { $this->assertMatchesRegularExpression('/^-?(?:[0-8]?\d(?:\.\d{1,8})?|90(?:\.0+)?$)/', $...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/InternetExtensionTest.php
tests/Unit/Extensions/InternetExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use ReflectionClass; use Xefi\Faker\Container\Container; final class InternetExtensionTest extends TestCase { protected array $tld = []; protected function setUp(): void { parent::setUp(); $internetExtension = new \Xefi\Faker\Extensions\...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/StringsExtensionTest.php
tests/Unit/Extensions/StringsExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; final class StringsExtensionTest extends TestCase { public function testLetter(): void { $results = []; for ($i = 0; $i < 26; $i++) { $results[] = $this->faker->unique()->letter(); } $this->assertEqualsCanonicalizin...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/NumbersExtensionTest.php
tests/Unit/Extensions/NumbersExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use PHPUnit\Framework\Attributes\DataProvider; final class NumbersExtensionTest extends TestCase { public function testDigit(): void { $results = []; for ($i = 0; $i < 10; $i++) { $results[] = $this->faker->unique()->digit(); ...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
xefi/faker-php
https://github.com/xefi/faker-php/blob/6e542ce699a98a1c4dcaea19f98119ed1941641c/tests/Unit/Extensions/DatetimeExtensionTest.php
tests/Unit/Extensions/DatetimeExtensionTest.php
<?php namespace Xefi\Faker\Tests\Unit\Extensions; use DateTime; final class DatetimeExtensionTest extends TestCase { public function testTimestampUsingInt(): void { $results = []; for ($i = 0; $i < 50; $i++) { $results[] = $this->faker->timestamp(0, 5000); } fore...
php
Apache-2.0
6e542ce699a98a1c4dcaea19f98119ed1941641c
2026-01-05T04:04:59.157697Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/publish/apidog.php
publish/apidog.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ return [ // enable false 将不会生成 swagger 文件 'enable' => env('APP_ENV') !== '...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/ConfigProvider.php
src/ConfigProvider.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog; class ConfigProvider { public function __invoke(): a...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/function.php
src/function.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ if (! function_exists('array_map_recursive')) { function array_map_recursive(c...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/DispatcherFactory.php
src/DispatcherFactory.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog; use Hyperf\Apidog\Annotation\ApiController; use Hyperf\A...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/ApiAnnotation.php
src/ApiAnnotation.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog; use Doctrine\Common\Annotations\AnnotationReader; use Hy...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/BootAppConfListener.php
src/BootAppConfListener.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog; use Hyperf\Apidog\Swagger\SwaggerJson; use Hyperf\Contra...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/UICommand.php
src/UICommand.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog; use Hyperf\Command\Annotation\Command; use Hyperf\Comman...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/ApiVersion.php
src/Annotation/ApiVersion.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\Di\Annotation\AbstractAnnotation; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/DeleteApi.php
src/Annotation/DeleteApi.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\HttpServer\Annotation\Mapping; /*...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/PostApi.php
src/Annotation/PostApi.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\HttpServer\Annotation\Mapping; /*...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/PutApi.php
src/Annotation/PutApi.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\HttpServer\Annotation\Mapping; /*...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/ApiDefinitions.php
src/Annotation/ApiDefinitions.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\Di\Annotation\AbstractAnnotation; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/Path.php
src/Annotation/Path.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; /** * @Annotation * @Target({"METHOD"}) */...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/ApiResponse.php
src/Annotation/ApiResponse.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\Di\Annotation\AbstractAnnotation; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/ApiDefinition.php
src/Annotation/ApiDefinition.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\Di\Annotation\AbstractAnnotation; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/Body.php
src/Annotation/Body.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; /** * @Annotation * @Target({"METHOD"}) */...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/Param.php
src/Annotation/Param.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\Di\Annotation\AbstractAnnotation; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/Query.php
src/Annotation/Query.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; /** * @Annotation * @Target({"METHOD", "CLA...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/GetApi.php
src/Annotation/GetApi.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\HttpServer\Annotation\Mapping; /*...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/FormData.php
src/Annotation/FormData.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; /** * @Annotation * @Target({"METHOD"}) */...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/Header.php
src/Annotation/Header.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; /** * @Annotation * @Target({"METHOD", "CLA...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/ApiServer.php
src/Annotation/ApiServer.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\Di\Annotation\AbstractAnnotation; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Annotation/ApiController.php
src/Annotation/ApiController.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Annotation; use Hyperf\HttpServer\Annotation\Controller; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Swagger/SwaggerJson.php
src/Swagger/SwaggerJson.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Swagger; use Doctrine\Common\Annotations\AnnotationReader...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Validation/ValidationCustomRule.php
src/Validation/ValidationCustomRule.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Validation; class ValidationCustomRule { /** * @...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Validation/ValidationApi.php
src/Validation/ValidationApi.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Validation; use Hyperf\Apidog\Annotation\Body; use Hyperf...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Validation/Validation.php
src/Validation/Validation.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Validation; use Hyperf\Utils\ApplicationContext; use Hype...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Exception/ApiDogException.php
src/Exception/ApiDogException.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Exception; use Hyperf\Server\Exception\ServerException; ...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/src/Middleware/ApiValidationMiddleware.php
src/Middleware/ApiValidationMiddleware.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace Hyperf\Apidog\Middleware; use FastRoute\Dispatcher; use Hyperf\Apidog\E...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/tests/bootstrap.php
tests/bootstrap.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ require_once dirname(dirname(__FILE__)) . '/vendor/autoload.php';
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
daodao97/apidog
https://github.com/daodao97/apidog/blob/1891064618e5903b73af21441b69555f4097b488/tests/FunctionTest.php
tests/FunctionTest.php
<?php declare(strict_types=1); /** * This file is part of Hyperf. * * @link https://www.hyperf.io * @document https://hyperf.wiki * @contact group@hyperf.io * @license https://github.com/hyperf/hyperf/blob/master/LICENSE */ namespace HyperfTest\Apidog; use Mockery; use PHPUnit\Framework\TestCase; /** *...
php
MIT
1891064618e5903b73af21441b69555f4097b488
2026-01-05T04:05:10.681219Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Stream.php
src/Stream.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\ResourcePolicy; /** * Provides fluent interface for working with iterables. * * @implements \IteratorAggregate<mixed> */ class Stream implements \IteratorAggregate { /** * @var iterable<mixed> iterable source */ protected i...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
true
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Random.php
src/Random.php
<?php declare(strict_types=1); namespace IterTools; class Random { /** * Generate random selections from an array of values * * @param mixed[] $items * @param int $repetitions * * @return \Generator<mixed> */ public static function choice(array $items, int $repetitions)...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Set.php
src/Set.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\Iterators\JustifyMultipleIterator; use IterTools\Util\NoValueMonad; use IterTools\Util\UniqueExtractor; use IterTools\Util\UsageMap; class Set { /** * Iterate only the distinct elements. * * Strict-type comparisons: * - ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Reduce.php
src/Reduce.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\NoValueMonad; class Reduce { /** * Reduces given collection like array_reduce() function. * * But unlike array_reduce(), it works with all iterable types. * * @template T * @param iterable<mixed> $data * @p...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Infinite.php
src/Infinite.php
<?php declare(strict_types=1); namespace IterTools; class Infinite { /** * Count sequentially forever * * @param int $start Starting point * @param int $step How much to increment the count at each step * * @return \Generator<int> */ public static function count(int $start...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Sort.php
src/Sort.php
<?php declare(strict_types=1); namespace IterTools; class Sort { /** * Sorts the given iterable, maintaining index key associations. * * If comparator is null, the elements of given iterable must be comparable. * * @param iterable<mixed> $data * @param callable(mixed, mixed):int|nul...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Single.php
src/Single.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\UniqueExtractor; class Single { /** * Iterate the individual characters of a string * * @param string $string * * @return \Generator<string> */ public static function string(string $string): \Generator {...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/File.php
src/File.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\ResourcePolicy; class File { /** * Iterate the lines of a file, read in from a file handle stream resource. * * @param resource $fileResource File handle stream opened for reading * * @return \Generator<string> ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Transform.php
src/Transform.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\Iterators\TeeIterator; class Transform { /** * Converts iterable source to array without saving keys. * * @template T * * @param iterable<T> $iterable * * @return array<T> */ public static function...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Summary.php
src/Summary.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\UniqueExtractor; use IterTools\Util\UsageMap; /** * Tools to get summarized answers about iterables. */ class Summary { /** * Returns true if all elements match the predicate function. * * Empty iterables return true. *...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Multi.php
src/Multi.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\Iterators\JustifyMultipleIterator; use IterTools\Util\Iterators\StrictMultipleIterator; use IterTools\Util\NoValueMonad; class Multi { /** * Iterate multiple iterable collections simultaneously. * * Make an iterator that aggre...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Math.php
src/Math.php
<?php declare(strict_types=1); namespace IterTools; use IterTools\Util\UniqueExtractor; class Math { /** * Returns a frequency distribution of iterable elements * showing how often each different value in the collection occurs. * * @template T * * @param iterable<T> $data * @p...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/UsageMap.php
src/Util/UsageMap.php
<?php declare(strict_types=1); namespace IterTools\Util; use IterTools\Reduce; use IterTools\Stream; /** * @internal */ class UsageMap { /** * @var array<string, array<string, int>> */ private array $addedMap = []; /** * @var array<string, int> */ private array $deletedMap = []...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/ResourcePolicy.php
src/Util/ResourcePolicy.php
<?php declare(strict_types=1); namespace IterTools\Util; /** * @internal */ class ResourcePolicy { /** * @param resource $resource * @return void */ public static function assertIsSatisfied($resource): void { if (!\is_resource($resource)) { throw new \InvalidArgumentE...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/UniqueExtractor.php
src/Util/UniqueExtractor.php
<?php declare(strict_types=1); namespace IterTools\Util; /** * @internal * Tool for extracting unique IDs and hashes of any PHP variables and data structures. * * Based on PHP Type Tool's UniqueExtractor. * Contributed to IterTools by @author Smoren <ofigate@gmail.com> * @see https://github.com/Smoren/type-too...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/NoValueMonad.php
src/Util/NoValueMonad.php
<?php namespace IterTools\Util; /** * @internal */ class NoValueMonad { private static ?self $instance = null; public static function getInstance(): self { if (self::$instance === null) { self::$instance = new self(); } return self::$instance; } private fun...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/Iterators/TeeIterator.php
src/Util/Iterators/TeeIterator.php
<?php declare(strict_types=1); namespace IterTools\Util\Iterators; use IterTools\Util\Iterators\RelatedIterator; /** * @internal * * @template TKey * @template TValue */ class TeeIterator extends \NoRewindIterator { /** * @var array<RelatedIterator<TKey, TValue>> */ private array $related = [...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/Iterators/JustifyMultipleIterator.php
src/Util/Iterators/JustifyMultipleIterator.php
<?php namespace IterTools\Util\Iterators; use IterTools\Stream; use IterTools\Transform; use IterTools\Util\NoValueMonad; /** * @internal * @implements \Iterator<array<mixed>> */ class JustifyMultipleIterator implements \Iterator { /** * @var array<\Iterator<mixed>> */ protected array $iterators...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/Iterators/StrictMultipleIterator.php
src/Util/Iterators/StrictMultipleIterator.php
<?php namespace IterTools\Util\Iterators; /** * @internal * Works like \MultipleIterator * but throws \LengthException if at least one iterator ends before the others while iteration process. * * {@inheritDoc} */ class StrictMultipleIterator extends \MultipleIterator { /** * Throws \LengthException if ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/src/Util/Iterators/RelatedIterator.php
src/Util/Iterators/RelatedIterator.php
<?php declare(strict_types=1); namespace IterTools\Util\Iterators; /** * @internal * * @template TKey * @template TValue * * @implements \Iterator<TKey, TValue> */ class RelatedIterator implements \Iterator { /** * @var TeeIterator<TKey, TValue> */ protected TeeIterator $parentIterator; ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/bootstrap.php
tests/bootstrap.php
<?php if (file_exists(__DIR__ . '/../vendor/autoload.php')) { require_once(__DIR__ . '/../vendor/autoload.php'); } elseif (file_exists(__DIR__ . '/../../../autoload.php')) { require_once(__DIR__ . '/../../../autoload.php'); }
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/FrequenciesTest.php
tests/Math/FrequenciesTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Math; use IterTools\Math; use IterTools\Tests\Fixture\ArrayIteratorFixture; use IterTools\Tests\Fixture\GeneratorFixture; use IterTools\Tests\Fixture\IteratorAggregateFixture; class FrequenciesTest extends \PHPUnit\Framework\TestCase { /** * @test fr...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RunningProductTest.php
tests/Math/RunningProductTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Multi; use IterTools\Math; use IterTools\Tests\Fixture; class RunningProductTest extends \PHPUnit\Framework\TestCase { /** * @test runningProduct array * @dataProvider dataProviderForArray * @param array $numbers * @para...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RunningDifferenceTest.php
tests/Math/RunningDifferenceTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Multi; use IterTools\Math; use IterTools\Tests\Fixture; class RunningDifferenceTest extends \PHPUnit\Framework\TestCase { /** * @test runningDifference array * @dataProvider dataProviderForArray * @param array $numbers *...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RunningMinTest.php
tests/Math/RunningMinTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Multi; use IterTools\Math; use IterTools\Tests\Fixture; class RunningMinTest extends \PHPUnit\Framework\TestCase { /** * @test runningMin array * @dataProvider dataProviderForArray * @param array $numbers * @param ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RunningTotalTest.php
tests/Math/RunningTotalTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Multi; use IterTools\Math; use IterTools\Tests\Fixture; class RunningTotalTest extends \PHPUnit\Framework\TestCase { /** * @test runningTotal array * @dataProvider dataProviderForArray * @param array $numbers * @param ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RelativeFrequenciesTest.php
tests/Math/RelativeFrequenciesTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Math; use IterTools\Math; use IterTools\Tests\Fixture\ArrayIteratorFixture; use IterTools\Tests\Fixture\GeneratorFixture; use IterTools\Tests\Fixture\IteratorAggregateFixture; class RelativeFrequenciesTest extends \PHPUnit\Framework\TestCase { private con...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RunningMaxTest.php
tests/Math/RunningMaxTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Multi; use IterTools\Math; use IterTools\Tests\Fixture; class RunningMaxTest extends \PHPUnit\Framework\TestCase { /** * @test runningMax array * @dataProvider dataProviderForArray * @param array $numbers * @param ...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Math/RunningAverageTest.php
tests/Math/RunningAverageTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Multi; use IterTools\Math; use IterTools\Tests\Fixture; class RunningAverageTest extends \PHPUnit\Framework\TestCase { /** * @test runningAverage array * @dataProvider dataProviderForArray * @param array $numbers * @para...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/IsSortedTest.php
tests/Summary/IsSortedTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture\ArrayIteratorFixture; use IterTools\Tests\Fixture\GeneratorFixture; use IterTools\Tests\Fixture\IteratorAggregateFixture; class IsSortedTest extends \PHPUnit\Framework\TestCase { /** * @test...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/SameTest.php
tests/Summary/SameTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture\ArrayIteratorFixture; use IterTools\Tests\Fixture\GeneratorFixture; use IterTools\Tests\Fixture\IteratorAggregateFixture; class SameTest extends \PHPUnit\Framework\TestCase { /** * @return v...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/NoneMatchTest.php
tests/Summary/NoneMatchTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture; class NoneMatchTest extends \PHPUnit\Framework\TestCase { use \IterTools\Tests\Fixture\DataProvider; /** * @test noneMatch - empty iterable * @dataProvider dataProviderFor...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/AllMatchTest.php
tests/Summary/AllMatchTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture; class AllMatchTest extends \PHPUnit\Framework\TestCase { use \IterTools\Tests\Fixture\DataProvider; /** * @test allMatch - empty iterable * @dataProvider dataProviderForEm...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/AllUniqueTest.php
tests/Summary/AllUniqueTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture\GeneratorFixture; use IterTools\Tests\Fixture\IteratorAggregateFixture; class AllUniqueTest extends \PHPUnit\Framework\TestCase { /** * @dataProvider dataProviderForArrayStrictTrue * @d...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/AnyMatchTest.php
tests/Summary/AnyMatchTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture; class AnyMatchTest extends \PHPUnit\Framework\TestCase { use \IterTools\Tests\Fixture\DataProvider; /** * @test anyMatch - empty array * @dataProvider dataProviderForEmpty...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false
markrogoyski/itertools-php
https://github.com/markrogoyski/itertools-php/blob/ced0d7ecdad7b6556ec2d415206c56def69ff0d7/tests/Summary/IsEmptyTest.php
tests/Summary/IsEmptyTest.php
<?php declare(strict_types=1); namespace IterTools\Tests\Summary; use IterTools\Summary; use IterTools\Tests\Fixture\DataProvider; use IterTools\Tests\Fixture\GeneratorFixture; use IterTools\Tests\Fixture\IteratorAggregateFixture; class IsEmptyTest extends \PHPUnit\Framework\TestCase { use DataProvider; /*...
php
MIT
ced0d7ecdad7b6556ec2d415206c56def69ff0d7
2026-01-05T04:05:19.040395Z
false