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 |
|---|---|---|---|---|---|---|---|---|
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Exceptions/InvalidFormatExceptionTest.php | tests/Carbon/Exceptions/InvalidFormatExceptionTest.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Exceptions;
use Carbon\Exceptions\InvalidFormatException;
use T... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Exceptions/InvalidIntervalExceptionTest.php | tests/Carbon/Exceptions/InvalidIntervalExceptionTest.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Exceptions;
use Carbon\Exceptions\InvalidIntervalException;
use... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Exceptions/NotACarbonClassExceptionTest.php | tests/Carbon/Exceptions/NotACarbonClassExceptionTest.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Exceptions;
use Carbon\Exceptions\NotACarbonClassException;
use... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Exceptions/BadFluentConstructorExceptionTest.php | tests/Carbon/Exceptions/BadFluentConstructorExceptionTest.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Exceptions;
use Carbon\Exceptions\BadFluentConstructorException... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Fixtures/FooBar.php | tests/Carbon/Fixtures/FooBar.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Fixtures;
trait FooBar
{
public function super($string)
... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Fixtures/NoLocaleTranslator.php | tests/Carbon/Fixtures/NoLocaleTranslator.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Fixtures;
use Carbon\Exceptions\NotLo... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Fixtures/DumpCarbon.php | tests/Carbon/Fixtures/DumpCarbon.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Fixtures;
use Carbon\Carbon;
use Exce... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Fixtures/MyCarbon.php | tests/Carbon/Fixtures/MyCarbon.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Fixtures;
use Carbon\Carbon;
class M... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Fixtures/BadIsoCarbon.php | tests/Carbon/Fixtures/BadIsoCarbon.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Fixtures;
use Carbon\Carbon;
class B... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Carbon/Fixtures/Mixin.php | tests/Carbon/Fixtures/Mixin.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Carbon\Fixtures;
use Carbon\CarbonInterface;... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Language/LanguageTest.php | tests/Language/LanguageTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Language;
use Carbon\Language;
use Tests\Abs... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Language/TranslatorTest.php | tests/Language/TranslatorTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Language;
use Carbon\AbstractTranslator;
use... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/PHPStan/FeaturesTest.php | tests/PHPStan/FeaturesTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\PHPStan;
use PHPUnit\Framework\Attributes\La... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/PHPStan/bootstrap-non-static.php | tests/PHPStan/bootstrap-non-static.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Carbon\Carbon;
Carbon::macro('foo', function ($someArg): string {
return 'foo'... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/PHPStan/MixinClass.php | tests/PHPStan/MixinClass.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\PHPStan;
class MixinClass
{
// Declaring... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/PHPStan/MacroExtensionTest.php | tests/PHPStan/MacroExtensionTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\PHPStan;
use Carbon\Carbon;
use Carbon\Carbo... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/PHPStan/bootstrap.php | tests/PHPStan/bootstrap.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Carbon\Carbon;
Carbon::macro('foo', static function ($someArg): string {
retur... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/PHPStan/Fixture.php | tests/PHPStan/Fixture.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\PHPStan;
use Carbon\Carbon;
class Fixture
{... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Cli/InvokerTest.php | tests/Cli/InvokerTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Cli;
use Carbon\Cli;
use Carbon\Cli\Invoker;... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Cli/Cli.php | tests/Cli/Cli.php | <?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Carbon;
class Cli
{
public static $lastParameters = [];
public func... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/Translator.php | tests/Laravel/Translator.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Illuminate\Translation;
class Translator extends \... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/App.php | tests/Laravel/App.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Laravel;
use ArrayAccess;
use Symfony\Compon... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/Dispatcher.php | tests/Laravel/Dispatcher.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Illuminate\Events;
use Tests\Laravel\EventDispatch... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/EventDispatcher.php | tests/Laravel/EventDispatcher.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Illuminate\Events;
use Tests\Laravel\EventDispatch... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/ServiceProvider.php | tests/Laravel/ServiceProvider.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Illuminate\Support;
use Illuminate\Events\EventDis... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/ServiceProviderTest.php | tests/Laravel/ServiceProviderTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Laravel;
use Carbon\Carbon;
use Carbon\Carbo... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Laravel/EventDispatcherBase.php | tests/Laravel/EventDispatcherBase.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Laravel;
class EventDispatcherBase
{
/**... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Factory/WrapperClockTest.php | tests/Factory/WrapperClockTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Factory;
use Carbon\Carbon;
use Carbon\Carbo... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Factory/FactoryTest.php | tests/Factory/FactoryTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Factory;
use Carbon\Carbon;
use Carbon\Carbo... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
briannesbitt/Carbon | https://github.com/briannesbitt/Carbon/blob/6e037cd6239a150d74a54c62e300b269e88a89e3/tests/Factory/CallbackTest.php | tests/Factory/CallbackTest.php | <?php
declare(strict_types=1);
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tests\Factory;
use Carbon\Callback;
use Carbon\Car... | php | MIT | 6e037cd6239a150d74a54c62e300b269e88a89e3 | 2026-01-04T15:02:34.459238Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/EmailLexer.php | src/EmailLexer.php | <?php
namespace Egulias\EmailValidator;
use Doctrine\Common\Lexer\AbstractLexer;
use Doctrine\Common\Lexer\Token;
/** @extends AbstractLexer<int, string> */
class EmailLexer extends AbstractLexer
{
//ASCII values
public const S_EMPTY = -1;
public const C_NUL = 0;
public const ... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/EmailParser.php | src/EmailParser.php | <?php
namespace Egulias\EmailValidator;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Parser\LocalPart;
use Egulias\EmailValidator\Parser\DomainPart;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\EmailTooLong;
us... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/MessageIDParser.php | src/MessageIDParser.php | <?php
namespace Egulias\EmailValidator;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Parser\IDLeftPart;
use Egulias\EmailValidator\Parser\IDRightPart;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\EmailTooLong;
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/EmailValidator.php | src/EmailValidator.php | <?php
namespace Egulias\EmailValidator;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Validation\EmailValidation;
class EmailValidator
{
/**
* @var EmailLexer
*/
private $lexer;
/**
* @var Warning\Warning[]
*/
private $warnings = [];
/**
* @... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser.php | src/Parser.php | <?php
namespace Egulias\EmailValidator;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ExpectingATEXT;
abstract class Parser
{
/**
* @var Warning\Warning[]
*/
protected ... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/EmailTooLong.php | src/Warning/EmailTooLong.php | <?php
namespace Egulias\EmailValidator\Warning;
use Egulias\EmailValidator\EmailParser;
class EmailTooLong extends Warning
{
public const CODE = 66;
public function __construct()
{
$this->message = 'Email is too long, exceeds ' . EmailParser::EMAIL_MAX_LENGTH;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/NoDNSMXRecord.php | src/Warning/NoDNSMXRecord.php | <?php
namespace Egulias\EmailValidator\Warning;
class NoDNSMXRecord extends Warning
{
public const CODE = 6;
public function __construct()
{
$this->message = 'No MX DSN record was found for this email';
$this->rfcNumber = 5321;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6Deprecated.php | src/Warning/IPV6Deprecated.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6Deprecated extends Warning
{
public const CODE = 13;
public function __construct()
{
$this->message = 'Deprecated form of IPV6';
$this->rfcNumber = 5321;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/TLD.php | src/Warning/TLD.php | <?php
namespace Egulias\EmailValidator\Warning;
class TLD extends Warning
{
public const CODE = 9;
public function __construct()
{
$this->message = "RFC5321, TLD";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/DomainLiteral.php | src/Warning/DomainLiteral.php | <?php
namespace Egulias\EmailValidator\Warning;
class DomainLiteral extends Warning
{
public const CODE = 70;
public function __construct()
{
$this->message = 'Domain Literal';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/CFWSWithFWS.php | src/Warning/CFWSWithFWS.php | <?php
namespace Egulias\EmailValidator\Warning;
class CFWSWithFWS extends Warning
{
public const CODE = 18;
public function __construct()
{
$this->message = 'Folding whites space followed by folding white space';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/ObsoleteDTEXT.php | src/Warning/ObsoleteDTEXT.php | <?php
namespace Egulias\EmailValidator\Warning;
class ObsoleteDTEXT extends Warning
{
public const CODE = 71;
public function __construct()
{
$this->rfcNumber = 5322;
$this->message = 'Obsolete DTEXT in domain literal';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/CFWSNearAt.php | src/Warning/CFWSNearAt.php | <?php
namespace Egulias\EmailValidator\Warning;
class CFWSNearAt extends Warning
{
public const CODE = 49;
public function __construct()
{
$this->message = "Deprecated folding white space near @";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6ColonStart.php | src/Warning/IPV6ColonStart.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6ColonStart extends Warning
{
public const CODE = 76;
public function __construct()
{
$this->message = ':: found at the start of the domain literal';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/QuotedPart.php | src/Warning/QuotedPart.php | <?php
namespace Egulias\EmailValidator\Warning;
use UnitEnum;
class QuotedPart extends Warning
{
public const CODE = 36;
/**
* @param UnitEnum|string|int|null $prevToken
* @param UnitEnum|string|int|null $postToken
*/
public function __construct($prevToken, $postToken)
{
if ($... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6DoubleColon.php | src/Warning/IPV6DoubleColon.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6DoubleColon extends Warning
{
public const CODE = 73;
public function __construct()
{
$this->message = 'Double colon found after IPV6 tag';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/Comment.php | src/Warning/Comment.php | <?php
namespace Egulias\EmailValidator\Warning;
class Comment extends Warning
{
public const CODE = 17;
public function __construct()
{
$this->message = "Comments found in this email";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/DeprecatedComment.php | src/Warning/DeprecatedComment.php | <?php
namespace Egulias\EmailValidator\Warning;
class DeprecatedComment extends Warning
{
public const CODE = 37;
public function __construct()
{
$this->message = 'Deprecated comments';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6GroupCount.php | src/Warning/IPV6GroupCount.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6GroupCount extends Warning
{
public const CODE = 72;
public function __construct()
{
$this->message = 'Group count is not IPV6 valid';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6MaxGroups.php | src/Warning/IPV6MaxGroups.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6MaxGroups extends Warning
{
public const CODE = 75;
public function __construct()
{
$this->message = 'Reached the maximum number of IPV6 groups allowed';
$this->rfcNumber = 5321;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/Warning.php | src/Warning/Warning.php | <?php
namespace Egulias\EmailValidator\Warning;
abstract class Warning
{
/**
* @var int CODE
*/
public const CODE = 0;
/**
* @var string
*/
protected $message = '';
/**
* @var int
*/
protected $rfcNumber = 0;
/**
* @return string
*/
public fun... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/QuotedString.php | src/Warning/QuotedString.php | <?php
namespace Egulias\EmailValidator\Warning;
class QuotedString extends Warning
{
public const CODE = 11;
/**
* @param string|int $prevToken
* @param string|int $postToken
*/
public function __construct($prevToken, $postToken)
{
$this->message = "Quoted String found between ... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/LocalTooLong.php | src/Warning/LocalTooLong.php | <?php
namespace Egulias\EmailValidator\Warning;
class LocalTooLong extends Warning
{
public const CODE = 64;
public const LOCAL_PART_LENGTH = 64;
public function __construct()
{
$this->message = 'Local part is too long, exceeds 64 chars (octets)';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6ColonEnd.php | src/Warning/IPV6ColonEnd.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6ColonEnd extends Warning
{
public const CODE = 77;
public function __construct()
{
$this->message = ':: found at the end of the domain literal';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/AddressLiteral.php | src/Warning/AddressLiteral.php | <?php
namespace Egulias\EmailValidator\Warning;
class AddressLiteral extends Warning
{
public const CODE = 12;
public function __construct()
{
$this->message = 'Address literal in domain part';
$this->rfcNumber = 5321;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Warning/IPV6BadChar.php | src/Warning/IPV6BadChar.php | <?php
namespace Egulias\EmailValidator\Warning;
class IPV6BadChar extends Warning
{
public const CODE = 74;
public function __construct()
{
$this->message = 'Bad char in IPV6 domain literal';
$this->rfcNumber = 5322;
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/LocalPart.php | src/Parser/LocalPart.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\LocalTooLong;
use Egulias\EmailValidator\Result\Reason\DotAtE... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/FoldingWhiteSpace.php | src/Parser/FoldingWhiteSpace.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Warning\CFWSNearAt;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\CFWSWithFWS;
use Egulias\EmailValidator\Result\Reason\CRNoLF;
use Egulias\EmailValidator\Result\Reason... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/DoubleQuote.php | src/Parser/DoubleQuote.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\CFWSWithFWS;
use Egulias\EmailValidator\Warning\QuotedString;
use Egulias\EmailValidator\Result\Reason\... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/DomainLiteral.php | src/Parser/DomainLiteral.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\CFWSWithFWS;
use Egulias\EmailValidator\Warning\IPV6BadChar;
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/IDRightPart.php | src/Parser/IDRightPart.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ExpectingATEXT;
class IDRightPart extends DomainPart
{... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/Comment.php | src/Parser/Comment.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Warning\QuotedPart;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Parser\CommentStrategy\CommentStrategy;
use Egulias\EmailValidator\R... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/DomainPart.php | src/Parser/DomainPart.php | <?php
namespace Egulias\EmailValidator\Parser;
use Doctrine\Common\Lexer\Token;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Warning\TLD;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValida... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/IDLeftPart.php | src/Parser/IDLeftPart.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\CommentsInIDRight;
class IDLeftPart extends LocalPart
{
protected function parseComments(): Result
{
return new InvalidEmai... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/PartParser.php | src/Parser/PartParser.php | <?php
namespace Egulias\EmailValidator\Parser;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ConsecutiveDot;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Warning\Warn... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/CommentStrategy/DomainComment.php | src/Parser/CommentStrategy/DomainComment.php | <?php
namespace Egulias\EmailValidator\Parser\CommentStrategy;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ExpectingATEXT;
class DomainComment im... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/CommentStrategy/LocalComment.php | src/Parser/CommentStrategy/LocalComment.php | <?php
namespace Egulias\EmailValidator\Parser\CommentStrategy;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Result\ValidEmail;
use Egulias\EmailValidator\Warning\CFWSNearAt;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Parser/CommentStrategy/CommentStrategy.php | src/Parser/CommentStrategy/CommentStrategy.php | <?php
namespace Egulias\EmailValidator\Parser\CommentStrategy;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\Result;
use Egulias\EmailValidator\Warning\Warning;
interface CommentStrategy
{
/**
* Return "true" to continue, "false" to exit
*/
public function exitCondition(E... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/MultipleValidationWithAnd.php | src/Validation/MultipleValidationWithAnd.php | <?php
namespace Egulias\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Validation\Exception\EmptyValidationList;
use Egulias\EmailValidator\Result\MultipleErrors;
use Egulias\EmailValidator\Warning\Warning;
class MultipleVa... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/DNSRecords.php | src/Validation/DNSRecords.php | <?php
namespace Egulias\EmailValidator\Validation;
class DNSRecords
{
/**
* @param list<array<array-key, mixed>> $records
* @param bool $error
*/
public function __construct(private readonly array $records, private readonly bool $error = false)
{
}
/**
* @return list<array<arr... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/DNSGetRecordWrapper.php | src/Validation/DNSGetRecordWrapper.php | <?php
namespace Egulias\EmailValidator\Validation;
class DNSGetRecordWrapper
{
/**
* @param string $host
* @param int $type
*
* @return DNSRecords
*/
public function getRecords(string $host, int $type): DNSRecords
{
// A workaround to fix https://bugs.php.net/bug.php?id=73... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/RFCValidation.php | src/Validation/RFCValidation.php | <?php
namespace Egulias\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\EmailParser;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ExceptionFound;
use Egulias\EmailValidator\Warning\Warning;
class RFCValidation implements EmailVa... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/NoRFCWarningsValidation.php | src/Validation/NoRFCWarningsValidation.php | <?php
namespace Egulias\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\RFCWarnings;
class NoRFCWarningsValidation extends RFCValidation
{
/**
* @var InvalidEmail|null
*/
private $error;
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/MessageIDValidation.php | src/Validation/MessageIDValidation.php | <?php
namespace Egulias\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\MessageIDParser;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\ExceptionFound;
use Egulias\EmailValidator\Warning\Warning;
class MessageIDValidation implemen... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/DNSCheckValidation.php | src/Validation/DNSCheckValidation.php | <?php
namespace Egulias\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Result\Reason\DomainAcceptsNoMail;
use Egulias\EmailValidator\Result\Reason\LocalOrReservedDomain;
use Egulias\EmailValidator\Result\Reason\NoDNSRecord a... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/EmailValidation.php | src/Validation/EmailValidation.php | <?php
namespace Egulias\EmailValidator\Validation;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Warning\Warning;
interface EmailValidation
{
/**
* Returns true if the given email is valid.
*
* @param string $email The em... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/Extra/SpoofCheckValidation.php | src/Validation/Extra/SpoofCheckValidation.php | <?php
namespace Egulias\EmailValidator\Validation\Extra;
use \Spoofchecker;
use Egulias\EmailValidator\EmailLexer;
use Egulias\EmailValidator\Result\SpoofEmail;
use Egulias\EmailValidator\Result\InvalidEmail;
use Egulias\EmailValidator\Validation\EmailValidation;
class SpoofCheckValidation implements EmailValidation... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Validation/Exception/EmptyValidationList.php | src/Validation/Exception/EmptyValidationList.php | <?php
namespace Egulias\EmailValidator\Validation\Exception;
use Exception;
class EmptyValidationList extends \InvalidArgumentException
{
/**
* @param int $code
*/
public function __construct($code = 0, ?Exception $previous = null)
{
parent::__construct("Empty validation list is not allow... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Result.php | src/Result/Result.php | <?php
namespace Egulias\EmailValidator\Result;
interface Result
{
/**
* Is validation result valid?
*
*/
public function isValid(): bool;
/**
* Is validation result invalid?
* Usually the inverse of isValid()
*
*/
public function isInvalid(): bool;
/**
*... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/InvalidEmail.php | src/Result/InvalidEmail.php | <?php
namespace Egulias\EmailValidator\Result;
use Egulias\EmailValidator\Result\Reason\Reason;
class InvalidEmail implements Result
{
/**
* @var string
*/
private string $token;
/**
* @var Reason
*/
protected Reason $reason;
public function __construct(Reason $reason, strin... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/ValidEmail.php | src/Result/ValidEmail.php | <?php
namespace Egulias\EmailValidator\Result;
class ValidEmail implements Result
{
public function isValid(): bool
{
return true;
}
public function isInvalid(): bool
{
return false;
}
public function description(): string
{
return "Valid email";
}
pu... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/MultipleErrors.php | src/Result/MultipleErrors.php | <?php
namespace Egulias\EmailValidator\Result;
use Egulias\EmailValidator\Result\Reason\EmptyReason;
use Egulias\EmailValidator\Result\Reason\Reason;
/**
* @psalm-suppress PropertyNotSetInConstructor
*/
class MultipleErrors extends InvalidEmail
{
/**
* @var Reason[]
*/
private $reasons = [];
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/SpoofEmail.php | src/Result/SpoofEmail.php | <?php
namespace Egulias\EmailValidator\Result;
use Egulias\EmailValidator\Result\Reason\SpoofEmail as ReasonSpoofEmail;
class SpoofEmail extends InvalidEmail
{
public function __construct()
{
$this->reason = new ReasonSpoofEmail();
parent::__construct($this->reason, '');
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/NoDNSRecord.php | src/Result/Reason/NoDNSRecord.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class NoDNSRecord implements Reason
{
public function code() : int
{
return 5;
}
public function description() : string
{
return 'No MX or A DNS record was found for this email';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/UnclosedComment.php | src/Result/Reason/UnclosedComment.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class UnclosedComment implements Reason
{
public function code() : int
{
return 146;
}
public function description(): string
{
return 'No closing comment token found';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/DomainHyphened.php | src/Result/Reason/DomainHyphened.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class DomainHyphened extends DetailedReason
{
public function code() : int
{
return 144;
}
public function description() : string
{
return 'S_HYPHEN found in domain';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/CRLFAtTheEnd.php | src/Result/Reason/CRLFAtTheEnd.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class CRLFAtTheEnd implements Reason
{
public const CODE = 149;
public const REASON = "CRLF at the end";
public function code() : int
{
return 149;
}
public function description() : string
{
return 'CRLF at the end';
... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/DotAtEnd.php | src/Result/Reason/DotAtEnd.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class DotAtEnd implements Reason
{
public function code() : int
{
return 142;
}
public function description() : string
{
return 'Dot at the end';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/AtextAfterCFWS.php | src/Result/Reason/AtextAfterCFWS.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class AtextAfterCFWS implements Reason
{
public function code() : int
{
return 133;
}
public function description() : string
{
return 'ATEXT found after CFWS';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/CRLFX2.php | src/Result/Reason/CRLFX2.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class CRLFX2 implements Reason
{
public function code() : int
{
return 148;
}
public function description() : string
{
return 'CR LF tokens found twice';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ExpectingDTEXT.php | src/Result/Reason/ExpectingDTEXT.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ExpectingDTEXT implements Reason
{
public function code() : int
{
return 129;
}
public function description() : string
{
return 'Expecting DTEXT';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ConsecutiveAt.php | src/Result/Reason/ConsecutiveAt.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ConsecutiveAt implements Reason
{
public function code() : int
{
return 128;
}
public function description() : string
{
return '@ found after another @';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/RFCWarnings.php | src/Result/Reason/RFCWarnings.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class RFCWarnings implements Reason
{
public function code() : int
{
return 997;
}
public function description() : string
{
return 'Warnings found after validating';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/DomainTooLong.php | src/Result/Reason/DomainTooLong.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class DomainTooLong implements Reason
{
public function code() : int
{
return 244;
}
public function description() : string
{
return 'Domain is longer than 253 characters';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/CharNotAllowed.php | src/Result/Reason/CharNotAllowed.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class CharNotAllowed implements Reason
{
public function code() : int
{
return 1;
}
public function description() : string
{
return "Character not allowed";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ExpectingATEXT.php | src/Result/Reason/ExpectingATEXT.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ExpectingATEXT extends DetailedReason
{
public function code() : int
{
return 137;
}
public function description() : string
{
return "Expecting ATEXT (Printable US-ASCII). Extended: " . $this->detailedDescription;
}
}... | php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/NoDomainPart.php | src/Result/Reason/NoDomainPart.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class NoDomainPart implements Reason
{
public function code() : int
{
return 131;
}
public function description() : string
{
return 'No domain part found';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/ConsecutiveDot.php | src/Result/Reason/ConsecutiveDot.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class ConsecutiveDot implements Reason
{
public function code() : int
{
return 132;
}
public function description() : string
{
return 'Concecutive DOT found';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/NoLocalPart.php | src/Result/Reason/NoLocalPart.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class NoLocalPart implements Reason
{
public function code() : int
{
return 130;
}
public function description() : string
{
return "No local part";
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
egulias/EmailValidator | https://github.com/egulias/EmailValidator/blob/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa/src/Result/Reason/EmptyReason.php | src/Result/Reason/EmptyReason.php | <?php
namespace Egulias\EmailValidator\Result\Reason;
class EmptyReason implements Reason
{
public function code() : int
{
return 0;
}
public function description() : string
{
return 'Empty reason';
}
}
| php | MIT | d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa | 2026-01-04T15:04:04.519584Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.