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 |
|---|---|---|---|---|---|---|---|---|
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/TracerTest.php | tests/Jaeger/TracerTest.php | <?php
namespace Jaeger\Tests;
use Jaeger\Reporter\ReporterInterface;
use Jaeger\Sampler\SamplerInterface;
use Jaeger\Scope;
use Jaeger\ScopeManager;
use Jaeger\Span;
use Jaeger\SpanContext;
use Jaeger\Tracer;
use OpenTracing\Exceptions\UnsupportedFormat;
use OpenTracing\NoopSpanContext;
use OpenTracing\UnsupportedFor... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/ScopeTest.php | tests/Jaeger/ScopeTest.php | <?php
namespace Jaeger\Tests;
use Jaeger\Scope;
use Jaeger\ScopeManager;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
class ScopeTest extends TestCase
{
/**
* @var ScopeManager|\PHPUnit\Framework\MockObject\MockObject
*/
private $scopeManager;
/**
* @var Span|\PHPUnit\Framework\MockOb... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/SpanTest.php | tests/Jaeger/SpanTest.php | <?php
namespace Jaeger\Tests;
use Jaeger\Reporter\NullReporter;
use Jaeger\Sampler\ConstSampler;
use Jaeger\Span;
use Jaeger\SpanContext;
use Jaeger\Thrift\Agent\Zipkin\AnnotationType;
use Jaeger\Tracer;
use PHPUnit\Framework\TestCase;
use const Jaeger\SAMPLED_FLAG;
class SpanTest extends TestCase
{
/**
* @... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/ThriftUdpTransportTest.php | tests/Jaeger/ThriftUdpTransportTest.php | <?php
namespace Jaeger\Tests;
use Jaeger\Config;
use Jaeger\Tests\Logger\StackLogger;
use Jaeger\ThriftUdpTransport;
use Jaeger\Tracer;
use PHPUnit\Framework\TestCase;
use Thrift\Exception\TTransportException;
class ThriftUdpTransportTest extends TestCase
{
/**
* @var ThriftUdpTransport
*/
private ... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/ConfigTest.php | tests/Jaeger/ConfigTest.php | <?php
namespace Jaeger\Tests;
use Exception;
use Jaeger\Config;
use Jaeger\Reporter\ReporterInterface;
use Jaeger\Sampler\SamplerInterface;
use Jaeger\Tracer;
use OpenTracing\GlobalTracer;
use PHPUnit\Framework\TestCase;
use const Jaeger\SAMPLER_TYPE_CONST;
class ConfigTest extends TestCase
{
/**
* @var Con... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Logger/StackLogger.php | tests/Jaeger/Logger/StackLogger.php | <?php
namespace Jaeger\Tests\Logger;
use Psr\Log\LoggerTrait;
class StackLogger implements \Psr\Log\LoggerInterface
{
/** @var array */
protected $messagesStack = [];
use LoggerTrait;
public function log($level, $message, array $context = array()): void
{
$this->messagesStack[] = $messa... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Sender/JaegerThriftSenderTest.php | tests/Jaeger/Sender/JaegerThriftSenderTest.php | <?php
namespace Jaeger\Tests\Sender;
use Jaeger\Sender\JaegerSender;
use Jaeger\Sender\UdpSender;
use Jaeger\Span;
use Jaeger\SpanContext;
use Jaeger\Thrift\Agent\AgentClient;
use Jaeger\Thrift\Batch;
use Jaeger\Tracer;
use PHPUnit\Framework\TestCase;
class JaegerThriftSenderTest extends TestCase
{
/** @var Tra... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Sender/UdpSenderTest.php | tests/Jaeger/Sender/UdpSenderTest.php | <?php
namespace Jaeger\Tests\Sender;
use Jaeger\Sender\UdpSender;
use Jaeger\Span;
use Jaeger\SpanContext;
use Jaeger\Thrift\Agent\AgentClient;
use Jaeger\Thrift\Agent\Zipkin\Annotation as ZipkinAnnotation;
use Jaeger\Thrift\Agent\Zipkin\Span as ZipkinSpan;
use Jaeger\Tracer;
use PHPUnit\Framework\TestCase;
class Ud... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Sampler/ConstSamplerTest.php | tests/Jaeger/Sampler/ConstSamplerTest.php | <?php
namespace Jaeger\Tests\Sampler;
use Jaeger\Sampler\ConstSampler;
use PHPUnit\Framework\TestCase;
use const Jaeger\SAMPLER_PARAM_TAG_KEY;
use const Jaeger\SAMPLER_TYPE_CONST;
use const Jaeger\SAMPLER_TYPE_TAG_KEY;
class ConstSamplerTest extends TestCase
{
/**
* @test
* @dataProvider samplerProvide... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Sampler/ProbablisticSamplerTest.php | tests/Jaeger/Sampler/ProbablisticSamplerTest.php | <?php
namespace Jaeger\Tests\Sampler;
use Jaeger\Sampler\ProbabilisticSampler;
use OutOfBoundsException;
use PHPUnit\Framework\TestCase;
use const Jaeger\SAMPLER_PARAM_TAG_KEY;
use const Jaeger\SAMPLER_TYPE_PROBABILISTIC;
use const Jaeger\SAMPLER_TYPE_TAG_KEY;
class ProbablisticSamplerTest extends TestCase
{
/**... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Sampler/RateLimitSamplerTest.php | tests/Jaeger/Sampler/RateLimitSamplerTest.php | <?php
namespace Jaeger\Tests\Sampler;
use Cache\Adapter\PHPArray\ArrayCachePool;
use Jaeger\Sampler\RateLimitingSampler;
use Jaeger\Util\RateLimiter;
use PHPUnit\Framework\TestCase;
use const Jaeger\SAMPLER_PARAM_TAG_KEY;
use const Jaeger\SAMPLER_TYPE_RATE_LIMITING;
use const Jaeger\SAMPLER_TYPE_TAG_KEY;
class RateL... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Reporter/LoggingReporterTest.php | tests/Jaeger/Reporter/LoggingReporterTest.php | <?php
namespace Jaeger\Tests\Reporter;
use Jaeger\Reporter\LoggingReporter;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
use Psr\Log\NullLogger;
class LoggingReporterTest extends TestCase
{
/** @test */
public function shouldReportSpan()
{
/**
* @var NullLogger|\PHPUnit\Framework\Moc... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Reporter/InMemoryReporterTest.php | tests/Jaeger/Reporter/InMemoryReporterTest.php | <?php
namespace Jaeger\Tests\Reporter;
use Jaeger\Reporter\InMemoryReporter;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
class InMemoryReporterTest extends TestCase
{
/** @test */
public function shouldReportSpan()
{
/** @var \Jaeger\Span|\PHPUnit\Framework\MockObject\MockObject $span */
... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Reporter/CompositeReporterTest.php | tests/Jaeger/Reporter/CompositeReporterTest.php | <?php
namespace Jaeger\Tests\Reporter;
use Jaeger\Reporter\CompositeReporter;
use Jaeger\Reporter\ReporterInterface;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
class CompositeReporterTest extends TestCase
{
/** @var CompositeReporter */
private $reporter;
/** @var ReporterInterface|\PHPUnit\Framew... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Reporter/RemoteReporterTest.php | tests/Jaeger/Reporter/RemoteReporterTest.php | <?php
namespace Jaeger\Tests\Reporter;
use Jaeger\Reporter\RemoteReporter;
use Jaeger\Sender\UdpSender;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
class RemoteReporterTest extends TestCase
{
/** @var RemoteReporter */
private $reporter;
/** @var UdpSender|\PHPUnit\Framework\MockObject\MockObject *... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Reporter/NullReporterTest.php | tests/Jaeger/Reporter/NullReporterTest.php | <?php
namespace Jaeger\Tests\Reporter;
use Jaeger\Reporter\NullReporter;
use Jaeger\Span;
use PHPUnit\Framework\TestCase;
class NullReporterTest extends TestCase
{
/**
* Nothing to test because NullReporter doing nothing.
*
* @test
*/
public function shouldReportSpan()
{
/** @... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Codec/ZipkinCodecTest.php | tests/Jaeger/Codec/ZipkinCodecTest.php | <?php
namespace Jaeger\Tests\Codec;
use Jaeger\Codec\ZipkinCodec;
use Jaeger\SpanContext;
use PHPUnit\Framework\TestCase;
use const Jaeger\DEBUG_FLAG;
use const Jaeger\SAMPLED_FLAG;
class ZipkinCodecTest extends TestCase
{
/** @var ZipkinCodec */
private $codec;
function setUp(): void
{
$thi... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Codec/TextCodecTest.php | tests/Jaeger/Codec/TextCodecTest.php | <?php
namespace Jaeger\Tests\Codec;
use Exception;
use const Jaeger\BAGGAGE_HEADER_PREFIX;
use Jaeger\Codec\TextCodec;
use const Jaeger\DEBUG_ID_HEADER_KEY;
use Jaeger\SpanContext;
use const Jaeger\TRACE_ID_HEADER;
use PHPUnit\Framework\TestCase;
class TextCodecTest extends TestCase
{
/** @var TextCodec */
p... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/tests/Jaeger/Mapper/SpanToJaegerMapperTest.php | tests/Jaeger/Mapper/SpanToJaegerMapperTest.php | <?php
use Jaeger\Mapper\SpanToJaegerMapper;
use Jaeger\Reporter\NullReporter;
use Jaeger\Sampler\ConstSampler;
use Jaeger\Span;
use Jaeger\SpanContext;
use Jaeger\Thrift\TagType;
use Jaeger\Tracer;
use const Jaeger\SAMPLED_FLAG;
use const OpenTracing\Tags\COMPONENT;
use const OpenTracing\Tags\PEER_HOST_IPV4;
use const... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/examples/config.php | examples/config.php | <?php
use Jaeger\Config;
return [
'sampler' => [
'type' => Jaeger\SAMPLER_TYPE_CONST,
'param' => true,
],
'logging' => true,
"tags" => [
// process. prefix works only with JAEGER_OVER_HTTP, JAEGER_OVER_BINARY
// otherwise it will be shown as simple global tag
"p... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
jonahgeorge/jaeger-client-php | https://github.com/jonahgeorge/jaeger-client-php/blob/f98ce2952c6036f6eadcffbea778717aae237fcd/examples/jaeger.php | examples/jaeger.php | <?php
require_once __DIR__.'/../vendor/autoload.php';
use Jaeger\Config;
use OpenTracing\GlobalTracer;
$config = new Config(
require_once __DIR__.'/config.php',
'your-app-name'
);
$config->initializeTracer();
$tracer = GlobalTracer::get();
$scope = $tracer->startActiveSpan('JaegerSpan', []);
$scope->getSp... | php | MIT | f98ce2952c6036f6eadcffbea778717aae237fcd | 2026-01-05T04:08:59.919765Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/src/BladeInstance.php | src/BladeInstance.php | <?php
namespace duncan3dc\Laravel;
use Illuminate\Contracts\View\View as ViewInterface;
use Illuminate\Events\Dispatcher;
use Illuminate\Filesystem\Filesystem;
use Illuminate\View\Compilers\BladeCompiler;
use Illuminate\View\Engines\CompilerEngine;
use Illuminate\View\Engines\EngineResolver;
use Illuminate\View\Engin... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/src/ConditionHandler.php | src/ConditionHandler.php | <?php
namespace duncan3dc\Laravel;
use function array_key_exists;
class ConditionHandler
{
/**
* @var array $conditions The conditions registered.
*/
private $conditions = [];
/**
* Register an custom conditional directive.
*
* @param string $name
* @param callable $handle... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/src/DirectivesInterface.php | src/DirectivesInterface.php | <?php
namespace duncan3dc\Laravel;
use Illuminate\View\Compilers\BladeCompiler;
interface DirectivesInterface
{
/**
* Add extra directives to the blade templating compiler.
*
* @param BladeCompiler $blade The compiler to extend
*
* @return void
*/
public function register(BladeC... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/src/BladeInterface.php | src/BladeInterface.php | <?php
namespace duncan3dc\Laravel;
use Illuminate\Contracts\View\Factory as FactoryInterface;
use Illuminate\Contracts\View\View as ViewInterface;
/**
* Standalone class for generating text using blade templates.
*/
interface BladeInterface extends FactoryInterface
{
/**
* Add another extension to use to ... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/src/Directives.php | src/Directives.php | <?php
namespace duncan3dc\Laravel;
use Illuminate\View\Compilers\BladeCompiler;
use function assert;
use function in_array;
use function is_string;
use function strlen;
use function substr;
use function trim;
class Directives implements DirectivesInterface
{
/**
* @var bool $namespace Whether to apply the ... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/src/Blade.php | src/Blade.php | <?php
namespace duncan3dc\Laravel;
use Illuminate\Contracts\View\View as ViewInterface;
use function is_dir;
use function is_string;
use function realpath;
/**
* Standalone class for generating text using blade templates.
*/
class Blade
{
/**
* @var BladeInstance|null $instance The internal cache of the B... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/CssTest.php | tests/CssTest.php | <?php
namespace duncan3dc\LaravelTests;
class CssTest extends AbstractTest
{
public function testString(): void
{
$this->assertTemplateString("<link rel='stylesheet' type='text/css' href='/css/ok.css'>", "@css('ok')");
}
public function testExtension(): void
{
$this->assertTemplat... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/BladeInstanceTest.php | tests/BladeInstanceTest.php | <?php
namespace duncan3dc\LaravelTests;
use duncan3dc\Laravel\BladeInstance;
use Illuminate\Contracts\View\View;
use PHPUnit\Framework\TestCase;
use function file_get_contents;
use function str_replace;
use function trim;
class BladeInstanceTest extends TestCase
{
/** @var BladeInstance */
private $blade;
... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/Helper.php | tests/Helper.php | <?php
namespace duncan3dc\LaravelTests;
class Helper
{
public static function getStuff(): string
{
return "stuff";
}
}
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/DirectivesTest.php | tests/DirectivesTest.php | <?php
namespace duncan3dc\LaravelTests;
use duncan3dc\Laravel\Directives;
use Illuminate\View\Compilers\BladeCompiler;
use Mockery;
use Mockery\MockInterface;
use PHPUnit\Framework\TestCase;
class DirectivesTest extends TestCase
{
/** @var Directives */
private $directives;
/** @var BladeCompiler&MockIn... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/ConditionHandlerTest.php | tests/ConditionHandlerTest.php | <?php
namespace duncan3dc\LaravelTests;
use duncan3dc\Laravel\ConditionHandler;
use PHPUnit\Framework\TestCase;
class ConditionHandlerTest extends TestCase
{
/** @var ConditionHandler */
private $handler;
protected function setUp(): void
{
$this->handler = new ConditionHandler();
}
... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/Utils.php | tests/Utils.php | <?php
namespace duncan3dc\LaravelTests;
use function glob;
use function is_iterable;
use function unlink;
final class Utils
{
public static function getCachePath(): string
{
$path = "/tmp/cache/views";
# Remove any previously cached files
$files = glob("{$path}/*");
if (is_i... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/bootstrap.php | tests/bootstrap.php | <?php
require __DIR__ . "/../vendor/autoload.php";
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/JsTest.php | tests/JsTest.php | <?php
namespace duncan3dc\LaravelTests;
class JsTest extends AbstractTest
{
public function testString(): void
{
$this->assertTemplateString("<script type='text/javascript' src='/js/ok.js'></script>", "@js('ok')");
}
public function testExtension(): void
{
$this->assertTemplateStr... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/AbstractTest.php | tests/AbstractTest.php | <?php
namespace duncan3dc\LaravelTests;
use duncan3dc\Laravel\Directives;
use Illuminate\Filesystem\Filesystem;
use Illuminate\View\Compilers\BladeCompiler;
use PHPUnit\Framework\TestCase;
abstract class AbstractTest extends TestCase
{
/** @var BladeCompiler */
private $blade;
/** @var Directives */
... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/BladeTest.php | tests/BladeTest.php | <?php
namespace duncan3dc\LaravelTests;
use duncan3dc\Laravel\Blade;
use duncan3dc\Laravel\BladeInstance;
use Illuminate\Contracts\View\View;
use Mockery;
use PHPUnit\Framework\TestCase;
use function file_get_contents;
use function str_replace;
use function trim;
class BladeTest extends TestCase
{
protected fun... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/BladeMockTest.php | tests/BladeMockTest.php | <?php
namespace duncan3dc\LaravelTests;
use duncan3dc\Laravel\BladeInstance;
use duncan3dc\Laravel\BladeInterface;
use duncan3dc\ObjectIntruder\Intruder;
use Illuminate\Contracts\View\View as ViewInterface;
use Illuminate\View\Factory;
use Illuminate\View\FileViewFinder;
use Mockery;
use Mockery\MockInterface;
use PH... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view1.blade.php | tests/views/view1.blade.php | <h1>Test1</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view19.blade.php | tests/views/view19.blade.php | @component("self_help_fest")
San Bernardino
@endcomponent
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view11.blade.php | tests/views/view11.blade.php | @extends("base-alt")
@section("title", "Inheritance!")
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view7.blade.php | tests/views/view7.blade.php | <h1>{{ "I'm ok" }}</h1>
<h1>{{ "<br>" }}</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view4.blade.php | tests/views/view4.blade.php | @namespace(duncan3dc\Laravel)
{{ __NAMESPACE__ }}
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view6.blade.php | tests/views/view6.blade.php | <h1>{!! "I'm ok" !!}</h1>
<h1>{!! "<br>" !!}</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view15.blade.php | tests/views/view15.blade.php | @global($global)
on
@else
off
@endglobal
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view12.blade.php | tests/views/view12.blade.php | <h1>Original</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view17.php | tests/views/view17.php | <h1><?= $title ?></h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view2.blade.php | tests/views/view2.blade.php | <h1>{{ $title }}</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view10.blade.php | tests/views/view10.blade.php | @extends("base")
@section("title", "Inheritance!")
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view9.blade.php | tests/views/view9.blade.php | <ul>
@foreach ($items as $item)
<li>{{ $item }}</li>
@endforeach
</ul>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view8.blade.php | tests/views/view8.blade.php | <h1>{{ $shareData }}</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/self_help_fest.blade.php | tests/views/self_help_fest.blade.php | <h1>Location</h1>
<h2>{{ $slot }}</h2>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view5.blade.php | tests/views/view5.blade.php | @use(duncan3dc\LaravelTests\Helper)
{{ Helper::getStuff() }}
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view20.blade.php | tests/views/view20.blade.php | @selfhelp
San Bernardino
@endselfhelp
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/base.blade.php | tests/views/base.blade.php | <h1>@yield("title")</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view14.blade.php | tests/views/view14.blade.php | @global
on
@else
off
@endglobal
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/view13.blade.php | tests/views/view13.blade.php | @normandie("epilogue")
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/alt/base-alt.blade.php | tests/views/alt/base-alt.blade.php | <h1>@yield("title")</h1>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/tests/views/alt/view3.blade.php | tests/views/alt/view3.blade.php | <h3>Test3</h3>
| php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
duncan3dc/blade | https://github.com/duncan3dc/blade/blob/c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd/travis/laravel.php | travis/laravel.php | #!/usr/bin/env php
<?php
if (!getenv("LARAVEL_VERSION")) {
return;
}
$json = file_get_contents(__DIR__ . "/../composer.json");
$composer = json_decode($json);
foreach ($composer->require as $package => &$version) {
if (substr($package, 0, 11) === "illuminate/") {
$version = getenv("LARAVEL_VERSION") ... | php | Apache-2.0 | c0b2df77ac347e19f9a0afb6cf1bb83dfdeddccd | 2026-01-05T04:08:57.313862Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/rector.php | rector.php | <?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Worksome\CodingStyle\WorksomeRectorConfig;
return static function (RectorConfig $rectorConfig): void {
WorksomeRectorConfig::setup($rectorConfig);
$rectorConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
]);
// D... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/ecs.php | ecs.php | <?php
declare(strict_types=1);
use Symplify\EasyCodingStandard\Config\ECSConfig;
use Worksome\CodingStyle\WorksomeEcsConfig;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/config',
]);
WorksomeEcsConfig... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/VerifyByPhoneServiceProvider.php | src/VerifyByPhoneServiceProvider.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone;
use Illuminate\Foundation\Application;
use Illuminate\Validation\Rule;
use Spatie\LaravelPackageTools\Package;
use Spatie\LaravelPackageTools\PackageServiceProvider;
use Twilio\Rest\Client;
use Worksome\VerifyByPhone\Commands\SendVerificationCodeComman... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/VerifyByPhoneManager.php | src/VerifyByPhoneManager.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone;
use Illuminate\Support\Manager;
use Twilio\Rest\Client;
use Worksome\VerifyByPhone\Services\FakeVerificationService;
use Worksome\VerifyByPhone\Services\Twilio\TwilioVerificationService;
/**
* @internal
*/
class VerifyByPhoneManager extends Manager
... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Exceptions/FailedSendingVerificationCodeException.php | src/Exceptions/FailedSendingVerificationCodeException.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Exceptions;
use Exception;
use Throwable;
final class FailedSendingVerificationCodeException extends Exception
{
public function __construct(Throwable $previous)
{
parent::__construct('Failed sending verification code', 0, $previous);
... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Exceptions/UnsupportedNumberException.php | src/Exceptions/UnsupportedNumberException.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Exceptions;
use Exception;
use Throwable;
final class UnsupportedNumberException extends Exception
{
public function __construct(Throwable $previous)
{
parent::__construct('Landline is not supported', 0, $previous);
}
public st... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Exceptions/VerificationCodeExpiredException.php | src/Exceptions/VerificationCodeExpiredException.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Exceptions;
use Exception;
use Throwable;
final class VerificationCodeExpiredException extends Exception
{
public function __construct(Throwable $previous)
{
parent::__construct('The verification code has expired, request a new one.', 0... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Exceptions/UnknownVerificationErrorException.php | src/Exceptions/UnknownVerificationErrorException.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Exceptions;
use Exception;
use Throwable;
final class UnknownVerificationErrorException extends Exception
{
public function __construct(Throwable $previous)
{
parent::__construct('Something went wrong while verifying sms code.', 0, $pre... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Services/FakeVerificationService.php | src/Services/FakeVerificationService.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Services;
use Closure;
use Exception;
use PHPUnit\Framework\Assert;
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
use Worksome\VerifyByPhone\Exceptions\VerificationCodeExpiredException;
final... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Services/Twilio/TwilioHttpClient.php | src/Services/Twilio/TwilioHttpClient.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Services\Twilio;
use GuzzleHttp\Psr7\Query;
use Illuminate\Support\Facades\Http;
use Twilio\AuthStrategy\AuthStrategy;
use Twilio\Http\Client;
use Twilio\Http\Response;
/**
* A Twilio HTTP client implementation that uses Laravel's Http Client
* to al... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Services/Twilio/TwilioVerificationService.php | src/Services/Twilio/TwilioVerificationService.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Services\Twilio;
use Propaganistas\LaravelPhone\PhoneNumber;
use Twilio\Exceptions\TwilioException;
use Twilio\Rest\Client;
use Twilio\Rest\Verify\V2\Service\VerificationCheckList;
use Twilio\Rest\Verify\V2\Service\VerificationList;
use Worksome\VerifyB... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Contracts/PhoneVerificationService.php | src/Contracts/PhoneVerificationService.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Contracts;
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Exceptions\FailedSendingVerificationCodeException;
use Worksome\VerifyByPhone\Exceptions\UnknownVerificationErrorException;
use Worksome\VerifyByPhone\Exceptions\Unsupport... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Validation/Rules/VerificationCodeIsValid.php | src/Validation/Rules/VerificationCodeIsValid.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Validation\Rules;
use Closure;
use Illuminate\Contracts\Validation\DataAwareRule;
use Illuminate\Contracts\Validation\ValidationRule;
use Propaganistas\LaravelPhone\PhoneNumber;
use Throwable;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationServic... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Commands/VerifyVerificationCodeCommand.php | src/Commands/VerifyVerificationCodeCommand.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Commands;
use Illuminate\Console\Command;
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
/**
* @internal
*/
class VerifyVerificationCodeCommand extends Command
{
public $signature = 'ver... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/src/Commands/SendVerificationCodeCommand.php | src/Commands/SendVerificationCodeCommand.php | <?php
declare(strict_types=1);
namespace Worksome\VerifyByPhone\Commands;
use Illuminate\Console\Command;
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
/**
* @internal
*/
class SendVerificationCodeCommand extends Command
{
public $signature = 'verif... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/Pest.php | tests/Pest.php | <?php
use Worksome\VerifyByPhone\Tests\TestCase;
uses(TestCase::class)->in(__DIR__);
| php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/TestCase.php | tests/TestCase.php | <?php
namespace Worksome\VerifyByPhone\Tests;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Http;
use Orchestra\Testbench\TestCase as Orchestra;
use Worksome\VerifyByPhone\VerifyByPhoneServiceProvider;
class TestCase extends Orchestra
{
protected function setUp(): void
{
... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/TestingTools/FakeVerificationServiceTest.php | tests/TestingTools/FakeVerificationServiceTest.php | <?php
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Exceptions\VerificationCodeExpiredException;
use Worksome\VerifyByPhone\Services\FakeVerificationService;
beforeEach(function () {
$this->service = new FakeVerificationService();
});
it('can declare an action to perform when sending', f... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/Validation/VerificationCodeIsValidTest.php | tests/Validation/VerificationCodeIsValidTest.php | <?php
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\Rule;
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
use Worksome\VerifyByPhone\Services\FakeVerificationService;
use Worksome\VerifyByPhone\Validation\Rules\VerificationCodeIsValid;
b... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/Concerns/FakesTwilioRequests.php | tests/Concerns/FakesTwilioRequests.php | <?php
namespace Worksome\VerifyByPhone\Tests\Concerns;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Http;
use Propaganistas\LaravelPhone\PhoneNumber;
use Twilio\Exceptions\TwilioException;
trait FakesTwilioRequests
{
public function fakeSendRequest(string $number, array $response = [], string $chan... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/Commands/VerifyVerificationCodeCommandTest.php | tests/Commands/VerifyVerificationCodeCommandTest.php | <?php
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
use Worksome\VerifyByPhone\Services\FakeVerificationService;
beforeEach(function () {
$this->service = new FakeVerificationService();
$this->app->instance(PhoneVerificationService::class, $this->service);
});
it('verifies a verification cod... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/Commands/SendVerificationCodeCommandTest.php | tests/Commands/SendVerificationCodeCommandTest.php | <?php
use Propaganistas\LaravelPhone\PhoneNumber;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
use Worksome\VerifyByPhone\Services\FakeVerificationService;
beforeEach(function () {
$this->service = new FakeVerificationService();
$this->app->instance(PhoneVerificationService::class, $this->se... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/tests/Twilio/TwilioVerificationServiceTest.php | tests/Twilio/TwilioVerificationServiceTest.php | <?php
use Illuminate\Contracts\Config\Repository;
use Illuminate\Http\Client\Request;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;
use Propaganistas\LaravelPhone\PhoneNumber;
use Twilio\Rest\Client;
use Worksome\VerifyByPhone\Contracts\PhoneVerificationService;
use Worksome\VerifyByPhone\Exceptions... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
worksome/verify-by-phone | https://github.com/worksome/verify-by-phone/blob/b15fadacc7737b4c278b6def9130166deaa6e43e/config/verify-by-phone.php | config/verify-by-phone.php | <?php
declare(strict_types=1);
return [
/**
* The service that should be used to verify users by phone number.
*
* Supported: 'twilio', 'null'
*/
'driver' => env('VERIFY_BY_PHONE_DRIVER', 'twilio'),
'services' => [
'twilio' => [
'account_sid' => env('TWILIO_ACCOU... | php | MIT | b15fadacc7737b4c278b6def9130166deaa6e43e | 2026-01-05T04:09:08.867998Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/DunglasAngularCsrfBundle.php | DunglasAngularCsrfBundle.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle;
use Dunglas\AngularCsrfBundle\DependencyInjection\CompilerPass\CsrfCompilerPass;
use Symfony\Component\Dependen... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Routing/RouteMatcher.php | Routing/RouteMatcher.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Routing;
use Symfony\Component\HttpFoundation\Request;
/**
* Routes matcher default implementation.
*
* @aut... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Routing/RouteMatcherInterface.php | Routing/RouteMatcherInterface.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Routing;
use Symfony\Component\HttpFoundation\Request;
/**
* Routes checker.
*
* @author Kévin Dunglas <dung... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Form/Extension/DisableCsrfExtension.php | Form/Extension/DisableCsrfExtension.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Form\Extension;
use Dunglas\AngularCsrfBundle\Csrf\AngularCsrfTokenManager;
use Dunglas\AngularCsrfBundle\Routin... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/DependencyInjection/DunglasAngularCsrfExtension.php | DependencyInjection/DunglasAngularCsrfExtension.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\Contain... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/DependencyInjection/Configuration.php | DependencyInjection/Configuration.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\D... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/DependencyInjection/CompilerPass/CsrfCompilerPass.php | DependencyInjection/CompilerPass/CsrfCompilerPass.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\DependencyInjection\CompilerPass;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use ... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/spec/Dunglas/AngularCsrfBundle/Routing/RouteMatcherSpec.php | spec/Dunglas/AngularCsrfBundle/Routing/RouteMatcherSpec.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace spec\Dunglas\AngularCsrfBundle\Routing;
use PhpSpec\ObjectBehavior;
use Symfony\Component\HttpFoundation\Request;
/**
* @author Kévin Du... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/spec/Dunglas/AngularCsrfBundle/DependencyInjection/DunglasAngularCsrfExtensionSpec.php | spec/Dunglas/AngularCsrfBundle/DependencyInjection/DunglasAngularCsrfExtensionSpec.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace spec\Dunglas\AngularCsrfBundle\DependencyInjection;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Symfony\Component\DependencyInj... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/spec/Dunglas/AngularCsrfBundle/Csrf/AngularCsrfTokenManagerSpec.php | spec/Dunglas/AngularCsrfBundle/Csrf/AngularCsrfTokenManagerSpec.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace spec\Dunglas\AngularCsrfBundle\Csrf;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use Symfony\Component\Security\Csrf\CsrfToken;
use... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/spec/Dunglas/AngularCsrfBundle/EventListener/AngularCsrfCookieListenerSpec.php | spec/Dunglas/AngularCsrfBundle/EventListener/AngularCsrfCookieListenerSpec.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace spec\Dunglas\AngularCsrfBundle\EventListener;
use Dunglas\AngularCsrfBundle\Csrf\AngularCsrfTokenManager;
use Dunglas\AngularCsrfBundle\Ro... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/spec/Dunglas/AngularCsrfBundle/EventListener/AngularCsrfValidationListenerSpec.php | spec/Dunglas/AngularCsrfBundle/EventListener/AngularCsrfValidationListenerSpec.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace spec\Dunglas\AngularCsrfBundle\EventListener;
use Dunglas\AngularCsrfBundle\Csrf\AngularCsrfTokenManager;
use Dunglas\AngularCsrfBundle\Ro... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Features/Context/FeatureContext.php | Features/Context/FeatureContext.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Features\Context;
use Behat\Behat\Context\SnippetAcceptingContext;
use Dunglas\AngularCsrfBundle\Features\Contex... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Features/Context/Fixtures/TestKernel.php | Features/Context/Fixtures/TestKernel.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Features\Context\Fixtures;
use Dunglas\AngularCsrfBundle\DunglasAngularCsrfBundle;
use Dunglas\AngularCsrfBundle... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Features/Context/Fixtures/TestBundle/TestBundle.php | Features/Context/Fixtures/TestBundle/TestBundle.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Features\Context\Fixtures\TestBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* Test bundle used i... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
dunglas/DunglasAngularCsrfBundle | https://github.com/dunglas/DunglasAngularCsrfBundle/blob/3336d886e04d2cd089b8c19b2769b1908fa78744/Features/Context/Fixtures/TestBundle/Controller/TestController.php | Features/Context/Fixtures/TestBundle/Controller/TestController.php | <?php
/*
* (c) Kévin Dunglas <dunglas@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Dunglas\AngularCsrfBundle\Features\Context\Fixtures\TestBundle\Controller;
use Dunglas\AngularCsrfBundle\Features\Context\Fixtures\TestBun... | php | MIT | 3336d886e04d2cd089b8c19b2769b1908fa78744 | 2026-01-05T04:09:17.387813Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.