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
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/ImageTransformUrlServiceProvider.php
src/ImageTransformUrlServiceProvider.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl; use AceOfAces\LaravelImageTransformUrl\Http\Middleware\SignedImageTransformMiddleware; use Illuminate\Routing\Router; use Spatie\LaravelPackageTools\Package; use Spatie\LaravelPackageTools\PackageServiceProvider; class ImageTransformUrlSer...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Exceptions/InvalidConfigurationException.php
src/Exceptions/InvalidConfigurationException.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Exceptions; use RuntimeException; use Throwable; class InvalidConfigurationException extends RuntimeException { public function __construct(string $message, int $code = 0, ?Throwable $previous = null) { parent::__construct($...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Http/Controllers/ImageTransformerController.php
src/Http/Controllers/ImageTransformerController.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Http\Controllers; use AceOfAces\LaravelImageTransformUrl\Enums\AllowedMimeTypes; use AceOfAces\LaravelImageTransformUrl\Enums\AllowedOptions; use AceOfAces\LaravelImageTransformUrl\Traits\ManagesImageCache; use AceOfAces\LaravelImageTransfor...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Http/Middleware/SignedImageTransformMiddleware.php
src/Http/Middleware/SignedImageTransformMiddleware.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Http\Middleware; use Closure; use Illuminate\Http\Request; use Illuminate\Routing\Exceptions\InvalidSignatureException; use Illuminate\Routing\Middleware\ValidateSignature; use Symfony\Component\HttpFoundation\Response; class SignedImageTra...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Traits/ResolvesOptions.php
src/Traits/ResolvesOptions.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Traits; use Illuminate\Support\Arr; trait ResolvesOptions { /** * Get the positive int value of the given option. * * @param array<string, int|string|null> $options */ protected static function getPositiveIntOp...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Traits/ManagesImageCache.php
src/Traits/ManagesImageCache.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Traits; use Illuminate\Contracts\Filesystem\Filesystem; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; use Intervention\Image\Interfaces\EncodedImageInterface; trait ManagesImageCache { /** * Check if...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Facades/ImageTransformUrl.php
src/Facades/ImageTransformUrl.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Facades; use Illuminate\Support\Facades\Facade; /** * @method static string make(string $path, array<string, int|string>|string $options = [], ?string $pathPrefix = null) * @method static string url(string $path, array<string, int|string>...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Enums/AllowedOptions.php
src/Enums/AllowedOptions.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Enums; enum AllowedOptions: string { case Width = 'width'; case Height = 'height'; case Format = 'format'; case Quality = 'quality'; case Blur = 'blur'; case Contrast = 'contrast'; case Flip = 'flip'; case Ver...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/Enums/AllowedMimeTypes.php
src/Enums/AllowedMimeTypes.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\Enums; enum AllowedMimeTypes: string { case Jpeg = 'image/jpeg'; case Png = 'image/png'; case Webp = 'image/webp'; case Gif = 'image/gif'; /** * @return array<string> */ public static function all(): array ...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/src/ValueObjects/ImageSource.php
src/ValueObjects/ImageSource.php
<?php declare(strict_types=1); namespace AceOfAces\LaravelImageTransformUrl\ValueObjects; /** * @internal */ readonly class ImageSource { public function __construct( public readonly string $type, public readonly string $path, public readonly string $mime, public readonly ?strin...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Pest.php
tests/Pest.php
<?php use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Testing\TestResponse; use Intervention\Gif\Exceptions\NotReadableException; use Intervention\Image\Laravel\Facades\Image; use Pest\Expectation; uses(TestCase::class)->in(__DIR__); /* |---------------------------------------------------------...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/TestCase.php
tests/TestCase.php
<?php namespace AceOfAces\LaravelImageTransformUrl\Tests; use AceOfAces\LaravelImageTransformUrl\Enums\AllowedOptions; use AceOfAces\LaravelImageTransformUrl\ImageTransformUrlServiceProvider; use AceOfAces\LaravelImageTransformUrl\Traits\ManagesImageCache; use Illuminate\Contracts\Config\Repository; use Illuminate\Su...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/ArchTest.php
tests/ArchTest.php
<?php arch()->preset()->laravel(); arch('it will not use debugging functions') ->expect(['dd', 'dump']) ->each->not->toBeUsed();
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/HeadersTest.php
tests/Feature/HeadersTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); }); it('responds with the configured...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/CacheTest.php
tests/Feature/CacheTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); }); it('can serve from the cache aft...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/S3SourceTest.php
tests/Feature/S3SourceTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); Storage::fake('s3'); // Conf...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/SignedUrlTest.php
tests/Feature/SignedUrlTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Facades\ImageTransformUrl; use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/RateLimitTest.php
tests/Feature/RateLimitTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); }); it('can apply rate limiting to i...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/FacadeTest.php
tests/Feature/FacadeTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Exceptions\InvalidConfigurationException; use AceOfAces\LaravelImageTransformUrl\Facades\ImageTransformUrl; use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\URL; it('produces identical signed URLs for the signe...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/RejectionTest.php
tests/Feature/RejectionTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); }); it('returns 404 for non-existent...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/SourceDirectoriesTest.php
tests/Feature/SourceDirectoriesTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); Storage::fake('public'); }); it(...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/OptionsTest.php
tests/Feature/OptionsTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-transform-url.cache.disk')); })->with([ function () { ...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Feature/FormatTest.php
tests/Feature/FormatTest.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Enums\AllowedMimeTypes; use AceOfAces\LaravelImageTransformUrl\Tests\TestCase; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\Storage; beforeEach(function () { Cache::flush(); Storage::fake(config()->string('image-tra...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/tests/Unit/ExampleTest.php
tests/Unit/ExampleTest.php
<?php test('that true is true', function () { expect(true)->toBeTrue(); });
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/routes/image.php
routes/image.php
<?php declare(strict_types=1); use AceOfAces\LaravelImageTransformUrl\Http\Controllers\ImageTransformerController; use AceOfAces\LaravelImageTransformUrl\Http\Middleware\SignedImageTransformMiddleware; use Illuminate\Support\Facades\Route; Route::prefix(config()->string('image-transform-url.route_prefix'))->group(fu...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/config/image-transform-url.php
config/image-transform-url.php
<?php return [ /* |-------------------------------------------------------------------------- | Source Directories |-------------------------------------------------------------------------- | | Here you may configure the directories from which the image transformer | is allowed to serve im...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
ace-of-aces/laravel-image-transform-url
https://github.com/ace-of-aces/laravel-image-transform-url/blob/a92d29b0a6dcfdea34468b277f13687536143eef/resources/boost/guidelines/core.blade.php
resources/boost/guidelines/core.blade.php
## Laravel Image Transform URL - Laravel Image Transform URL is a Laravel package for transforming images on-the-fly via URL parameters, similar to Cloudflare Images. - Laravel Image Transform URL supports multiple transformation drivers, S3 storage, automatic caching, CDN integration and more. - The available transfo...
php
MIT
a92d29b0a6dcfdea34468b277f13687536143eef
2026-01-05T03:48:03.612578Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/ConstraintInterface.php
src/ConstraintInterface.php
<?php namespace League\JsonGuard; interface ConstraintInterface { /** * @param mixed $value * @param mixed $parameter * @param Validator $validator * * @return \League\JsonGuard\ValidationError|null * * @throws \League\JsonGuard\Exception\InvalidSchemaException */ publi...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/ValidationError.php
src/ValidationError.php
<?php namespace League\JsonGuard; final class ValidationError implements \JsonSerializable { const KEYWORD = 'keyword'; const PARAMETER = 'parameter'; const DATA = 'data'; const DATA_PATH = 'data_path'; const SCHEMA = 'schema'; const SCHEMA_PATH = 'schema_path'; const C...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/functions.php
src/functions.php
<?php namespace League\JsonGuard; /** * A helper function to quickly build an error from a validator instance. * * @param string $message * @param \League\JsonGuard\Validator $validator * * @return \League\JsonGuard\ValidationError */ function error($message, Validator $validator) { re...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Assert.php
src/Assert.php
<?php namespace League\JsonGuard; use League\JsonGuard\Exception\InvalidSchemaException; /** * Assertions to verify a schema is valid. */ final class Assert { /** * Validate an array has at least one element. * * @param array $value * @param string $keyword * @param string $pointer ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Validator.php
src/Validator.php
<?php namespace League\JsonGuard; use League\JsonGuard\Exception\MaximumDepthExceededException; use League\JsonGuard\RuleSet\DraftFour; use League\JsonReference\Reference; use Psr\Container\ContainerInterface; final class Validator { /** * @var array */ private $errors = []; /** * @var mi...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Exception/MaximumDepthExceededException.php
src/Exception/MaximumDepthExceededException.php
<?php namespace League\JsonGuard\Exception; final class MaximumDepthExceededException extends \RuntimeException { }
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Exception/ConstraintNotFoundException.php
src/Exception/ConstraintNotFoundException.php
<?php namespace League\JsonGuard\Exception; use Psr\Container\NotFoundExceptionInterface; final class ConstraintNotFoundException extends \Exception implements NotFoundExceptionInterface { public static function forRule($keyword) { return new static(sprintf('The constraint for "%s" was not found.', $...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Exception/InvalidSchemaException.php
src/Exception/InvalidSchemaException.php
<?php namespace League\JsonGuard\Exception; final class InvalidSchemaException extends \RuntimeException { /** * @var string */ private $keyword; /** * @var string */ private $pointer; /** * @param string $message * @param string $keyword * @param string $point...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/RuleSet/RuleSetContainer.php
src/RuleSet/RuleSetContainer.php
<?php namespace League\JsonGuard\RuleSet; use League\JsonGuard\Exception\ConstraintNotFoundException; use Psr\Container\ContainerInterface; /** * A lightweight container for building rule sets. */ class RuleSetContainer implements ContainerInterface { /** * @var \Closure[] */ private $rules = [];...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/RuleSet/DraftFour.php
src/RuleSet/DraftFour.php
<?php namespace League\JsonGuard\RuleSet; use League\JsonGuard\Constraint\DraftFour\AdditionalItems; use League\JsonGuard\Constraint\DraftFour\AdditionalProperties; use League\JsonGuard\Constraint\DraftFour\AllOf; use League\JsonGuard\Constraint\DraftFour\AnyOf; use League\JsonGuard\Constraint\DraftFour\Dependencies;...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Type.php
src/Constraint/DraftFour/Type.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\ValidationError; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Type implements ConstraintInterface { const KEYWORD = 'type'; /...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Enum.php
src/Constraint/DraftFour/Enum.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Enum implements ConstraintInterface { const KEYWORD = 'enum'; /** * {@inheritdoc} */ pu...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Items.php
src/Constraint/DraftFour/Items.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\pointer_push; final class Items implements ConstraintInterface { const KEYWORD = 'items'; /** * {@inheritdoc} ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Dependencies.php
src/Constraint/DraftFour/Dependencies.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; use function League\JsonGuard\pointer_push; final class Dependencies implements ConstraintInterface { const KEYWORD = ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MultipleOf.php
src/Constraint/DraftFour/MultipleOf.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MultipleOf implements ConstraintInterface { const KEYWORD = 'multipleOf'; /** * @var int|null ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MinItems.php
src/Constraint/DraftFour/MinItems.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MinItems implements ConstraintInterface { const KEYWORD = 'minItems'; /** * {@inheritdoc} *...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Required.php
src/Constraint/DraftFour/Required.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Required implements ConstraintInterface { const KEYWORD = 'required'; /** * {@inheritdoc} *...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/AdditionalItems.php
src/Constraint/DraftFour/AdditionalItems.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; use function League\JsonGuard\pointer_push; final class AdditionalItems implements ConstraintInterface { const KEYWORD...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MaxItems.php
src/Constraint/DraftFour/MaxItems.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MaxItems implements ConstraintInterface { const KEYWORD = 'maxItems'; /** * {@inheritdoc} *...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/PatternProperties.php
src/Constraint/DraftFour/PatternProperties.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\pointer_push; final class PatternProperties implements ConstraintInterface { const KEYWORD = 'patternPr...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/AdditionalProperties.php
src/Constraint/DraftFour/AdditionalProperties.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; use function League\JsonGuard\pointer_push; final class AdditionalProperties implements ConstraintIn...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MaxLength.php
src/Constraint/DraftFour/MaxLength.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MaxLength implements ConstraintInterface { const KEYWORD = 'maxLength'; /** ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Properties.php
src/Constraint/DraftFour/Properties.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\pointer_push; final class Properties implements ConstraintInterface { const KEYWORD = 'properties'; /** * {@inherit...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Not.php
src/Constraint/DraftFour/Not.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Not implements ConstraintInterface { const KEYWORD = 'not'; /** * {@inheritdoc} */ publ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MinProperties.php
src/Constraint/DraftFour/MinProperties.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MinProperties implements ConstraintInterface { const KEYWORD = 'minProperties'; /** * {@inheritd...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Format.php
src/Constraint/DraftFour/Format.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\Constraint\DraftFour\Format\FormatExtensionInterface; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; use League\JsonGuard\Exception\InvalidSchemaExce...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Minimum.php
src/Constraint/DraftFour/Minimum.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Minimum implements ConstraintInterface { const KEYWORD = 'minimum'; /** * @var int|null */ ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/AllOf.php
src/Constraint/DraftFour/AllOf.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\pointer_push; final class AllOf implements ConstraintInterface { const KEYWORD = 'allOf'; /** * {@inheritdoc} ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/UniqueItems.php
src/Constraint/DraftFour/UniqueItems.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class UniqueItems implements ConstraintInterface { const KEYWORD = 'uniqueItems'; /** * {@inheritdoc} ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MinLength.php
src/Constraint/DraftFour/MinLength.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MinLength implements ConstraintInterface { const KEYWORD = 'minLength'; /** ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/AnyOf.php
src/Constraint/DraftFour/AnyOf.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; use function League\JsonGuard\pointer_push; final class AnyOf implements ConstraintInterface { const KEYWORD = 'anyOf'...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/ExclusiveMinimum.php
src/Constraint/DraftFour/ExclusiveMinimum.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class ExclusiveMinimum implements ConstraintInterface { const KEYWORD = 'exclusiveMinimum'; /** * @var...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/ExclusiveMaximum.php
src/Constraint/DraftFour/ExclusiveMaximum.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class ExclusiveMaximum implements ConstraintInterface { const KEYWORD = 'exclusiveMaximum'; /** * @var...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Maximum.php
src/Constraint/DraftFour/Maximum.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Maximum implements ConstraintInterface { const KEYWORD = 'maximum'; /** * @var int|null */ ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/MaxProperties.php
src/Constraint/DraftFour/MaxProperties.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class MaxProperties implements ConstraintInterface { const KEYWORD = 'maxProperties'; /** * {@inheritd...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/OneOf.php
src/Constraint/DraftFour/OneOf.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; use function League\JsonGuard\pointer_push; final class OneOf implements ConstraintInterface { const KEYWORD = 'oneOf'...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Pattern.php
src/Constraint/DraftFour/Pattern.php
<?php namespace League\JsonGuard\Constraint\DraftFour; use League\JsonGuard; use League\JsonGuard\Assert; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Validator; use function League\JsonGuard\error; final class Pattern implements ConstraintInterface { const KEYWORD = 'pattern'; /** * ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/src/Constraint/DraftFour/Format/FormatExtensionInterface.php
src/Constraint/DraftFour/Format/FormatExtensionInterface.php
<?php namespace League\JsonGuard\Constraint\DraftFour\Format; use League\JsonGuard\Validator; interface FormatExtensionInterface { /** * @param string $value The value to validate * @param \League\JsonGuard\Validator $validator * * @return \League\JsonGuard\ValidationErro...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/ValidatorTest.php
tests/ValidatorTest.php
<?php namespace League\JsonGuard\Test; use League\JsonGuard; use League\JsonGuard\Constraint\DraftFour\Format\FormatExtensionInterface; use League\JsonGuard\ConstraintInterface; use League\JsonGuard\Exception\InvalidSchemaException; use League\JsonGuard\Exception\MaximumDepthExceededException; use League\JsonGuard\Ru...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/FunctionsTest.php
tests/FunctionsTest.php
<?php namespace League\JsonGuard\Test; use PHPUnit\Framework\TestCase; class FunctionsTest extends TestCase { public function validJsonIntegerDataProvider() { return [ ["98249283749234923498293171823948729348710298301928331", true], ["-98249283749234923498293171823948729348710...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/AssertTest.php
tests/AssertTest.php
<?php namespace League\JsonGuard\Test; use League\JsonGuard\Assert; use League\JsonGuard\Exception\InvalidSchemaException; use PHPUnit\Framework\TestCase; class AssertTest extends TestCase { function test_not_empty_when_invalid() { $this->throws('someConstraint', '/someConstraint'); Assert::n...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/benchmarks/Benchmark.php
tests/benchmarks/Benchmark.php
<?php namespace League\JsonGuard\Bench; /** * @BeforeMethods({"setUp"}) * @AfterMethods({"tearDown"}) */ abstract class Benchmark { public function setUp() { } public function tearDown() { } }
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/benchmarks/MetaSchemaValidationBench.php
tests/benchmarks/MetaSchemaValidationBench.php
<?php namespace League\JsonGuard\Bench; class MetaSchemaValidationBench extends ValidationBenchmark { public function getData() { return $this->getSchema(); } public function getSchema() { return json_decode(file_get_contents(__DIR__ . '/../fixtures/draft4-schema.json')); } }
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/benchmarks/SwaggerValidationBench.php
tests/benchmarks/SwaggerValidationBench.php
<?php namespace League\JsonGuard\Bench; class SwaggerValidationBench extends ValidationBenchmark { public function getData() { return json_decode(file_get_contents(__DIR__ . '/../fixtures/swagger2.json')); } public function getSchema() { return json_decode(file_get_contents(__DIR_...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/benchmarks/ValidationBenchmark.php
tests/benchmarks/ValidationBenchmark.php
<?php namespace League\JsonGuard\Bench; use League\JsonReference\Dereferencer; use League\JsonGuard\Validator; /** * @Groups({"validation"}) * @Revs(100) */ abstract class ValidationBenchmark extends Benchmark { protected $data; protected $schema; abstract public function getData(); abstract pu...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Exception/InvalidSchemaExceptionTest.php
tests/Exception/InvalidSchemaExceptionTest.php
<?php namespace League\JsonGuard\Test\Exception; use League\JsonGuard\Exception\InvalidSchemaException; use PHPUnit\Framework\TestCase; class InvalidSchemaExceptionTest extends TestCase { function test_can_get_keyword_and_pointer() { $e = new InvalidSchemaException('Invalid format', $keyword = 'forma...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/RuleSet/DraftFourRuleSetTest.php
tests/RuleSet/DraftFourRuleSetTest.php
<?php namespace League\JsonGuard\Test\RuleSet; use League\JsonGuard\Exception\ConstraintNotFoundException; use League\JsonGuard\RuleSet\DraftFour; use PHPUnit\Framework\TestCase; class DraftFourRuleSetTest extends TestCase { function test_has() { $ruleSet = new DraftFour(); $this->assertTrue(...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/EnumTest.php
tests/Constraint/EnumTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\Enum; use League\JsonGuard\Exception\InvalidSchemaException; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class EnumTest extends TestCase { function test_it_throws_when_parameter_is_not_an_array() {...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/RequiredTest.php
tests/Constraint/RequiredTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\Required; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class RequiredTest extends TestCase { function test_it_returns_property_name_in_error_message() { $required = new Required(); $...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/AdditionalPropertiesTest.php
tests/Constraint/AdditionalPropertiesTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class AdditionalPropertiesTest extends TestCase { function test_it_returns_property_name_in_message() { $data = ['prop-name' => 'Property value in test']; $data = json_decode(json...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/TypeTest.php
tests/Constraint/TypeTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\Type; use League\JsonGuard\ValidationError; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class TypeTest extends TestCase { function test_numeric_string_is_not_a_number() { $type = new Type()...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/MultipleOfTest.php
tests/Constraint/MultipleOfTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\MultipleOf; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class MultipleOfTest extends TestCase { function test_it_works_with_floats() { $constraint = new MultipleOf(); $result = $const...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/AllOfTest.php
tests/Constraint/AllOfTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\AllOf; use League\JsonGuard\Exception\InvalidSchemaException; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class AllOfTest extends TestCase { function test_it_throws_when_parameter_is_not_an_array() ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/FormatTest.php
tests/Constraint/FormatTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\Format; use League\JsonGuard\ValidationError; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; use League\JsonGuard\Constraint\DraftFour\Format\FormatExtensionInterface; use function League\JsonGuard\error; use ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
thephpleague/json-guard
https://github.com/thephpleague/json-guard/blob/d03dad6288f3b044f83edaaa3a1adcf71f8c757b/tests/Constraint/MinLengthTest.php
tests/Constraint/MinLengthTest.php
<?php namespace League\JsonGuard\Test\Constraint; use League\JsonGuard\Constraint\DraftFour\MinLength; use League\JsonGuard\ValidationError; use League\JsonGuard\Validator; use PHPUnit\Framework\TestCase; class MinLengthTest extends TestCase { function test_it_validates_multibyte_string_length_correctly() { ...
php
MIT
d03dad6288f3b044f83edaaa3a1adcf71f8c757b
2026-01-05T03:48:23.797463Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/RoboFile.php
RoboFile.php
<?php /** * This is project's console commands configuration for Robo task runner. * * @see http://robo.li/ */ class RoboFile extends \Robo\Tasks { /** * Creates release zip * * @param string $version * @see https://gist.github.com/Rarst/5a8a65478755539770df653c4575219a */ public fu...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Util.php
src/Upyun/Util.php
<?php namespace Upyun; class Util { public static function trim($str) { if (is_array($str)) { return array_map(array('Util', 'trim'), $str); } else { return trim($str); } } public static function getHeaderParams($headers, $otherParams = array()) { ...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Signature.php
src/Upyun/Signature.php
<?php namespace Upyun; /** * Class Signature * @package Upyun */ class Signature { /** * 获取分块上传接口的签名 */ const SIGN_MULTIPART = 1; /** * 生成视频处理接口的签名 */ const SIGN_VIDEO = 2; /** * 生成视频处理接口的签名(不需要操作员时使用) */ const SIGN_VIDEO_NO_OPERATOR = 3; /** ...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Upyun.php
src/Upyun/Upyun.php
<?php /** * 又拍云 PHP-SDK */ namespace Upyun; use Upyun\Api\Rest; use GuzzleHttp\Client; use GuzzleHttp\Psr7; use GuzzleHttp; /** * Class Upyun * * 又拍云云存储、云处理接口 * * Upyun 类实现了又拍云云存储和云处理的所有接口,通过该类可以实现文件上传、下载;图片视频等多媒体资源云处理。 * 本文档中,提到的"服务"是指又拍云文件加速回又拍云源类型的服务(即原先的存储类空间)。 * * @package Upyun */ class Upyun { ...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Uploader.php
src/Upyun/Uploader.php
<?php namespace Upyun; use Upyun\Api\Rest; use Upyun\Api\Form; use GuzzleHttp\Psr7; use GuzzleHttp\Pool; use GuzzleHttp\Client; class Uploader { /** * @var Config */ protected $config; protected $useBlock = false; public function __construct(Config $config) { $this->config = $...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Config.php
src/Upyun/Config.php
<?php namespace Upyun; /** * Class Config * * @package Upyun */ class Config { /** * @var string 服务名称,将会被弃用 */ public $bucketName; /** * @var string 服务名称 */ public $serviceName; /** * @var string 操作员名 */ public $operatorName; /** * @var string 操作员密码 m...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Api/SyncVideo.php
src/Upyun/Api/SyncVideo.php
<?php /** * 同步视频处理 */ namespace Upyun\Api; use GuzzleHttp\Client; use Upyun\Config; use Upyun\Signature; class SyncVideo { /** * @var Config */ protected $config; public function __construct(Config $config) { $this->config = $config; } public function process($params, $...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Api/Form.php
src/Upyun/Api/Form.php
<?php namespace Upyun\Api; use Upyun\Signature; use Upyun\Util; use GuzzleHttp\Client; class Form extends Rest { public function upload($path, $stream, $params) { $params['save-key'] = $path; $params['service'] = $this->config->serviceName; if (!isset($params['expiration'])) { ...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Api/Pretreat.php
src/Upyun/Api/Pretreat.php
<?php namespace Upyun\Api; use GuzzleHttp\Client; use Upyun\Config; use Upyun\Signature; use Upyun\Util; class Pretreat { /** * @var Config */ protected $config; public function __construct(Config $config) { if (!$config->processNotifyUrl) { throw new \Exception("should...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/src/Upyun/Api/Rest.php
src/Upyun/Api/Rest.php
<?php namespace Upyun\Api; use GuzzleHttp\Client; use GuzzleHttp\Psr7; use Upyun\Config; use Upyun\Signature; use Upyun\Util; class Rest { /** * @var Config */ protected $config; protected $endpoint; protected $method; protected $storagePath; public $headers = []; /** * @...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/tests/UpyunTest.php
tests/UpyunTest.php
<?php namespace Upyun\Tests; use Upyun\Config; use Upyun\Upyun; class UpyunTest extends \PHPUnit_Framework_TestCase { /** * @var Upyun */ public static $upyun; protected static $taskId; protected static $tempFilePath; public static function setUpBeforeClass() { $config =...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/tests/SignatureTest.php
tests/SignatureTest.php
<?php namespace Upyun\Tests; use Upyun\Signature; use Upyun\Config; class SignatureTest extends \PHPUnit_Framework_TestCase { /** * @var Config; */ public $config; public function setUp() { $this->config = new Config('bucket', 'operator', 'password'); } public function tes...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/tests/bootstrap.php
tests/bootstrap.php
<?php require dirname(__DIR__) . '/vendor/autoload.php'; define('USER_NAME', 'tester'); define('PWD', 'grjxv2mxELR3'); define('BUCKET', 'sdkimg'); define('PIC_PATH', dirname(__FILE__) . '/assets/sample.jpeg'); define('PIC_SIZE', filesize(PIC_PATH)); function getFileUrl($path) { return "http://" . BUCKET . ".b0.up...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/examples/Async-Process.php
examples/Async-Process.php
<?php /** * 又拍云 PHP-SDK 异步云处理使用实例 * 测试与运行例子的时,用户需要根据自己的需求填写对应的配置(User-Profle.php),参数 */ require __DIR__ . '/User-Profile.php'; use Upyun\Config; use Upyun\Upyun; $config = new Config(SERVICE, USER_NAME, PWD); $config->processNotifyUrl = NOTIFY_URL; $client = new Upyun($config); /** * 异步音视频处理 * tasks参数与说明见:htt...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/examples/Pre-Process.php
examples/Pre-Process.php
<?php /** * 又拍云 PHP-SDK 上传预处理使用实例 * 测试与运行例子的时,用户需要根据自己的需求填写对应的配置(User-Profle.php),参数 */ require __DIR__ . '/User-Profile.php'; use Upyun\Config; use Upyun\Upyun; $config = new Config(SERVICE, USER_NAME, PWD); $client = new Upyun($config); /** * 通用form上传预处理 */ function formAsyncPreProcess($file, $key, $apps=a...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/examples/list-all-file.php
examples/list-all-file.php
<?php require __DIR__ . '/../tests/bootstrap.php'; use Upyun\Config; use Upyun\Upyun; $config = new Config(BUCKET, USER_NAME, PWD); $upyun = new Upyun($config); $start = null; $total = 0; do { $list = $upyun->read('/', null, array( 'X-List-Limit' => 100, 'X-List-Iter' => $start, )); if ...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/examples/User-Profile.php
examples/User-Profile.php
<?php /** * 又拍云 PHP-SDK examle 用户配置文件 * 测试与运行例子的时,用户需要根据自己的需求填写对应的配置,参数 */ require dirname(__DIR__) . '/vendor/autoload.php'; /** * 用户操作员名 */ define('USER_NAME', ''); /** * 用户服务名 */ define('SERVICE', ''); /** * 用户密码 */ define('PWD', ''); /** * 指定的通知URL */ define('NOTIFY_URL', ''); /** * 本地图片路径,适用于图片文件...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false
upyun/php-sdk
https://github.com/upyun/php-sdk/blob/c9f824626552c32b987de4ac7f136e0e21cca962/examples/Ai.php
examples/Ai.php
<?php /** * 又拍云 PHP-SDK 人工智能使用实例 * 测试与运行例子的时,用户需要根据自己的需求填写对应的配置(User-Profle.php),参数 */ require __DIR__ . '/User-Profile.php'; use Upyun\Config; use Upyun\Api\Pretreat; use Upyun\Api\SyncVideo; $config = new Config(SERVICE, USER_NAME, PWD); $config->processNotifyUrl = NOTIFY_URL; $client = new Pretreat($config);...
php
MIT
c9f824626552c32b987de4ac7f136e0e21cca962
2026-01-05T03:48:24.554948Z
false