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 |
|---|---|---|---|---|---|---|---|---|
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/AwsAccessKey.php | src/RegexCollection/AwsAccessKey.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class AwsAccessKey implements RegexCollectionInterface
{
public function getPattern(): string
{
return 'AKIA[0-9A-Z]{16}';
}
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/AuthorizationBearer.php | src/RegexCollection/AuthorizationBearer.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class AuthorizationBearer implements RegexCollectionInterface
{
public function getPattern(): string
{
return '(?<=bearer\s)[a-zA-Z0-9_\-\.=:_\+\/]*';
}
public function getTest... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/SlackToken.php | src/RegexCollection/SlackToken.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class SlackToken implements RegexCollectionInterface
{
public function getPattern(): string
{
return 'xox[a-zA-Z]-[a-zA-Z0-9-]+';
}
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/MailgunApiKey.php | src/RegexCollection/MailgunApiKey.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class MailgunApiKey implements RegexCollectionInterface
{
public function getPattern(): string
{
return 'key-[0-9a-zA-Z]{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/TwilioAppSid.php | src/RegexCollection/TwilioAppSid.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class TwilioAppSid implements RegexCollectionInterface
{
public function getPattern(): string
{
return 'AP[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/JsonWebToken.php | src/RegexCollection/JsonWebToken.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class JsonWebToken implements RegexCollectionInterface
{
public function getPattern(): string
{
return 'ey[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+';
}
public function ... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/RegexCollection/RsaPrivateKey.php | src/RegexCollection/RsaPrivateKey.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class RsaPrivateKey implements RegexCollectionInterface
{
public function getPattern(): string
{
return '(?<=-----BEGIN RSA PRIVATE KEY-----)(?s)(.*END RSA 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/AmericanExpressCreditCard.php | src/RegexCollection/AmericanExpressCreditCard.php | <?php
namespace YorCreative\Scrubber\RegexCollection;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class AmericanExpressCreditCard implements RegexCollectionInterface
{
public function getPattern(): string
{
return '((4\d{3})(34\d{1})|(37\d{1}))-?\s?\d{4}-?\s?\d{4}-?\s?\d{4}|3[4,7][\... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Clients/BaseClient.php | src/Clients/BaseClient.php | <?php
namespace YorCreative\Scrubber\Clients;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\GuzzleException;
abstract class BaseClient
{
protected Client $client;
public function __construct(Client $client)
{
$this->client = $client;
}
/**
* @return mixed
*
* @throws Gu... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Clients/GitLabClient.php | src/Clients/GitLabClient.php | <?php
namespace YorCreative\Scrubber\Clients;
/**
* @method get(string $path)
*/
class GitLabClient extends BaseClient {}
| php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Services/SecretService.php | src/Services/SecretService.php | <?php
namespace YorCreative\Scrubber\Services;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
use YorCreative\Scrubber\SecretManager\Providers\Gitlab;
use YorCreative\Scrubber\SecretManager\SecretManager;
class SecretService
{
public static array $providers = [
'gitlab' => Gitl... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Services/ScrubberService.php | src/Services/ScrubberService.php | <?php
namespace YorCreative\Scrubber\Services;
use Carbon\Carbon;
use Monolog\LogRecord;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
use YorCreative\Scrubber\Repositories\RegexRepository;
use YorCreative\Scrubber\SecretManager\Secret;
class ScrubberService
{
public static function encodeRecord(... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Commands/MakeRegexClass.php | src/Commands/MakeRegexClass.php | <?php
namespace YorCreative\Scrubber\Commands;
use Illuminate\Console\GeneratorCommand;
class MakeRegexClass extends GeneratorCommand
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'make:regex-class {name}';
/**
* The console com... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Repositories/RegexRepository.php | src/Repositories/RegexRepository.php | <?php
namespace YorCreative\Scrubber\Repositories;
use Illuminate\Support\Collection;
class RegexRepository
{
public function __construct(
protected Collection $regexCollection
) {}
public static function checkAndSanitize(string $regex, string $replace, string $content, int &$hits = 0): string
... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Repositories/RegexCollection.php | src/Repositories/RegexCollection.php | <?php
namespace YorCreative\Scrubber\Repositories;
class RegexCollection
{
public static string $AWS_ACCESS_KEY = 'AwsAccessKey';
public static string $AUTHORIZATION_BEARER = 'AuthorizationBearer';
public static string $AUTHORIZATION_BASIC = 'AuthorizationBasic';
public static string $GOOGLE_API = ... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/Handlers/ScrubberTap.php | src/Handlers/ScrubberTap.php | <?php
namespace YorCreative\Scrubber\Handlers;
use Monolog\Handler\NullHandler;
use YorCreative\Scrubber\Scrubber;
class ScrubberTap
{
public function __invoke($logger)
{
foreach ($logger->getHandlers() as $handler) {
if (! ($handler instanceof NullHandler)) {
$handler->pu... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/SecretManager/Secret.php | src/SecretManager/Secret.php | <?php
namespace YorCreative\Scrubber\SecretManager;
use Illuminate\Encryption\Encrypter;
use Illuminate\Support\Facades\Config;
class Secret
{
protected string $key;
protected string $variable;
public function __construct(string $key, string $variable)
{
$this->key = $key;
$this->va... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/SecretManager/SecretManager.php | src/SecretManager/SecretManager.php | <?php
namespace YorCreative\Scrubber\SecretManager;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
class SecretManager
{
public static function getSecrets($provider): Collection
{
// check if configuration wants all secrets or specific secrets
$keys = Config::get('s... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/SecretManager/Providers/Gitlab.php | src/SecretManager/Providers/Gitlab.php | <?php
namespace YorCreative\Scrubber\SecretManager\Providers;
use Exception;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Config;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
use YorCreative\Scrubber\Clients... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/src/SecretManager/Providers/SecretProviderInterface.php | src/SecretManager/Providers/SecretProviderInterface.php | <?php
namespace YorCreative\Scrubber\SecretManager\Providers;
use Illuminate\Support\Collection;
use YorCreative\Scrubber\SecretManager\Secret;
interface SecretProviderInterface
{
public static function getAllSecrets(): Collection;
public static function getSpecificSecret(string $key): Secret;
}
| php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/TestCase.php | tests/TestCase.php | <?php
namespace YorCreative\Scrubber\Tests;
use GuzzleHttp\Client;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\Psr7\Response;
use Illuminate\Support\Str;
use Monolog\LogRecord;
use YorCreative\Scrubber\Clients\GitLabClient;
use YorCreative\Scrubber\ScrubberServiceProvider;
use YorCreative\Scrubber\Support\LogR... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Feature/ScrubMessageTest.php | tests/Feature/ScrubMessageTest.php | <?php
namespace YorCreative\Scrubber\Tests\Feature;
use Carbon\Carbon;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Repositories\RegexRepository;
use YorCreative\Scrubber\Scrubber;
use YorCreative\Scrubber\Tests\TestCase;
#[Group('RegexRepository')]
#[Group('LogRecord')]
#[Group('Feature')]
class... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Feature/ScrubLogTest.php | tests/Feature/ScrubLogTest.php | <?php
namespace YorCreative\Scrubber\Tests\Feature;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Repositories\RegexRepository;
use YorCreative\Scrubber\Scrubber;
use YorCreative\Scrubber\Tests\TestCase;
#[Group('RegexRepository')]
#[Group('Feature')]
class ScrubLogTest extends TestCase
{
priv... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Strategies/RegexLoaderStrategyTest.php | tests/Unit/Strategies/RegexLoaderStrategyTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Strategies;
use Illuminate\Support\Facades\Config;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
use YorCreative\Scrubber\RegexCollection\GoogleApi;
use YorCreative\Scrubber\Repositories\RegexCollection;
use YorCre... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Strategies/ContentProcessingStrategyTest.php | tests/Unit/Strategies/ContentProcessingStrategyTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Strategies;
use Carbon\Carbon;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\ContentProcessingStrategy;
use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Handlers\ArrayContentHandler;
use YorCreative\Sc... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Strategies/TapLoaderStrategyTest.php | tests/Unit/Strategies/TapLoaderStrategyTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Strategies;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Strategies\TapLoader\TapLoaderStrategy;
use YorCreative\Scrubber\Tests\TestCase;
#[Group('Strategy')]
#[Group('Unit')]
class TapLoaderStrategyTest extends TestCase
{
public function test_i... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Strategies/Handlers/ArrayContentHandlerTest.php | tests/Unit/Strategies/Handlers/ArrayContentHandlerTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Strategies\Handlers;
use Mockery;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Services\ScrubberService;
use YorCreative\Scrubber\Strategies\ContentProcessingStrategy\Handlers\ArrayContentHandler;
use YorCreative\Scrubber\Tests\TestCase;
#[Group('St... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Fixtures/CustomRegex.php | tests/Unit/Fixtures/CustomRegex.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Fixtures;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
class CustomRegex implements RegexCollectionInterface
{
public function getPattern(): string
{
return '/custom_regex/';
}
public function isSecret(): bool
{
ret... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Support/LogRecordFactoryTest.php | tests/Unit/Support/LogRecordFactoryTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Support;
use DateTimeImmutable;
use InvalidArgumentException;
use Monolog\Level;
use Monolog\Logger;
use Monolog\LogRecord;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\TestCase;
use RuntimeException;
use YorCreative\Scrubber\Support\LogRecordFactory;
... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Services/ScrubberServiceTest.php | tests/Unit/Services/ScrubberServiceTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Services;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Interfaces\RegexCollectionInterface;
use YorCreative\Scrubber\Repositories\RegexRepository;
use YorCreative\Scrubber\Services\ScrubberService;
use YorCreative\Scrubber\Tests\TestCase;
class Scru... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Services/SecretServiceTest.php | tests/Unit/Services/SecretServiceTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Services;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\SecretManager\Providers\Gitlab;
use YorCreative\Scrubber\SecretManager\Secret;
use YorCreative\Scrubber\SecretManager\SecretManager;
use YorCreative\Scrubber\Tests\TestCase;
#[Group('SecretServi... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Repositories/RegexRepositoryTest.php | tests/Unit/Repositories/RegexRepositoryTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Repositories;
use Illuminate\Support\Collection;
use PHPUnit\Framework\Attributes\Group;
use YorCreative\Scrubber\Repositories\RegexRepository;
use YorCreative\Scrubber\Tests\TestCase;
#[Group('RegexRepository')]
#[Group('Unit')]
class RegexRepositoryTest extends TestC... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/tests/Unit/Repositories/RegexCollectionTest.php | tests/Unit/Repositories/RegexCollectionTest.php | <?php
namespace YorCreative\Scrubber\Tests\Unit\Repositories;
use Illuminate\Support\Collection;
use PHPUnit\Framework\Attributes\Group;
use ReflectionClass;
use YorCreative\Scrubber\Repositories\RegexCollection;
use YorCreative\Scrubber\Repositories\RegexRepository;
use YorCreative\Scrubber\Tests\TestCase;
#[Group(... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
YorCreative/Laravel-Scrubber | https://github.com/YorCreative/Laravel-Scrubber/blob/067f5cf96228426e6fe0083b46c6e0f50e4b7395/config/scrubber.php | config/scrubber.php | <?php
return [
/**
* Specify the string to use to redact the data
*/
'redaction' => '**redacted**',
'secret_manager' => [
'key' => env('APP_KEY'),
'cipher' => 'AES-256-CBC',
'enabled' => false,
'providers' => [
'gitlab' => [
/**
... | php | MIT | 067f5cf96228426e6fe0083b46c6e0f50e4b7395 | 2026-01-05T04:02:26.333110Z | false |
roots/wp-h5bp-htaccess | https://github.com/roots/wp-h5bp-htaccess/blob/520efcb01bb54badf3150802eb299e95c8a52097/wp-h5bp-htaccess.php | wp-h5bp-htaccess.php | <?php namespace Roots\Plugins;
/*
Plugin Name: HTML5 Boilerplate .htaccess
Plugin URI: https://github.com/roots/wp-h5bp-htaccess
Description: Adds <a href="https://github.com/h5bp/server-configs-apache">HTML5 Boilerplate's .htaccess</a>
Version 2.0.0
Author: Roots
Author U... | php | MIT | 520efcb01bb54badf3150802eb299e95c8a52097 | 2026-01-05T04:02:35.264720Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Connection.php | src/Connection.php | <?php
namespace duxet\Rethinkdb;
use duxet\Rethinkdb\Query\Builder as QueryBuilder;
use duxet\Rethinkdb\Schema\Grammar;
use r;
class Connection extends \Illuminate\Database\Connection
{
/**
* The RethinkDB connection handler.
*
* @var r\Connection
*/
protected $connection;
/**
*... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/RethinkdbServiceProvider.php | src/RethinkdbServiceProvider.php | <?php
namespace duxet\Rethinkdb;
use duxet\Rethinkdb\Console\Migrations\MigrateMakeCommand;
use duxet\Rethinkdb\Console\Model\ModelMakeCommand;
use duxet\Rethinkdb\Eloquent\Model;
use duxet\Rethinkdb\Migrations\MigrationCreator;
use Illuminate\Support\ServiceProvider;
class RethinkdbServiceProvider extends ServicePr... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Query.php | src/Query.php | <?php
namespace duxet\Rethinkdb;
use r;
class Query
{
/**
* The connection instance.
*
* @var Connection
*/
protected $connection;
/**
* The \r\ValuedQuery instance.
*
* @var \r\ValuedQuery
*/
protected $query;
/**
* Constructor.
*
* @param... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Schema/Builder.php | src/Schema/Builder.php | <?php
namespace duxet\RethinkDB\Schema;
use Closure;
use duxet\Rethinkdb\Connection;
use duxet\Rethinkdb\Schema\Blueprint;
use r;
class Builder extends \Illuminate\Database\Schema\Builder
{
/**
* Create a new database Schema manager.
*
* @param Connection $connection
*/
public function __... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Schema/Grammar.php | src/Schema/Grammar.php | <?php
namespace duxet\RethinkDB\Schema;
use Illuminate\Database\Schema\Grammars\Grammar as BaseGrammar;
/**
* Class Grammar
*
* @package Moloquent\Schema
*/
class Grammar extends BaseGrammar {
}
| php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Schema/Blueprint.php | src/Schema/Blueprint.php | <?php
namespace duxet\RethinkDB\Schema;
use Illuminate\Database\Connection;
use Illuminate\Database\Schema\Grammars\Grammar;
use r;
class Blueprint extends \Illuminate\Database\Schema\Blueprint
{
/**
* Create a new schema blueprint.
*
* @param Connection $connection
* @param string $table... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Query/Builder.php | src/Query/Builder.php | <?php
namespace duxet\Rethinkdb\Query;
use duxet\Rethinkdb\Connection;
use duxet\Rethinkdb\Query;
use duxet\Rethinkdb\RQL\FilterBuilder;
use Illuminate\Database\Query\Builder as QueryBuilder;
use r;
class Builder extends QueryBuilder
{
/**
* The query instance.
*
* @var Query
*/
protected... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Console/Model/ModelMakeCommand.php | src/Console/Model/ModelMakeCommand.php | <?php
namespace duxet\Rethinkdb\Console\Model;
use Illuminate\Console\GeneratorCommand as LaravelMakeModelCommand;
use Symfony\Component\Console\Input\InputOption;
class ModelMakeCommand extends LaravelMakeModelCommand
{
/**
* The console command name.
*
* @var string
*/
protected $name =... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Console/Migrations/MigrateMakeCommand.php | src/Console/Migrations/MigrateMakeCommand.php | <?php
namespace duxet\Rethinkdb\Console\Migrations;
use duxet\Rethinkdb\Migrations\MigrationCreator;
use Illuminate\Database\Console\Migrations\MigrateMakeCommand as LaravelMigration;
use Illuminate\Support\Composer;
class MigrateMakeCommand extends LaravelMigration
{
/**
* The console command signature.
... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Migrations/MigrationCreator.php | src/Migrations/MigrationCreator.php | <?php
namespace duxet\Rethinkdb\Migrations;
use Illuminate\Database\Migrations\MigrationCreator as LaravelMigrationCreator;
class MigrationCreator extends LaravelMigrationCreator
{
/**
* Get the path to the stubs.
*
* @return string
*/
public function getStubPath()
{
return __... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/RQL/FilterBuilder.php | src/RQL/FilterBuilder.php | <?php
namespace duxet\Rethinkdb\RQL;
use r;
class FilterBuilder
{
public function __construct($document)
{
$this->document = $document;
}
public function compileWheres($wheres)
{
$chain = null;
foreach ($wheres as $i => &$where) {
$method = 'build'.$where['ty... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Eloquent/Builder.php | src/Eloquent/Builder.php | <?php
namespace duxet\Rethinkdb\Eloquent;
use Illuminate\Database\Eloquent\Builder as EloquentBuilder;
class Builder extends EloquentBuilder
{
}
| php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Eloquent/Model.php | src/Eloquent/Model.php | <?php
namespace duxet\Rethinkdb\Eloquent;
use Carbon\Carbon;
use DateTime;
use duxet\Rethinkdb\Eloquent\Relations\BelongsTo;
use duxet\Rethinkdb\Query\Builder as QueryBuilder;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\HasOne;
class Model extends \Illuminate\Databa... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/src/Eloquent/Relations/BelongsTo.php | src/Eloquent/Relations/BelongsTo.php | <?php
namespace duxet\Rethinkdb\Eloquent\Relations;
class BelongsTo extends \Illuminate\Database\Eloquent\Relations\BelongsTo
{
protected $otherKey = 'id';
/**
* Set the base constraints on the relation query.
*
* @return void
*/
public function addConstraints()
{
if (stati... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/RelationsTest.php | tests/RelationsTest.php | <?php
class RelationsTest extends TestCase
{
public function tearDown()
{
Book::truncate();
Item::truncate();
User::truncate();
Role::truncate();
}
public function testHasMany()
{
$author = User::create(['name' => 'George R. R. Martin']);
Book::creat... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/SchemaBuilderTest.php | tests/SchemaBuilderTest.php | <?php
class SchemaBuilderTest extends TestCase
{
public function tearDown()
{
if (Schema::hasTable('newtable')) {
Schema::drop('newtable');
}
}
public function testCreate()
{
Schema::create('newtable');
$this->assertTrue(Schema::hasTable('newtable'));
... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/ConnectionTest.php | tests/ConnectionTest.php | <?php
class ConnectionTest extends TestCase
{
public function testConnection()
{
$connection = DB::connection('rethinkdb');
$this->assertInstanceOf('duxet\Rethinkdb\Connection', $connection);
}
public function testReconnect()
{
$c1 = DB::connection('rethinkdb');
$c2... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/TestCase.php | tests/TestCase.php | <?php
class TestCase extends Orchestra\Testbench\TestCase
{
/**
* Get package providers.
*
* @param Illuminate\Foundation\Application $app
*
* @return array
*/
protected function getPackageProviders($app)
{
return [
'duxet\Rethinkdb\RethinkdbServiceProvider... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/QueryTest.php | tests/QueryTest.php | <?php
class QueryTest extends TestCase
{
public static function setUpBeforeClass()
{
User::create(['name' => 'John Doe', 'age' => 35, 'title' => 'admin']);
User::create(['name' => 'Jane Doe', 'age' => 33, 'title' => 'admin']);
User::create(['name' => 'Harry Hoe', 'age' => 13, 'title' =>... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/QueryBuilderTest.php | tests/QueryBuilderTest.php | <?php
class QueryBuilderTest extends TestCase
{
public function tearDown()
{
DB::table('users')->truncate();
DB::table('items')->truncate();
}
public function testTable()
{
$this->assertInstanceOf('duxet\Rethinkdb\Query\Builder', DB::table('users'));
}
public funct... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/ModelTest.php | tests/ModelTest.php | <?php
class ModelTest extends TestCase
{
public function testToArray()
{
$item = Item::create(['name' => 'fork', 'type' => 'sharp']);
$array = $item->toArray();
$keys = array_keys($array);
sort($keys);
$this->assertEquals(['created_at', 'id', 'name', 'type', 'updated_at'... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/bootstrap.php | tests/bootstrap.php | <?php
$loader = require 'vendor/autoload.php';
// Add stuff to autoload
$loader->add('', [__DIR__, 'tests/models', 'tests/seeds']);
| php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/models/Address.php | tests/models/Address.php | <?php
use \duxet\Rethinkdb\Eloquent\Model;
class Address extends Model
{
protected static $unguarded = true;
public function addresses()
{
return $this->embedsMany('Address');
}
}
| php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/models/Client.php | tests/models/Client.php | <?php
use \duxet\Rethinkdb\Eloquent\Model;
class Client extends Model
{
protected $table = 'clients';
protected static $unguarded = true;
public function users()
{
return $this->belongsToMany('User');
}
public function photo()
{
return $this->morphOne('Photo', 'imageable'... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/models/User.php | tests/models/User.php | <?php
use \duxet\Rethinkdb\Eloquent\Model;
class User extends Model
{
protected $dates = ['birthday', 'entry.date'];
protected static $unguarded = true;
protected $dateFormat = 'l jS \of F Y h:i:s A';
public function books()
{
return $this->hasMany('Book', 'author_id');
}
public ... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/models/Role.php | tests/models/Role.php | <?php
use \duxet\Rethinkdb\Eloquent\Model;
class Role extends Model
{
protected $table = 'roles';
protected static $unguarded = true;
public function user()
{
return $this->belongsTo('User');
}
}
| php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/models/Item.php | tests/models/Item.php | <?php
use \duxet\Rethinkdb\Eloquent\Model;
class Item extends Model
{
protected $table = 'items';
protected static $unguarded = true;
public function user()
{
return $this->belongsTo('User');
}
public function scopeSharp($query)
{
return $query->where('type', 'sharp');
... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/models/Book.php | tests/models/Book.php | <?php
use \duxet\Rethinkdb\Eloquent\Model;
class Book extends Model
{
protected $table = 'books';
protected static $unguarded = true;
protected $primaryKey = 'title';
public function author()
{
return $this->belongsTo('User', 'author_id');
}
}
| php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
duxet/laravel-rethinkdb | https://github.com/duxet/laravel-rethinkdb/blob/9b9b1dac7d7d3c9b1b372bab2565c6592616ff18/tests/config/database.php | tests/config/database.php | <?php
return [
'connections' => [
'rethinkdb' => [
'name' => 'rethinkdb',
'driver' => 'rethinkdb',
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', 28015),
'database' => env('DB_DATABASE', 'unittest'),
],
... | php | MIT | 9b9b1dac7d7d3c9b1b372bab2565c6592616ff18 | 2026-01-05T04:03:00.558209Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Gib.php | src/Gib.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura;
use Mlevent\Fatura\Enums\DocumentType;
use Mlevent\Fatura\Enums\ObjectionMethod;
use Mlevent\Fatura\Enums\Type;
use Mlevent\Fatura\Exceptions\ApiException;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
use Mlevent\Fatura\Exceptions\InvalidFormatExcep... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Client.php | src/Client.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura;
use Mlevent\Fatura\Exceptions\ApiException;
use Mlevent\Fatura\Exceptions\BadResponseException;
class Client
{
/**
* @var array response
*/
protected array $response = [];
/**
* @var array headers
*/
protected static $head... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Exceptions/InvalidFormatException.php | src/Exceptions/InvalidFormatException.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Exceptions;
class InvalidFormatException extends FaturaException {} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Exceptions/BadResponseException.php | src/Exceptions/BadResponseException.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Exceptions;
class BadResponseException extends FaturaException {} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Exceptions/ApiException.php | src/Exceptions/ApiException.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Exceptions;
class ApiException extends FaturaException {} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Exceptions/InvalidArgumentException.php | src/Exceptions/InvalidArgumentException.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Exceptions;
class InvalidArgumentException extends FaturaException {} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Exceptions/FaturaException.php | src/Exceptions/FaturaException.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Exceptions;
use Exception;
abstract class FaturaException extends Exception
{
/**
* @var array
*/
private $request;
/**
* @var array
*/
private $response;
public function __construct(
string $message = null... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Interfaces/ModelInterface.php | src/Interfaces/ModelInterface.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Interfaces;
interface ModelInterface
{
public function getUuid(): string;
public function getItems(): array;
public function getTaxes(): array;
public function getTotals(): array;
public function getPaymentTotal(): float;
public function... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Interfaces/ItemModelInterface.php | src/Interfaces/ItemModelInterface.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Interfaces;
interface ItemModelInterface
{
public function prepare(ModelInterface $parent): self;
public function getTotals(): array;
public function export(): array;
} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Utils/Helpers.php | src/Utils/Helpers.php | <?php
declare(strict_types=1);
use NumberToWords\NumberToWords;
if (!function_exists('create_uuid')) {
/**
* create_uuid
*
* @return string
*/
function create_uuid(): string
{
return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex(random_bytes(16)), 4));
}
}
if (!func... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Utils/FormatValidator.php | src/Utils/FormatValidator.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Utils;
class FormatValidator
{
protected const FormatValidationPatterns = [
'invoiceNumber' => '/^(GIB)[a-zA-Z0-9]{13}$/',
'gtipCode' => '/^[0-9]{12}$/',
'date' => '/(0[1-9]|1[0-9]|2[0-9]|3(0|1))\/(0[1-9]|1[0-2])\/\d{4}... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Traits/NewableTrait.php | src/Traits/NewableTrait.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Traits;
trait NewableTrait
{
/**
* new
*
* @param [type] ...$args
*/
public static function new(...$args)
{
return new (get_called_class())(...(isset($args[0]) ? $args[0] : $args));
}
} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Traits/TaxableTrait.php | src/Traits/TaxableTrait.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Traits;
use Mlevent\Fatura\Enums\Tax;
trait TaxableTrait
{
/**
* addTax
*
* @param Tax $tax
* @param integer $rate
* @param float $amount
* @return self
*/
abstract public function addTax(Tax $tax, int $rate,... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Traits/ImportableTrait.php | src/Traits/ImportableTrait.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Traits;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
trait ImportableTrait
{
/**
* @var boolean
*/
public static bool $isImported = false;
/**
* @var boolean
*/
public static bool $isImportedDirty = false;
... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Traits/EachableTrait.php | src/Traits/EachableTrait.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Traits;
trait EachableTrait
{
/**
* each
*
* @param callable $fn
* @return self
*/
public function each(callable $fn): self
{
array_walk($this, function($i, $k) use($fn){
$fn($i, $k, $this);
... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Traits/MapableTrait.php | src/Traits/MapableTrait.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Traits;
trait MapableTrait
{
abstract protected function keyMap(): array;
/**
* keyMapper
*
* @param array $data
* @param boolean $flip
* @return array
*/
protected function keyMapper(array $data, bool $flip = fals... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Traits/ArrayableTrait.php | src/Traits/ArrayableTrait.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Traits;
trait ArrayableTrait
{
/**
* toArray
*
* @return array
*/
public function toArray(): array
{
$return = new class {
function getPublicVars($object) {
return get_object_vars($object);
... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/Type.php | src/Enums/Type.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum Type: string
{
case eArsivFatura = '5000/30000';
case eArsivDiger = 'Buyuk';
/**
* alias
*
* @return string
*/
public function alias(): string
{
return match ($this) {
self::eArsivFatura ... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/DocumentType.php | src/Enums/DocumentType.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum DocumentType: string
{
case Invoice = 'FATURA';
case ProducerReceipt = 'MÜSTAHSİL MAKBUZU';
case SelfEmployedReceipt = 'SERBEST MESLEK MAKBUZU';
} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/Currency.php | src/Enums/Currency.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum Currency: string
{
case AFN = 'AFN';
case DZD = 'DZD';
case ARS = 'ARS';
case AWG = 'AWG';
case AUD = 'AUD';
case AZM = 'AZM';
case BSD = 'BSD';
case BHD = 'BHD';
case THB = 'THB';
case PAB = 'PAB';
case B... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/Unit.php | src/Enums/Unit.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum Unit: string
{
case Gun = 'DAY';
case Ay = 'MON';
case Yil = 'ANN';
case Saat = 'HUR';
case Dk = 'D61';
case Sn = 'D62';
case Adet = 'C62';
case Pk = 'PA';
case Kutu = 'BX';
case Mgm = 'MG... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/ObjectionMethod.php | src/Enums/ObjectionMethod.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum ObjectionMethod: string
{
case Noter = 'NOTER';
case TaahhutluMektup = 'TAAHHUTLU_MEKTUP';
case Telgraf = 'TELGRAF';
case Kep = 'KEP';
} | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/InvoiceType.php | src/Enums/InvoiceType.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum InvoiceType: string
{
case Satis = 'SATIS';
case Iade = 'IADE';
case Tevkifat = 'TEVKIFAT';
case Istisna = 'ISTISNA';
case OzelMatrah = 'OZELMATRAH';
case IhracKayitli = 'IHRA... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Enums/Tax.php | src/Enums/Tax.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Enums;
enum Tax: string
{
case BankaMuameleleri = '0021';
case KKDFKesintisi = '0061';
case OTV1Liste = '0071';
case OTV2Liste = '9077';
case OTV3Liste = '0073';
case OTV4Liste = '0074';
case ... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/InvoiceReturnItemModel.php | src/Models/InvoiceReturnItemModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Exceptions\InvalidFormatException;
use Mlevent\Fatura\Traits\ArrayableTrait;
use Mlevent\Fatura\Traits\NewableTrait;
use Mlevent\Fatura\Utils\FormatValidator;
class InvoiceReturnItemModel
{
use ArrayableTrait,
NewableTra... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/SelfEmployedReceiptItemModel.php | src/Models/SelfEmployedReceiptItemModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
use Mlevent\Fatura\Interfaces\ItemModelInterface;
use Mlevent\Fatura\Interfaces\ModelInterface;
use Mlevent\Fatura\Traits\ArrayableTrait;
use Mlevent\Fatura\Traits\ImportableTrait;
use Mlevent\Fatu... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/InvoiceModel.php | src/Models/InvoiceModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Enums\Currency;
use Mlevent\Fatura\Enums\InvoiceType;
use Mlevent\Fatura\Enums\Type;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
class InvoiceModel extends AbstractModel
{
public function __construct(
public s... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/UserDataModel.php | src/Models/UserDataModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Traits\ArrayableTrait;
use Mlevent\Fatura\Traits\ImportableTrait;
use Mlevent\Fatura\Traits\MapableTrait;
use Mlevent\Fatura\Traits\NewableTrait;
class UserDataModel
{
use ArrayableTrait,
ImportableTrait,
MapableT... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/ProducerReceiptModel.php | src/Models/ProducerReceiptModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Exceptions\InvalidFormatException;
use Mlevent\Fatura\Utils\FormatValidator;
class ProducerReceiptModel extends AbstractModel
{
public function __construct(
public string $vknTckn,
public string $aliciAdi,
... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/InvoiceItemModel.php | src/Models/InvoiceItemModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Enums\InvoiceType;
use Mlevent\Fatura\Enums\Tax;
use Mlevent\Fatura\Enums\Unit;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
use Mlevent\Fatura\Exceptions\InvalidFormatException;
use Mlevent\Fatura\Interfaces\ItemModelInter... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/ProducerReceiptItemModel.php | src/Models/ProducerReceiptItemModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Enums\Tax;
use Mlevent\Fatura\Enums\Unit;
use Mlevent\Fatura\Interfaces\ItemModelInterface;
use Mlevent\Fatura\Interfaces\ModelInterface;
use Mlevent\Fatura\Traits\ArrayableTrait;
use Mlevent\Fatura\Traits\ImportableTrait;
use Mlevent... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/SelfEmployedReceiptModel.php | src/Models/SelfEmployedReceiptModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Enums\Currency;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
class SelfEmployedReceiptModel extends AbstractModel
{
public function __construct(
public string $vknTckn,
public string $uuid ... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/src/Models/AbstractModel.php | src/Models/AbstractModel.php | <?php
declare(strict_types=1);
namespace Mlevent\Fatura\Models;
use Mlevent\Fatura\Exceptions\InvalidArgumentException;
use Mlevent\Fatura\Exceptions\InvalidFormatException;
use Mlevent\Fatura\Interfaces\ItemModelInterface;
use Mlevent\Fatura\Interfaces\ModelInterface;
use Mlevent\Fatura\Traits\ArrayableTrait;
use M... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/tests/ServiceTest.php | tests/ServiceTest.php | <?php
use Mlevent\Fatura\Enums\Unit;
use Mlevent\Fatura\Gib;
use Mlevent\Fatura\Models\InvoiceItemModel;
use Mlevent\Fatura\Models\InvoiceModel;
use Mlevent\Fatura\Models\UserDataModel;
use PHPUnit\Framework\TestCase;
class ServiceTest extends TestCase
{
public function testService()
{
$service = new ... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/tests/ModelTest.php | tests/ModelTest.php | <?php
use Mlevent\Fatura\Enums\Tax;
use Mlevent\Fatura\Enums\Unit;
use Mlevent\Fatura\Models\InvoiceItemModel;
use Mlevent\Fatura\Models\InvoiceModel;
use Mlevent\Fatura\Models\ProducerReceiptItemModel;
use Mlevent\Fatura\Models\ProducerReceiptModel;
use PHPUnit\Framework\TestCase;
class ModelTest extends TestCase
{
... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
mlevent/fatura | https://github.com/mlevent/fatura/blob/027c9ae7bb399524001abe12d4088fc686a723ba/examples/getDocuments.php | examples/getDocuments.php | <?php declare(strict_types=1); error_reporting(E_ALL); require dirname(__DIR__).'/vendor/autoload.php';
use Mlevent\Fatura\Exceptions\FaturaException;
use Mlevent\Fatura\Gib;
try {
$gib = (new Gib())->setTestCredentials('33333310', '1')
->login();
$documents = $gib//->onlyUnsigned() ... | php | MIT | 027c9ae7bb399524001abe12d4088fc686a723ba | 2026-01-05T04:03:10.468308Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.