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
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/MailableFactory.php
src/MailableFactory.php
<?php namespace Spatie\MailableTest; use Illuminate\Mail\Mailable; use ReflectionClass; use ReflectionParameter; class MailableFactory { /** @var \Spatie\MailableTest\FakerArgumentValueProvider */ protected $argumentValueProvider; public function __construct(ArgumentValueProvider $argumentValueProvider)...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/ArgumentValueProvider.php
src/ArgumentValueProvider.php
<?php namespace Spatie\MailableTest; interface ArgumentValueProvider { /** * @param string $mailableClass * @param string $argumentName * @param string $argumentType * @param string|null $defaultValue * * @return mixed */ public function getValue(string $mailableClass, strin...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/FakerArgumentValueProvider.php
src/FakerArgumentValueProvider.php
<?php namespace Spatie\MailableTest; use Exception; use Faker\Generator; use Illuminate\Database\Eloquent\Model; use Spatie\MailableTest\Exceptions\CouldNotDetermineValue; class FakerArgumentValueProvider implements ArgumentValueProvider { /** @var \Faker\Generator */ protected $faker; public function _...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/SendTestMail.php
src/SendTestMail.php
<?php namespace Spatie\MailableTest; use Illuminate\Console\Command; use InvalidArgumentException; use Mail; use Validator; class SendTestMail extends Command { protected $signature = 'mail:send-test {mailableClass} {recipient} {--values=}'; protected $description = 'Send a test email'; public function...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/MailableTestServiceProvider.php
src/MailableTestServiceProvider.php
<?php namespace Spatie\MailableTest; use Faker\Factory as Faker; use Illuminate\Support\ServiceProvider; use Spatie\MailableTest\Exceptions\InvalidConfiguration; class MailableTestServiceProvider extends ServiceProvider { public function boot() { $this->publishes([ __DIR__.'/../config/mai...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/Exceptions/CouldNotDetermineValue.php
src/Exceptions/CouldNotDetermineValue.php
<?php namespace Spatie\MailableTest\Exceptions; use Exception; use Illuminate\Database\Eloquent\Model; class CouldNotDetermineValue extends Exception { public static function create($argumentType, $argumentName, Exception $exception): self { return new self("Could not determine a value of type `{$arg...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/src/Exceptions/InvalidConfiguration.php
src/Exceptions/InvalidConfiguration.php
<?php namespace Spatie\MailableTest\Exceptions; use Exception; class InvalidConfiguration extends Exception { public static function invalidValueProviderClass($argumentValueProviderClass) { $expectedClass = ArgumentValueProvider::class; return new static("The `argument_value_provider_class` ...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/TestCase.php
tests/TestCase.php
<?php namespace Spatie\MailableTest\Test; use Illuminate\Database\Schema\Blueprint; use Orchestra\Testbench\TestCase as Orchestra; abstract class TestCase extends Orchestra { public function setUp(): void { parent::setUp(); $this->setUpDatabase(); } /** * @param \Illuminate\Fou...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/TestMailable.php
tests/TestMailable.php
<?php namespace Spatie\MailableTest\Test; use Illuminate\Mail\Mailable; class TestMailable extends Mailable { /** @var int */ public $myInteger; /** @var string */ public $myString; /** @var bool */ public $myBool; /** @var TestModel */ public $myModel; public function __const...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/MailableFactoryTest.php
tests/MailableFactoryTest.php
<?php namespace Spatie\MailableTest\Test; use Spatie\MailableTest\MailableFactory; class MailableFactoryTest extends TestCase { /** @var \Spatie\MailableTest\FakerArgumentValueProvider|\Mockery\MockInterface */ protected $argumentValueProvider; /** @var \Spatie\MailableTest\MailableFactory */ protec...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/SendTestMailTest.php
tests/SendTestMailTest.php
<?php namespace Spatie\MailableTest\Test; use Artisan; use Exception; use InvalidArgumentException; use Mail; class SendTestMailTest extends TestCase { /** @test */ public function it_can_send_a_mail_without_passing_values() { Mail::fake(); TestModel::create(['name' => 'my name']); ...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/TestModel.php
tests/TestModel.php
<?php namespace Spatie\MailableTest\Test; use Illuminate\Database\Eloquent\Model; class TestModel extends Model { protected $table = 'test_models'; protected $guarded = []; public $timestamps = false; }
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/ArgumentValueProviderTest.php
tests/ArgumentValueProviderTest.php
<?php namespace Spatie\MailableTest\Test; use Spatie\MailableTest\Exceptions\CouldNotDetermineValue; use Spatie\MailableTest\FakerArgumentValueProvider; class ArgumentValueProviderTest extends TestCase { /** @var \Spatie\MailableTest\FakerArgumentValueProvider */ protected $argumentValueProvider; public...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/tests/ConfigTest.php
tests/ConfigTest.php
<?php namespace Spatie\MailableTest\Test; use Artisan; use Spatie\MailableTest\Exceptions\InvalidConfiguration; class ConfigTest extends TestCase { /** @test */ public function it_will_throw_an_exception_if_argument_value_provider_class_contains_an_invalid_class() { $this->expectException(Invalid...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
spatie/laravel-mailable-test
https://github.com/spatie/laravel-mailable-test/blob/1402c56f27d77301adf212a259a113bafc31d80b/config/mailable-test.php
config/mailable-test.php
<?php return [ /* * This class will be used to generate argument values for the constructor * of a mailable. This can be any class as long as it * extends \Spatie\MailableTest\ArgumentValueProvider::class */ 'argument_value_provider_class' => \Spatie\MailableTest\FakerArgumentValueProvider...
php
MIT
1402c56f27d77301adf212a259a113bafc31d80b
2026-01-05T04:01:56.330329Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/src/SmartDoveServiceProvider.php
src/SmartDoveServiceProvider.php
<?php namespace Meditate\SmartDove; use Illuminate\Mail\MailServiceProvider; use Illuminate\Mail\Markdown; use Meditate\SmartDove\Mail\TransportManager; use Meditate\SmartDove\SMS\Client; class SmartDoveServiceProvider extends MailServiceProvider { /** * Register the service provider. * * @return ...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/src/Mail/TransportManager.php
src/Mail/TransportManager.php
<?php namespace Meditate\SmartDove\Mail; use Illuminate\Mail\TransportManager as IlluminateTransportManager; use Meditate\SmartDove\Mail\Transport\SmartDoveTransport; class TransportManager extends IlluminateTransportManager { /** * Create an instance of the Mailgun Swift Transport driver. * * @re...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/src/Mail/Transport/SmartDoveTransport.php
src/Mail/Transport/SmartDoveTransport.php
<?php namespace Meditate\SmartDove\Mail\Transport; use Illuminate\Mail\Transport\Transport; use Swift_Mime_SimpleMessage; use GuzzleHttp\ClientInterface; class SmartDoveTransport extends Transport { /** * Guzzle client instance. * * @var \GuzzleHttp\ClientInterface */ protected $client; ...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/src/SMS/SmartDoveChannel.php
src/SMS/SmartDoveChannel.php
<?php namespace Meditate\SmartDove\SMS; use Illuminate\Notifications\Notification; class SmartDoveChannel { /** * $client. * * @var \Meditate\SmartDove\SMS\Client */ protected $client; /** * __construct. * * @param \Meditate\SmartDove\SMS\Client $client */ pub...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/src/SMS/Client.php
src/SMS/Client.php
<?php namespace Meditate\SmartDove\SMS; use Http\Client\HttpClient; use Http\Discovery\HttpClientDiscovery; use Http\Discovery\MessageFactoryDiscovery; use Http\Message\MessageFactory; class Client { /** * @var string */ protected $apiEndpoint = 'https://api.smartdove.net/index.php?r=smsApi/SendOne...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/src/SMS/SmartDoveMessage.php
src/SMS/SmartDoveMessage.php
<?php namespace Meditate\SmartDove\SMS; class SmartDoveMessage { /** * The message subject. * * @var string */ public $subject = null; /** * The message content. * * @var string */ public $content; /** * The message send time. * * @var \Carb...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
laravel-dojo/smartdove
https://github.com/laravel-dojo/smartdove/blob/f5e44c811db73966a4c7498f7445d97a031fbc30/tests/ClientTest.php
tests/ClientTest.php
<?php namespace Meditate\SmartDove\SMS\Tests; use Dotenv\Dotenv; use Meditate\SmartDove\SMS\Client; use PHPUnit\Framework\TestCase; class ClientTest extends TestCase { protected $token; protected $params; protected function setUp() { $dotenv = new Dotenv(__DIR__); $dotenv->load(); ...
php
MIT
f5e44c811db73966a4c7498f7445d97a031fbc30
2026-01-05T04:02:04.820504Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/ConstantsTest.php
tests/ConstantsTest.php
<?php use PHPUnit\Framework\TestCase; class ConstantsTest extends TestCase { /** @var array */ private static $stubConstants; /** @var array */ private static $extensionConstants; public static function setUpBeforeClass(): void { self::$extensionConstants = get_defined_constants(true...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/FunctionsTest.php
tests/FunctionsTest.php
<?php use PHPUnit\Framework\TestCase; class FunctionsTest extends TestCase { public function testErr2Str() { $this->assertTrue(function_exists('rd_kafka_err2str')); } public function testErrno2Err() { $this->assertTrue(function_exists('rd_kafka_errno2err')); } public func...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafkaTest.php
tests/RdKafkaTest.php
<?php use PHPUnit\Framework\TestCase; class RdKafkaTest extends TestCase { public function testRdKafkaClassIsAbstract() { $reflector = new ReflectionClass(\RdKafka::class); $this->assertTrue($reflector->isAbstract()); } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/QueueTest.php
tests/RdKafka/QueueTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class QueueTest extends TestCase { const PARTITION = 0; /** * @var ConsumerTopic */ private $consumerTopic; /** * @var Queue */ private $queue; public function setUp(): void { $conf = new Conf(); ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/ConsumerTest.php
tests/RdKafka/ConsumerTest.php
<?php namespace RdKafka; use PHPUnit\Framework\Error\Deprecated; use PHPUnit\Framework\TestCase; class ConsumerTest extends TestCase { /** * @var Consumer */ private $consumer; public function setUp(): void { $conf = new Conf(); $conf->set('metadata.broker.list', 'localhost...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/ConsumerTopicTest.php
tests/RdKafka/ConsumerTopicTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class ConsumerTopicTest extends TestCase { const PARTITION = 0; /** * @var ConsumerTopic */ private $consumerTopic; public function setUp(): void { $conf = new Conf(); $conf->set('metadata.broker.list', 'localhos...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/ExceptionTest.php
tests/RdKafka/ExceptionTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class ExceptionTest extends TestCase { public function testRdKafkaExceptionIsThrowable() { self::expectException(Exception::class); throw new Exception(); } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/KafkaErrorExceptionTest.php
tests/RdKafka/KafkaErrorExceptionTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class KafkaErrorExceptionTest extends TestCase { public function testRdKafkaExceptionIsThrowable() { self::expectException(KafkaErrorException::class); self::expectExceptionMessage('some message'); self::expectExceptionCode(900)...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/ConfTest.php
tests/RdKafka/ConfTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class ConfTest extends TestCase { /** * @var Conf */ private $conf; public function setUp(): void { $this->conf = new Conf(); } /** * dump() returns all values for parameters as strings */ public functi...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/ProducerTopicTest.php
tests/RdKafka/ProducerTopicTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class ProducerTopicTest extends TestCase { /** * @var ProducerTopic */ private $producerTopic; public function setUp(): void { $conf = new Conf(); $conf->set('metadata.broker.list', 'localhost:9092'); $produce...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/MetadataTest.php
tests/RdKafka/MetadataTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; use RdKafka\Metadata\Collection; class MetadataTest extends TestCase { /** * @var Metadata */ private $metadata; public function setUp(): void { $conf = new Conf(); $conf->set('metadata.broker.list', 'localhost:9092')...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/MessageTest.php
tests/RdKafka/MessageTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class MessageTest extends TestCase { const PARTITION = 0; const OFFSET = -1; /** * @var Message */ private $message; public function setUp(): void { $conf = new Conf(); $conf->set('metadata.broker.list', '...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/TopicConfTest.php
tests/RdKafka/TopicConfTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class TopicConfTest extends TestCase { /** * @var TopicConf */ private $topicConf; public function setUp(): void { $this->topicConf = new TopicConf(); } public function testDump() { $this->markTestSkipped...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/ProducerTest.php
tests/RdKafka/ProducerTest.php
<?php namespace RdKafka; use PHPUnit\Framework\Error\Deprecated; use PHPUnit\Framework\TestCase; class ProducerTest extends TestCase { const MESSAGE_PAYLOAD = 'test payload'; /** * @var Producer */ private $producer; /** * @var string */ private $filename; public functi...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/tests/RdKafka/TopicTest.php
tests/RdKafka/TopicTest.php
<?php namespace RdKafka; use PHPUnit\Framework\TestCase; class TopicTest extends TestCase { public function testClassIsAbstract() { $reflector = new \ReflectionClass(Topic::class); $this->assertTrue($reflector->isAbstract()); } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka.php
stubs/RdKafka.php
<?php use RdKafka\Exception; use RdKafka\Metadata; use RdKafka\Topic; use RdKafka\TopicConf; use RdKafka\TopicPartition; abstract class RdKafka { /** * @param string $broker_list * * @return int */ public function addBrokers(string $broker_list): int { } /** * @param bool...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/functions.php
stubs/functions.php
<?php /** * @param int $err Error code * * @return string Returns the error as a string. */ function rd_kafka_err2str(int $err): string { } /** * @param int $errnox A system errno * * @deprecated * * @return int Returns a kafka error code as an integer. */ function rd_kafka_errno2err(int $errnox) { } /** ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/constants.php
stubs/constants.php
<?php /** @link https://arnaud.le-blanc.net/php-rdkafka-doc/phpdoc/rdkafka.constants.html */ const RD_KAFKA_RESP_ERR__BEGIN = -200; const RD_KAFKA_RESP_ERR__BAD_MSG = -199; const RD_KAFKA_RESP_ERR__BAD_COMPRESSION = -198; const RD_KAFKA_RESP_ERR__DESTROY = -197; const RD_KAFKA_RESP_ERR__FAIL = -196; const RD_KAFKA_RE...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/TopicPartition.php
stubs/RdKafka/TopicPartition.php
<?php namespace RdKafka; class TopicPartition { /** * @param string $topic * @param int $partition * @param int $offset */ public function __construct($topic, $partition, $offset = null) { } /** * @return int */ public function getOffset(): int { } ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Consumer.php
stubs/RdKafka/Consumer.php
<?php namespace RdKafka; class Consumer extends \RdKafka { /** * @param Conf|null $conf */ public function __construct(Conf $conf = null) { } /** * @param string $topic_name * @param TopicConf|null $topic_conf * * @return ConsumerTopic */ public func...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/KafkaErrorException.php
stubs/RdKafka/KafkaErrorException.php
<?php namespace RdKafka; class KafkaErrorException extends \Exception { /** * @param string $message * @param int $code * @param string $errorString * @param boolean $isFatal * @param boolean $isRetriable * @param boolean $transactionRequiresAbort */ public function __constr...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Metadata.php
stubs/RdKafka/Metadata.php
<?php namespace RdKafka; use RdKafka\Metadata\Broker; use RdKafka\Metadata\Collection; use RdKafka\Metadata\Topic; class Metadata { /** * @return Collection|Broker[] */ public function getBrokers(): Collection { } /** * @return Collection|Topic[] */ public function getTop...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/ConsumerTopic.php
stubs/RdKafka/ConsumerTopic.php
<?php namespace RdKafka; class ConsumerTopic extends Topic { private function __construct() { } /** * @param int $partition * @param int $timeout_ms * * @return Message|null */ public function consume(int $partition, int $timeout_ms) { } /** * @param int...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/TopicConf.php
stubs/RdKafka/TopicConf.php
<?php namespace RdKafka; /** * Configuration reference: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md */ class TopicConf { /** * @return array */ public function dump(): array { } /** * @param string $name * @param string $value * * @return vo...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/KafkaConsumerTopic.php
stubs/RdKafka/KafkaConsumerTopic.php
<?php namespace RdKafka; class KafkaConsumerTopic extends Topic { /** * @param int $partition * @param int $offset * * @return void */ public function offsetStore(int $partition, int $offset) { } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Exception.php
stubs/RdKafka/Exception.php
<?php namespace RdKafka; class Exception extends \Exception { }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/KafkaConsumer.php
stubs/RdKafka/KafkaConsumer.php
<?php namespace RdKafka; class KafkaConsumer { /** * @param Conf $conf */ public function __construct(Conf $conf) { } /** * @param TopicPartition[]|null $topic_partitions * * @throws Exception * @return void */ public function assign(array $topic_partitions ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Conf.php
stubs/RdKafka/Conf.php
<?php namespace RdKafka; /** * Configuration reference: https://github.com/edenhill/librdkafka/blob/master/CONFIGURATION.md */ class Conf { /** * @return array<string, string> */ public function dump(): array { } /** * @param string $name * @param string $value * *...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Producer.php
stubs/RdKafka/Producer.php
<?php namespace RdKafka; class Producer extends \RdKafka { /** * @param Conf $conf */ public function __construct(Conf $conf = null) { } /** * @param string $topic_name * @param TopicConf|null $topic_conf * * @return ProducerTopic */ public function ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Queue.php
stubs/RdKafka/Queue.php
<?php namespace RdKafka; class Queue { private function __construct() { } /** * @param int $timeout_ms * * @return Message|null */ public function consume(int $timeout_ms) { } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Message.php
stubs/RdKafka/Message.php
<?php namespace RdKafka; class Message { /** * @var int|null */ public $err; /** * @var string|null */ public $topic_name; /** * @var int|null */ public $partition; /** * @var string|null */ public $payload; /** * @var int|null ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/ProducerTopic.php
stubs/RdKafka/ProducerTopic.php
<?php namespace RdKafka; class ProducerTopic extends Topic { private function __construct() { } /** * @param int $partition * @param int $msgflags * @param string|null $payload * @param string|null $key * @param string|null $opaque * * @throws Exception *...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Topic.php
stubs/RdKafka/Topic.php
<?php namespace RdKafka; abstract class Topic { /** * @return string */ public function getName(): string { } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Metadata/Collection.php
stubs/RdKafka/Metadata/Collection.php
<?php namespace RdKafka\Metadata; class Collection implements \Iterator, \Countable { /** * @return mixed */ public function current() { } /** * @return void */ public function next() { } /** * @return mixed */ public function key() { } ...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Metadata/Partition.php
stubs/RdKafka/Metadata/Partition.php
<?php namespace RdKafka\Metadata; class Partition { /** * @return int */ public function getId(): int { } /** * @return mixed */ public function getErr() { } /** * @return mixed */ public function getLeader() { } /** * @return m...
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Metadata/Broker.php
stubs/RdKafka/Metadata/Broker.php
<?php namespace RdKafka\Metadata; class Broker { /** * @return int */ public function getId(): int { } /** * @return string */ public function getHost(): string { } /** * @return int */ public function getPort(): int { } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
kwn/php-rdkafka-stubs
https://github.com/kwn/php-rdkafka-stubs/blob/c1e743c5d1685c7ade27d588f44bef614d0705bc/stubs/RdKafka/Metadata/Topic.php
stubs/RdKafka/Metadata/Topic.php
<?php namespace RdKafka\Metadata; class Topic { /** * @return string */ public function getTopic(): string { } /** * @return Partition[] */ public function getPartitions(): array { } /** * @return mixed */ public function getErr() { } }
php
MIT
c1e743c5d1685c7ade27d588f44bef614d0705bc
2026-01-05T04:02:25.608426Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/ScrubberServiceProvider.php
src/ScrubberServiceProvider.php
<?php namespace YorCreative\Scrubber; use GuzzleHttp\Client; use Illuminate\Support\Facades\Config; use Illuminate\Support\ServiceProvider; use YorCreative\Scrubber\Clients\GitLabClient; use YorCreative\Scrubber\Repositories\RegexRepository; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ContentProcess...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Scrubber.php
src/Scrubber.php
<?php namespace YorCreative\Scrubber; use Monolog\LogRecord; use YorCreative\Scrubber\Repositories\RegexRepository; use YorCreative\Scrubber\Services\ScrubberService; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ContentProcessingStrategy; class Scrubber { public static function processMessage($c...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/LoaderInterface.php
src/Strategies/RegexLoader/LoaderInterface.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader; use Illuminate\Support\Collection; interface LoaderInterface { public function canLoad(): bool; public function load(Collection &$regexCollection): void; }
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/RegexLoaderStrategy.php
src/Strategies/RegexLoader/RegexLoaderStrategy.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader; use Illuminate\Support\Collection; class RegexLoaderStrategy { public Collection $availableLoaders; public function __construct() { $this->availableLoaders = new Collection; } public function setLoader(LoaderInterface $loader)...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/Loaders/WildcardRegex.php
src/Strategies/RegexLoader/Loaders/WildcardRegex.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader\Loaders; use HaydenPierce\ClassFinder\ClassFinder; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Config; use ReflectionClass; use YorCreative\Scrubber\Repositories\RegexCollection; class WildcardRegex extends NamespaceLoader { protec...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/Loaders/NamespaceLoader.php
src/Strategies/RegexLoader/Loaders/NamespaceLoader.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader\Loaders; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; use YorCreative\Scrubber\Strategies\RegexLoader\LoaderInterface; abstract class Name...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/Loaders/SpecificRegex.php
src/Strategies/RegexLoader/Loaders/SpecificRegex.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader\Loaders; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Config; class SpecificRegex extends NamespaceLoader { public function canLoad(): bool { return ! in_array('*', Config::get('scrubber.regex_loader')); } publi...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/Loaders/ConfigLoader.php
src/Strategies/RegexLoader/Loaders/ConfigLoader.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader\Loaders; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Config; use Illuminate\Support\Str; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; use YorCreative\Scrubber\Strategies\RegexLoader\LoaderInterface; class ConfigLoader ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/RegexLoader/Loaders/SecretLoader.php
src/Strategies/RegexLoader/Loaders/SecretLoader.php
<?php namespace YorCreative\Scrubber\Strategies\RegexLoader\Loaders; use Illuminate\Support\Collection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; use YorCreative\Scrubber\SecretManager\Secret; use YorCreative\Scrubber\Services\SecretService; use YorCreative\Scrubber\Strategies\RegexLoader\LoaderIn...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/TapLoader/TapLoaderStrategy.php
src/Strategies/TapLoader/TapLoaderStrategy.php
<?php namespace YorCreative\Scrubber\Strategies\TapLoader; use Illuminate\Config\Repository; use Illuminate\Support\Collection; class TapLoaderStrategy { public Collection $availableLoaders; public function __construct() { $this->availableLoaders = new Collection; } public function setL...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/TapLoader/TapLoaderInterface.php
src/Strategies/TapLoader/TapLoaderInterface.php
<?php namespace YorCreative\Scrubber\Strategies\TapLoader; use Illuminate\Config\Repository; interface TapLoaderInterface { public function canLoad(): bool; public function load(Repository $config): void; }
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/TapLoader/Loaders/WildCardChannel.php
src/Strategies/TapLoader/Loaders/WildCardChannel.php
<?php namespace YorCreative\Scrubber\Strategies\TapLoader\Loaders; use Illuminate\Config\Repository; use Illuminate\Support\Facades\Config; use YorCreative\Scrubber\Handlers\ScrubberTap; use YorCreative\Scrubber\Strategies\TapLoader\TapLoaderInterface; class WildCardChannel implements TapLoaderInterface { public...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/TapLoader/Loaders/MultipleChannel.php
src/Strategies/TapLoader/Loaders/MultipleChannel.php
<?php namespace YorCreative\Scrubber\Strategies\TapLoader\Loaders; use Illuminate\Config\Repository; use Illuminate\Support\Facades\Config; use YorCreative\Scrubber\Handlers\ScrubberTap; use YorCreative\Scrubber\Strategies\TapLoader\TapLoaderInterface; class MultipleChannel implements TapLoaderInterface { public...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/TapLoader/Loaders/SpecificChannel.php
src/Strategies/TapLoader/Loaders/SpecificChannel.php
<?php namespace YorCreative\Scrubber\Strategies\TapLoader\Loaders; use Illuminate\Config\Repository; use Illuminate\Support\Facades\Config; use YorCreative\Scrubber\Handlers\ScrubberTap; use YorCreative\Scrubber\Strategies\TapLoader\TapLoaderInterface; class SpecificChannel implements TapLoaderInterface { public...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/ContentProcessingStrategy/ContentProcessingStrategy.php
src/Strategies/ContentProcessingStrategy/ContentProcessingStrategy.php
<?php namespace YorCreative\Scrubber\Strategies\ContentProcessingStrategy; use Illuminate\Support\Collection; use Monolog\LogRecord; use RuntimeException; class ContentProcessingStrategy { protected Collection $handlers; public function __construct() { $this->handlers = new Collection; } ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/ContentProcessingStrategy/ProcessHandlerContract.php
src/Strategies/ContentProcessingStrategy/ProcessHandlerContract.php
<?php namespace YorCreative\Scrubber\Strategies\ContentProcessingStrategy; use Monolog\LogRecord; interface ProcessHandlerContract { public function canProcess(mixed $content): bool; public function processContent(mixed $content): string|array|LogRecord; }
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/ContentProcessingStrategy/Traits/ProcessArrayTrait.php
src/Strategies/ContentProcessingStrategy/Traits/ProcessArrayTrait.php
<?php namespace YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Traits; use YorCreative\Scrubber\Services\ScrubberService; trait ProcessArrayTrait { public function processArrayRecursively(array $content): array { foreach ($content as $key => $value) { if ($value !== null) { ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/ContentProcessingStrategy/Handlers/ArrayContentHandler.php
src/Strategies/ContentProcessingStrategy/Handlers/ArrayContentHandler.php
<?php namespace YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Handlers; use Monolog\LogRecord; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ProcessHandlerContract; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Traits\ProcessArrayTrait; class ArrayContentHandler implements...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/ContentProcessingStrategy/Handlers/StringContentHandler.php
src/Strategies/ContentProcessingStrategy/Handlers/StringContentHandler.php
<?php namespace YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Handlers; use Monolog\LogRecord; use YorCreative\Scrubber\Services\ScrubberService; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ProcessHandlerContract; class StringContentHandler implements ProcessHandlerContract { public...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Strategies/ContentProcessingStrategy/Handlers/LogRecordContentHandler.php
src/Strategies/ContentProcessingStrategy/Handlers/LogRecordContentHandler.php
<?php namespace YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Handlers; use Monolog\LogRecord; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ContentProcessingStrategy; use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ProcessHandlerContract; use YorCreative\Scrubber\Strategies\...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Exceptions/SecretProviderException.php
src/Exceptions/SecretProviderException.php
<?php namespace YorCreative\Scrubber\Exceptions; use Exception; use Throwable; class SecretProviderException extends Exception { public function __construct($message = '', $code = 0, ?Throwable $previous = null) { parent::__construct($message, $code, $previous); } }
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Interfaces/RegexCollectionInterface.php
src/Interfaces/RegexCollectionInterface.php
<?php namespace YorCreative\Scrubber\Interfaces; interface RegexCollectionInterface { public function isSecret(): bool; public function getPattern(): string; public function getTestableString(): string; }
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Support/LogRecordFactory.php
src/Support/LogRecordFactory.php
<?php namespace YorCreative\Scrubber\Support; use DateTimeImmutable; use InvalidArgumentException; use LogicException; use Monolog\Level; use Monolog\Logger; use Monolog\LogRecord; use RuntimeException; class LogRecordFactory { public static bool $useAnonymous = false; public static function buildRecord( ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/GoogleApi.php
src/RegexCollection/GoogleApi.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class GoogleApi implements RegexCollectionInterface { public function getPattern(): string { return 'AIza[0-9A-Za-z-_]{35}'; } public function getTestableString(): string {...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/VisaCreditCard.php
src/RegexCollection/VisaCreditCard.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class VisaCreditCard implements RegexCollectionInterface { public function getPattern(): string { return '((4\d{3}))-?\s?\d{4}-?\s?\d{4}-?\s?\d{4}|3[4,7][\d\s-]{15}$'; } public...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/GoogleOauth.php
src/RegexCollection/GoogleOauth.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class GoogleOauth implements RegexCollectionInterface { public function getPattern(): string { return 'ya29\.[0-9A-Za-z\-_]+'; } public function getTestableString(): string ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/MasterCardCreditCard.php
src/RegexCollection/MasterCardCreditCard.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class MasterCardCreditCard implements RegexCollectionInterface { public function getPattern(): string { return '((5[1-5]\d{2}))-?\s?\d{4}-?\s?\d{4}-?\s?\d{4}|3[4,7][\d\s-]{15}$'; } ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/Firebase.php
src/RegexCollection/Firebase.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class Firebase implements RegexCollectionInterface { public function getPattern(): string { return 'AAAA[A-Za-z0-9_-]{7}:[A-Za-z0-9_-]{140}'; } public function getTestableStrin...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/TwilioAccountSid.php
src/RegexCollection/TwilioAccountSid.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class TwilioAccountSid implements RegexCollectionInterface { public function getPattern(): string { return 'AC[a-zA-Z0-9_\-]{32}'; } public function getTestableString(): string...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/SshDcPrivateKey.php
src/RegexCollection/SshDcPrivateKey.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class SshDcPrivateKey implements RegexCollectionInterface { public function getPattern(): string { return '(?<=-----BEGIN EC PRIVATE KEY-----)(?s)(.*END EC PRIVATE KEY)'; } pub...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/DiscoverCreditCard.php
src/RegexCollection/DiscoverCreditCard.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class DiscoverCreditCard implements RegexCollectionInterface { public function getPattern(): string { return '((6011))-?\s?\d{4}-?\s?\d{4}-?\s?\d{4}|3[4,7][\d\s-]{15}$'; } publ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/EmailAddress.php
src/RegexCollection/EmailAddress.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class EmailAddress implements RegexCollectionInterface { public function getPattern(): string { return '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}'; } public function getTestableS...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/FacebookAccessToken.php
src/RegexCollection/FacebookAccessToken.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class FacebookAccessToken implements RegexCollectionInterface { public function getPattern(): string { return 'EAACEdEose0cBA[0-9A-Za-z]+'; } public function getTestableString(...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/PgpPrivateBlock.php
src/RegexCollection/PgpPrivateBlock.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class PgpPrivateBlock implements RegexCollectionInterface { public function getPattern(): string { return '(?<=-----BEGIN PGP PRIVATE KEY BLOCK-----)(?s)(.*END PGP PRIVATE KEY BLOCK)'; ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/HerokuApiKey.php
src/RegexCollection/HerokuApiKey.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class HerokuApiKey implements RegexCollectionInterface { public function getPattern(): string { return '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}'; ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/AuthorizationBasic.php
src/RegexCollection/AuthorizationBasic.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class AuthorizationBasic implements RegexCollectionInterface { public function getPattern(): string { return '(?<=basic\s)[a-zA-Z0-9=:_\+\/-]*'; } public function getTestableSt...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/GoogleCaptcha.php
src/RegexCollection/GoogleCaptcha.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class GoogleCaptcha implements RegexCollectionInterface { public function getPattern(): string { return '6L[0-9A-Za-z-_]{38}|^6[0-9a-zA-Z_-]{39}$'; } public function getTestabl...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/TroyCreditCard.php
src/RegexCollection/TroyCreditCard.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class TroyCreditCard implements RegexCollectionInterface { public function getPattern(): string { return '9792\d{12}'; } public function getTestableString(): string { ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/SshDsaPrivateKey.php
src/RegexCollection/SshDsaPrivateKey.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class SshDsaPrivateKey implements RegexCollectionInterface { public function getPattern(): string { return '(?<=-----BEGIN PRIVATE KEY-----)(?s)(.*END PRIVATE KEY)'; } public f...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/TwilioApiKey.php
src/RegexCollection/TwilioApiKey.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class TwilioApiKey implements RegexCollectionInterface { public function getPattern(): string { return 'SK[0-9a-fA-F]{32}'; } public function getTestableString(): string { ...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false
YorCreative/Laravel-Scrubber
https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/GithubAccessToken.php
src/RegexCollection/GithubAccessToken.php
<?php namespace YorCreative\Scrubber\RegexCollection; use YorCreative\Scrubber\Interfaces\RegexCollectionInterface; class GithubAccessToken implements RegexCollectionInterface { public function getPattern(): string { return '[a-zA-Z0-9_-]*:[a-zA-Z0-9_\-]+@github\.com'; } public function getT...
php
MIT
067f5cf96228426e6fe0083b46c6e0f50e4b7395
2026-01-05T04:02:26.333110Z
false