repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Jobs/TraceAware.php | src/Jobs/TraceAware.php | <?php
namespace Spatie\OpenTelemetry\Jobs;
interface TraceAware {}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Jobs/NotTraceAware.php | src/Jobs/NotTraceAware.php | <?php
namespace Spatie\OpenTelemetry\Jobs;
interface NotTraceAware {}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Http/Middleware/MeasureRequest.php | src/Http/Middleware/MeasureRequest.php | <?php
namespace Spatie\OpenTelemetry\Http\Middleware;
use Closure;
use Spatie\OpenTelemetry\Facades\Measure;
class MeasureRequest
{
public function handle($request, Closure $next)
{
Measure::start('request');
return $next($request);
}
public function terminate($request, $response)
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Http/Middleware/ContinueTrace.php | src/Http/Middleware/ContinueTrace.php | <?php
namespace Spatie\OpenTelemetry\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\Support\ParsedTraceParentHeaderValue;
class ContinueTrace
{
public function handle(Request $request, Closure $next): mixed
{
if (! $reques... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Drivers/MultiDriver.php | src/Drivers/MultiDriver.php | <?php
namespace Spatie\OpenTelemetry\Drivers;
use Spatie\OpenTelemetry\Support\Span;
class MultiDriver implements Driver
{
/** @var array<int, Driver> */
protected array $drivers = [];
public function addDriver(Driver $driver): self
{
$this->drivers[] = $driver;
return $this;
}
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Drivers/HttpDriver.php | src/Drivers/HttpDriver.php | <?php
namespace Spatie\OpenTelemetry\Drivers;
use Illuminate\Http\Client\Factory;
use Illuminate\Support\Facades\Http;
use Spatie\OpenTelemetry\Support\Span;
class HttpDriver implements Driver
{
protected array $options = [];
public function sendSpan(Span $span)
{
$payload = [$span->toArray()];
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Drivers/MemoryDriver.php | src/Drivers/MemoryDriver.php | <?php
namespace Spatie\OpenTelemetry\Drivers;
use Spatie\OpenTelemetry\Support\Span;
class MemoryDriver implements Driver
{
/** @var array<int, Span> */
public array $sentSpans = [];
public function sendSpan(Span $span)
{
$this->sentSpans[] = $span;
}
public function configure(array... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Drivers/RayDriver.php | src/Drivers/RayDriver.php | <?php
namespace Spatie\OpenTelemetry\Drivers;
use Illuminate\Support\Facades\Http;
use Spatie\OpenTelemetry\Support\Span;
class RayDriver extends HttpDriver
{
protected array $options = [];
public function sendSpan(Span $span)
{
$payload = [$span->toArray()];
Http::asJson()->post($this-... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Drivers/Driver.php | src/Drivers/Driver.php | <?php
namespace Spatie\OpenTelemetry\Drivers;
use Spatie\OpenTelemetry\Support\Span;
interface Driver
{
/**
* All options set for this driver in the config file will be passed
* to this method.
*
* @param array<string, string> $options
* @return $this
*/
public function config... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Stopwatch.php | src/Support/Stopwatch.php | <?php
namespace Spatie\OpenTelemetry\Support;
use Exception;
class Stopwatch
{
protected ?int $startTime = null;
protected ?int $stopTime = null;
public function start(): self
{
$this->startTime = now()->getPreciseTimestamp();
return $this;
}
public function stop(): self
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Trace.php | src/Support/Trace.php | <?php
namespace Spatie\OpenTelemetry\Support;
use Spatie\OpenTelemetry\Support\TagProviders\TagProvider;
class Trace
{
/** @var array<string, mixed> */
protected array $tags = [];
public static function start(?string $id = null, string $name = ''): self
{
return new self($id, $name, config('... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Span.php | src/Support/Span.php | <?php
namespace Spatie\OpenTelemetry\Support;
use Spatie\OpenTelemetry\Support\TagProviders\TagProvider;
class Span
{
protected Stopwatch $stopWatch;
protected string $id;
protected int $flags;
/** @var array<string, mixed> */
protected array $tags;
/** @var array<string, mixed> */
pu... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/IdGenerator.php | src/Support/IdGenerator.php | <?php
namespace Spatie\OpenTelemetry\Support;
use OpenTelemetry\SDK\Trace\RandomIdGenerator;
class IdGenerator
{
public function traceId(): string
{
return (new RandomIdGenerator)->generateTraceId();
}
public function spanId(): string
{
return (new RandomIdGenerator)->generateSpa... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/ParsedTraceParentHeaderValue.php | src/Support/ParsedTraceParentHeaderValue.php | <?php
namespace Spatie\OpenTelemetry\Support;
use OpenTelemetry\API\Trace\Propagation\TraceContextValidator;
use OpenTelemetry\API\Trace\SpanContextValidator;
class ParsedTraceParentHeaderValue
{
public static function make(string $headerValue): ?self
{
if (self::isValidHeaderValue($headerValue)) {
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Measure.php | src/Support/Measure.php | <?php
namespace Spatie\OpenTelemetry\Support;
use Spatie\OpenTelemetry\Drivers\Driver;
class Measure
{
protected Driver $driver;
protected ?Trace $trace = null;
protected ?Span $parentSpan = null;
/** @var array<string, \Spatie\OpenTelemetry\Support\Span> */
protected array $startedSpans = [];... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/TagProviders/TagProvider.php | src/Support/TagProviders/TagProvider.php | <?php
namespace Spatie\OpenTelemetry\Support\TagProviders;
interface TagProvider
{
/**
* @return array<string, mixed>
*/
public function tags(): array;
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/TagProviders/DefaultTagsProvider.php | src/Support/TagProviders/DefaultTagsProvider.php | <?php
namespace Spatie\OpenTelemetry\Support\TagProviders;
class DefaultTagsProvider implements TagProvider
{
public function tags(): array
{
return [
'host.name' => gethostname(),
];
}
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Samplers/LotterySampler.php | src/Support/Samplers/LotterySampler.php | <?php
namespace Spatie\OpenTelemetry\Support\Samplers;
use Illuminate\Support\Lottery;
class LotterySampler extends Sampler
{
public function shouldSample(): bool
{
return Lottery::odds(2, 100)->choose();
}
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Samplers/Sampler.php | src/Support/Samplers/Sampler.php | <?php
namespace Spatie\OpenTelemetry\Support\Samplers;
abstract class Sampler
{
abstract public function shouldSample();
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Samplers/AlwaysSampler.php | src/Support/Samplers/AlwaysSampler.php | <?php
namespace Spatie\OpenTelemetry\Support\Samplers;
class AlwaysSampler extends Sampler
{
public function shouldSample()
{
return true;
}
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Support/Samplers/NeverSampler.php | src/Support/Samplers/NeverSampler.php | <?php
namespace Spatie\OpenTelemetry\Support\Samplers;
class NeverSampler extends Sampler
{
public function shouldSample()
{
return false;
}
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Actions/MakeQueueTraceAwareAction.php | src/Actions/MakeQueueTraceAwareAction.php | <?php
namespace Spatie\OpenTelemetry\Actions;
use Illuminate\Contracts\Queue\Job;
use Illuminate\Queue\Events\JobProcessed;
use Illuminate\Queue\Events\JobProcessing;
use Illuminate\Queue\Events\JobRetryRequested;
use ReflectionClass;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\Jobs\NotTraceAwa... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Facades/Measure.php | src/Facades/Measure.php | <?php
namespace Spatie\OpenTelemetry\Facades;
use Illuminate\Support\Facades\Facade;
/**
* @mixin \Spatie\OpenTelemetry\Support\Measure
*/
class Measure extends Facade
{
protected static function getFacadeAccessor()
{
return \Spatie\OpenTelemetry\Support\Measure::class;
}
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Watchers/Watcher.php | src/Watchers/Watcher.php | <?php
namespace Spatie\OpenTelemetry\Watchers;
use Illuminate\Foundation\Application;
abstract class Watcher
{
abstract public function register(Application $app);
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Watchers/RequestWatcher.php | src/Watchers/RequestWatcher.php | <?php
namespace Spatie\OpenTelemetry\Watchers;
use Illuminate\Foundation\Application;
use Spatie\OpenTelemetry\Facades\Measure;
class RequestWatcher extends Watcher
{
public function register(Application $app)
{
Measure::start('request');
$app->terminating(function () {
$start = ... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Watchers/HttpClientWatcher.php | src/Watchers/HttpClientWatcher.php | <?php
namespace Spatie\OpenTelemetry\Watchers;
use Illuminate\Foundation\Application;
use Illuminate\Http\Client\Events\RequestSending;
use Illuminate\Http\Client\Events\ResponseReceived;
use Illuminate\Support\Facades\Event;
class HttpClientWatcher extends Watcher
{
public function register(Application $app)
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/src/Watchers/QueryWatcher.php | src/Watchers/QueryWatcher.php | <?php
namespace Spatie\OpenTelemetry\Watchers;
use Illuminate\Database\Events\QueryExecuted;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\DB;
use Spatie\OpenTelemetry\Facades\Measure;
class QueryWatcher extends Watcher
{
public function register(Application $app)
{
ray('regis... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/SamplerTest.php | tests/SamplerTest.php | <?php
use Spatie\OpenTelemetry\Support\Samplers\AlwaysSampler;
use Spatie\OpenTelemetry\Support\Samplers\LotterySampler;
use Spatie\OpenTelemetry\Support\Samplers\NeverSampler;
test('the AlwaysSampler always returns true', function () {
expect(app(AlwaysSampler::class)->shouldSample())->toBe(true);
});
test('the... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/Pest.php | tests/Pest.php | <?php
use Spatie\OpenTelemetry\Tests\TestSupport\TestCase;
uses(TestCase::class)->in(__DIR__);
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TagsTest.php | tests/TagsTest.php | <?php
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\Tests\TestSupport\TestClasses\FakeSpanTagProvider;
use Spatie\OpenTelemetry\Tests\TestSupport\TestClasses\FakeTraceTagProvider;
it('can add extra tags on the trace level', function () {
config()->set('open-telemetry.trace_tag_providers', [Fa... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/MeasureTest.php | tests/MeasureTest.php | <?php
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Http;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\Support\Samplers\NeverSampler;
use Spatie\OpenTelemetry\Tests\TestSupport\TestClasses\FakeIdGenerator;
use Spatie\TestTime\TestTime;
use function Spatie\Snapshots\assertMatchesSnap... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TraceAwareQueueTest.php | tests/TraceAwareQueueTest.php | <?php
use Illuminate\Contracts\Bus\Dispatcher;
use Illuminate\Support\Facades\Http;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\Tests\TestSupport\TestClasses\TestJob;
use Spatie\Valuestore\Valuestore;
beforeEach(function () {
Http::fake();
$this->valuestore = Valuestore::make($this->te... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/WithTraceTest.php | tests/WithTraceTest.php | <?php
use Illuminate\Http\Client\Request;
use Illuminate\Support\Facades\Http;
use Spatie\OpenTelemetry\Facades\Measure;
it('injects current span context name to HTTP client requests', function () {
Http::fake();
Measure::start('parent');
Http::withTrace()->post('http://example.com/first');
Http::a... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestCase.php | tests/TestSupport/TestCase.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport;
use Orchestra\Testbench\TestCase as Orchestra;
use Spatie\OpenTelemetry\Drivers\MemoryDriver;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\OpenTelemetryServiceProvider;
use Spatie\OpenTelemetry\Support\IdGenerator;
use Spatie\OpenTelemetry\... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestClasses/FakeSpanTagProvider.php | tests/TestSupport/TestClasses/FakeSpanTagProvider.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport\TestClasses;
use Illuminate\Support\Str;
use Spatie\OpenTelemetry\Support\TagProviders\TagProvider;
class FakeSpanTagProvider implements TagProvider
{
public function tags(): array
{
return [
'my-span-tag' => Str::random(),
];... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestClasses/FakeIdGenerator.php | tests/TestSupport/TestClasses/FakeIdGenerator.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport\TestClasses;
use Spatie\OpenTelemetry\Support\IdGenerator;
class FakeIdGenerator extends IdGenerator
{
protected static int $traceId = 0;
protected static int $spanId = 0;
public static function reset()
{
self::$traceId = 0;
se... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestClasses/FakeTraceTagProvider.php | tests/TestSupport/TestClasses/FakeTraceTagProvider.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport\TestClasses;
use Illuminate\Support\Str;
use Spatie\OpenTelemetry\Support\TagProviders\TagProvider;
class FakeTraceTagProvider implements TagProvider
{
public function tags(): array
{
return [
'my-trace-tag' => Str::random(),
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestClasses/FakeTagsProvider.php | tests/TestSupport/TestClasses/FakeTagsProvider.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport\TestClasses;
use Spatie\OpenTelemetry\Support\TagProviders\TagProvider;
class FakeTagsProvider implements TagProvider
{
public function tags(): array
{
return [
'host.name' => 'static.host.name.for.tests',
];
}
}
| php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestClasses/TestJob.php | tests/TestSupport/TestClasses/TestJob.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport\TestClasses;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\Valuestore\Valuestore;
class TestJob implements ShouldQueue
{
use InteractsWithQueue;
public Valuestor... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/TestSupport/TestClasses/FakeStopwatch.php | tests/TestSupport/TestClasses/FakeStopwatch.php | <?php
namespace Spatie\OpenTelemetry\Tests\TestSupport\TestClasses;
use Carbon\Carbon;
use Spatie\OpenTelemetry\Support\Stopwatch;
class FakeStopwatch extends Stopwatch
{
public function start(): self
{
$this->startTime = Carbon::now()->timestamp;
return $this;
}
public function sto... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/Http/Middleware/ContinueTraceTest.php | tests/Http/Middleware/ContinueTraceTest.php | <?php
use Illuminate\Support\Facades\Route;
use Spatie\OpenTelemetry\Facades\Measure;
use Spatie\OpenTelemetry\Http\Middleware\ContinueTrace;
beforeEach(function () {
Route::any('test-route', fn () => Measure::hasTraceId()
? Measure::traceId()
: 'did not start trace'
)->middleware(ContinueTrac... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/tests/Support/ParsedTraceParentHeaderValueTest.php | tests/Support/ParsedTraceParentHeaderValueTest.php | <?php
use Spatie\OpenTelemetry\Support\ParsedTraceParentHeaderValue;
it('can parse a correct header value', function () {
$parsed = ParsedTraceParentHeaderValue::make('00-80e1afed08e019fc1110464cfa66635c-7a085853722dc6d2-01');
expect($parsed)
->toBeInstanceOf(ParsedTraceParentHeaderValue::class)
... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
spatie/laravel-open-telemetry | https://github.com/spatie/laravel-open-telemetry/blob/59af9fa2ad96de6f2ff55040f44df5d5f59337ad/config/open-telemetry.php | config/open-telemetry.php | <?php
return [
/*
* This value will be sent along with your trace.
*
* When set to `null`, the app name will be used
*/
'default_trace_name' => null,
/*
* A driver is responsible for transmitting any measurements.
*/
'drivers' => [
Spatie\OpenTelemetry\Drivers\Htt... | php | MIT | 59af9fa2ad96de6f2ff55040f44df5d5f59337ad | 2026-01-05T03:07:35.874586Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Client.php | src/Packagist/Api/Client.php | <?php
declare(strict_types=1);
namespace Packagist\Api;
use Composer\Semver\Semver;
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\GuzzleException;
use Packagist\Api\Result\Advisory;
use Packagist\Api\Result\Factory;
use Packagist\Api\Result\Package;
/**
* Packagist A... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/PackageNotFoundException.php | src/Packagist/Api/PackageNotFoundException.php | <?php
declare(strict_types=1);
namespace Packagist\Api;
use InvalidArgumentException;
/**
* Thrown when a requested package was not found in the Packagist API.
*/
class PackageNotFoundException extends InvalidArgumentException
{
}
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Advisory.php | src/Packagist/Api/Result/Advisory.php | <?php
namespace Packagist\Api\Result;
use Packagist\Api\Result\AbstractResult;
use Packagist\Api\Result\Advisory\Source;
class Advisory extends AbstractResult
{
protected string $advisoryId;
protected string $packageName;
protected string $remoteId;
protected string $title;
protected string $... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Result.php | src/Packagist/Api/Result/Result.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result;
class Result extends AbstractResult
{
protected string $name;
protected string $description;
protected string $url;
protected int $downloads;
protected int $favers;
protected string $repository;
public function getName()... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/AbstractResult.php | src/Packagist/Api/Result/AbstractResult.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result;
use Doctrine\Inflector\InflectorFactory;
abstract class AbstractResult
{
public function fromArray(array $data): void
{
$inflector = InflectorFactory::create()->build();
foreach ($data as $key => $value) {
$property =... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Factory.php | src/Packagist/Api/Result/Factory.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result;
use Composer\MetadataMinifier\MetadataMinifier;
use InvalidArgumentException;
use Packagist\Api\Result\Package\Author;
use Packagist\Api\Result\Package\Dist;
use Packagist\Api\Result\Package\Downloads;
use Packagist\Api\Result\Package\Maintainer;
use Pac... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package.php | src/Packagist/Api/Result/Package.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result;
use Packagist\Api\Result\Package\Downloads;
class Package extends AbstractResult
{
protected string $name = '';
protected string $description = '';
protected string $time = '';
protected array $maintainers = [];
protected array $... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Advisory/Source.php | src/Packagist/Api/Result/Advisory/Source.php | <?php
namespace Packagist\Api\Result\Advisory;
use Packagist\Api\Result\AbstractResult;
class Source extends AbstractResult
{
protected string $name;
protected string $remoteId;
public function getName(): string
{
return $this->name;
}
public function getRemoteId(): string
{
... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package/Version.php | src/Packagist/Api/Result/Package/Version.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result\Package;
use Packagist\Api\Result\AbstractResult;
class Version extends AbstractResult
{
protected string $name = '';
protected string $description = '';
protected array $keywords = [];
protected string $homepage = '';
protected s... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package/Downloads.php | src/Packagist/Api/Result/Package/Downloads.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result\Package;
use Packagist\Api\Result\AbstractResult;
class Downloads extends AbstractResult
{
protected int $total;
protected int $monthly;
protected int $daily;
public function setTotal(int $total): self
{
$this->total = $tot... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package/Dist.php | src/Packagist/Api/Result/Package/Dist.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result\Package;
use Packagist\Api\Result\AbstractResult;
class Dist extends AbstractResult
{
protected ?string $shasum = null;
protected string $type;
protected string $url;
protected ?string $reference = null;
public function getShasum(... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package/Author.php | src/Packagist/Api/Result/Package/Author.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result\Package;
class Author extends Maintainer
{
protected string $role;
public function getRole(): string
{
return $this->role;
}
}
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package/Maintainer.php | src/Packagist/Api/Result/Package/Maintainer.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result\Package;
use Packagist\Api\Result\AbstractResult;
class Maintainer extends AbstractResult
{
protected string $name = '';
protected string $email = '';
protected string $homepage = '';
protected string $avatarUrl = '';
public funct... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/src/Packagist/Api/Result/Package/Source.php | src/Packagist/Api/Result/Package/Source.php | <?php
declare(strict_types=1);
namespace Packagist\Api\Result\Package;
use Packagist\Api\Result\AbstractResult;
class Source extends AbstractResult
{
protected string $type;
protected string $url;
protected string $reference;
public function getType(): string
{
return $this->type;
... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/ClientSpec.php | spec/Packagist/Api/ClientSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api;
use GuzzleHttp\Client as HttpClient;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Response;
use GuzzleHttp\Psr7\Stream;
use Packagist\Api\Client;
use Packagist\Api\PackageNotFoundException;
use Packagist\Api\Re... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/AdvisorySpec.php | spec/Packagist/Api/Result/AdvisorySpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result;
use Packagist\Api\Result\AbstractResult;
use Packagist\Api\Result\Advisory;
use Packagist\Api\Result\Advisory\Source;
use PhpSpec\ObjectBehavior;
class AdvisorySpec extends ObjectBehavior
{
private $source;
private function data()
{
... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/ResultSpec.php | spec/Packagist/Api/Result/ResultSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result;
use Packagist\Api\Result\AbstractResult;
use Packagist\Api\Result\Result;
use PhpSpec\ObjectBehavior;
class ResultSpec extends ObjectBehavior
{
public function let()
{
$this->fromArray([
'name' => 'sylius/sylius',... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/FactorySpec.php | spec/Packagist/Api/Result/FactorySpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result;
use Packagist\Api\Result\Factory;
use Packagist\Api\Result\Package;
use Packagist\Api\Result\Result;
use PhpSpec\ObjectBehavior;
class FactorySpec extends ObjectBehavior
{
public function it_is_initializable(): void
{
$this->shouldH... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/PackageSpec.php | spec/Packagist/Api/Result/PackageSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result;
use Packagist\Api\Result\AbstractResult;
use Packagist\Api\Result\Package;
use Packagist\Api\Result\Package\Downloads;
use Packagist\Api\Result\Package\Maintainer;
use Packagist\Api\Result\Package\Version;
use PhpSpec\ObjectBehavior;
class PackageS... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Advisory/SourceSpec.php | spec/Packagist/Api/Result/Advisory/SourceSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Advisory;
use Packagist\Api\Result\Advisory\Source;
use PhpSpec\ObjectBehavior;
class SourceSpec extends ObjectBehavior
{
public function let()
{
$this->fromArray([
'name' => 'FriendsOfPHP/security-advisories',
... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Package/DownloadsSpec.php | spec/Packagist/Api/Result/Package/DownloadsSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Package;
use Packagist\Api\Result\Package\Downloads;
use PhpSpec\ObjectBehavior;
class DownloadsSpec extends ObjectBehavior
{
public function let()
{
$this->fromArray([
'total' => 9999999,
'monthly' => 99999... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Package/VersionSpec.php | spec/Packagist/Api/Result/Package/VersionSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Package;
use Packagist\Api\Result\AbstractResult;
use Packagist\Api\Result\Package\Author;
use Packagist\Api\Result\Package\Dist;
use Packagist\Api\Result\Package\Source;
use Packagist\Api\Result\Package\Version;
use PhpSpec\ObjectBehavior;
class Ve... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Package/DistSpec.php | spec/Packagist/Api/Result/Package/DistSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Package;
use Packagist\Api\Result\Package\Dist;
use PhpSpec\ObjectBehavior;
class DistSpec extends ObjectBehavior
{
public function let(): void
{
$this->fromArray([
'type' => 'git',
'url' => 'https:... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Package/AuthorSpec.php | spec/Packagist/Api/Result/Package/AuthorSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Package;
use Packagist\Api\Result\Package\Author;
use PhpSpec\ObjectBehavior;
class AuthorSpec extends ObjectBehavior
{
public function let()
{
$this->fromArray([
'name' => 'Saša Stamenković',
'email' =... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Package/SourceSpec.php | spec/Packagist/Api/Result/Package/SourceSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Package;
use Packagist\Api\Result\Package\Source;
use PhpSpec\ObjectBehavior;
class SourceSpec extends ObjectBehavior
{
public function let()
{
$this->fromArray([
'type' => 'zip',
'url' => 'https://... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/spec/Packagist/Api/Result/Package/MaintainerSpec.php | spec/Packagist/Api/Result/Package/MaintainerSpec.php | <?php
declare(strict_types=1);
namespace spec\Packagist\Api\Result\Package;
use Packagist\Api\Result\Package\Maintainer;
use PhpSpec\ObjectBehavior;
class MaintainerSpec extends ObjectBehavior
{
public function let()
{
$this->fromArray([
'name' => 'Saša Stamenković',
'ema... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/advisories.php | examples/advisories.php | <?php
require __DIR__ . '/../vendor/autoload.php';
$client = new Packagist\Api\Client();
// Get any advisories for the monolog/monolog package
$advisories = $client->advisories(['monolog/monolog']);
var_export($advisories);
// Get any advisories for the monolog/monolog package which were modified after midnight 202... | php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/all.php | examples/all.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$packages = $client->all();
var_export($packages);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/getComposerBranches.php | examples/getComposerBranches.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$package = $client->getComposerBranches('sylius/sylius');
var_export($package);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/search.php | examples/search.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$results = $client->search('sylius');
var_export($results);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/getComposerReleases.php | examples/getComposerReleases.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$package = $client->getComposerReleases('sylius/sylius');
var_export($package);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/getComposer.php | examples/getComposer.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$package = $client->getComposer('sylius/sylius');
var_export($package);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/popular.php | examples/popular.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$results = $client->popular(100);
var_export($results);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
KnpLabs/packagist-api | https://github.com/KnpLabs/packagist-api/blob/e81b908fdb84792fa2c258f6a5c9a4c0111776c5/examples/get.php | examples/get.php | <?php
require __DIR__.'/../vendor/autoload.php';
$client = new Packagist\Api\Client();
$package = $client->get('sylius/sylius');
var_export($package);
| php | MIT | e81b908fdb84792fa2c258f6a5c9a4c0111776c5 | 2026-01-05T03:07:44.723634Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/scoper.inc.php | scoper.inc.php | <?php
declare(strict_types=1);
return [
'expose-classes' => [
// Expose providers and provider interfaces
'Phly\KeepAChangelog\Provider\GitHub',
'Phly\KeepAChangelog\Provider\GitLab',
'Phly\KeepAChangelog\Provider\MilestoneAwareProviderInterface',
'Phly\KeepAChangelog\Provi... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ListenerProvider.php | src/ListenerProvider.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog;
use Phly\KeepAChangelog\Common\EventInterface;
use Psr\EventDispatcher\ListenerProviderInterface;
use function is_object;
class ListenerProvider implemen... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/EventDispatcher.php | src/EventDispatcher.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog;
use Psr\EventDispatcher\EventDispatcherInterface;
use Psr\EventDispatcher\ListenerProviderInterface;
use Psr\EventDispatcher\StoppableEventInterface;
/**
... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/Config.php | src/Config.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog;
use function getcwd;
use function realpath;
class Config
{
/** @var string */
private $changelogFile;
/** @var null|string */
private $pa... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/ShowConfigEvent.php | src/ConfigCommand/ShowConfigEvent.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\AbstractEvent;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\Output... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/ShowCommand.php | src/ConfigCommand/ShowCommand.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInt... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/ShowGlobalConfigListener.php | src/ConfigCommand/ShowGlobalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\IniReadWriteTrait;
use Phly\KeepAChangelog\Config\LocateGlobalConfigTrait;
use function sprintf;
class ShowG... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/VerifyEditOptionsListener.php | src/ConfigCommand/VerifyEditOptionsListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
class VerifyEditOptionsListener
{
public function __invoke(EditConfigEvent $event): void
{
if ($event->editLocal() && $event-... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/AbstractRemoveConfigListener.php | src/ConfigCommand/AbstractRemoveConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Question\ConfirmationQuestion;
use function file_exists;
... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/EditGlobalConfigListener.php | src/ConfigCommand/EditGlobalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Config\LocateGlobalConfigTrait;
use function sprintf;
class EditGlobalConfigListener extends AbstractEditConfigList... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/EditCommand.php | src/ConfigCommand/EditCommand.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\CommonOptionsTrait;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Command\Co... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/RemoveLocalConfigListener.php | src/ConfigCommand/RemoveLocalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use function getcwd;
use function sprintf;
class RemoveLocalConfigListener extends AbstractRemoveConfigListener
{
public function config... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/RemoveCommand.php | src/ConfigCommand/RemoveCommand.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInt... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/MaskProviderTokensTrait.php | src/ConfigCommand/MaskProviderTokensTrait.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
trait MaskProviderTokensTrait
{
private function maskProviderTokens(array $config): array
{
if (! isset($config['providers'])... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/RemoveConfigEvent.php | src/ConfigCommand/RemoveConfigEvent.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\IOInterface;
use Phly\KeepAChangelog\Common\IOTrait;
use Psr\EventDispatcher\StoppableEventInterface;
use Symf... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/CreateConfigEvent.php | src/ConfigCommand/CreateConfigEvent.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\IOInterface;
use Phly\KeepAChangelog\Common\IOTrait;
use Psr\EventDispatcher\StoppableEventInterface;
use Symf... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/RemoveGlobalConfigListener.php | src/ConfigCommand/RemoveGlobalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Config\LocateGlobalConfigTrait;
use function sprintf;
class RemoveGlobalConfigListener extends AbstractRemoveConfig... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/ShowMergedConfigListener.php | src/ConfigCommand/ShowMergedConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\ArrayMergeRecursiveTrait;
use Phly\KeepAChangelog\Common\IniReadWriteTrait;
use Phly\KeepAChangelog\Config\Loc... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/ShowLocalConfigListener.php | src/ConfigCommand/ShowLocalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use function file_get_contents;
use function getcwd;
use function sprintf;
class ShowLocalConfigListener extends AbstractShowConfigListener
... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/CreateCommand.php | src/ConfigCommand/CreateCommand.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Psr\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInt... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/CreateGlobalConfigListener.php | src/ConfigCommand/CreateGlobalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Config\LocateGlobalConfigTrait;
use function sprintf;
class CreateGlobalConfigListener extends AbstractCreateConfig... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/CreateLocalConfigListener.php | src/ConfigCommand/CreateLocalConfigListener.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use function getcwd;
use function implode;
use function sprintf;
class CreateLocalConfigListener extends AbstractCreateConfigListener
{
... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
phly/keep-a-changelog | https://github.com/phly/keep-a-changelog/blob/ab87917662e62e852610853416778c7212db1dea/src/ConfigCommand/EditConfigEvent.php | src/ConfigCommand/EditConfigEvent.php | <?php
/**
* @see https://github.com/phly/keep-a-changelog for the canonical source repository
*/
declare(strict_types=1);
namespace Phly\KeepAChangelog\ConfigCommand;
use Phly\KeepAChangelog\Common\EditorAwareEventInterface;
use Phly\KeepAChangelog\Common\EditorProviderTrait;
use Phly\KeepAChangelog\Common\... | php | BSD-2-Clause | ab87917662e62e852610853416778c7212db1dea | 2026-01-05T03:07:57.762099Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.