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
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/LocalParcelTest.php
test/LocalParcelTest.php
<?php declare(strict_types=1); namespace Amp\Sync; class LocalParcelTest extends AbstractParcelTest { protected function createParcel(mixed $value): Parcel { return new LocalParcel(new LocalMutex(), $value); } }
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/SynchronizedTest.php
test/SynchronizedTest.php
<?php declare(strict_types=1); namespace Amp\Sync; use Amp\PHPUnit\AsyncTestCase; use function Amp\async; use function Amp\delay; use function Amp\Future\await; final class SynchronizedTest extends AsyncTestCase { public function testSynchronized(): void { $this->setMinimumRuntime(0.3); $mut...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/PosixSemaphoreTest.php
test/PosixSemaphoreTest.php
<?php declare(strict_types=1); namespace Amp\Sync; use function Amp\async; use function Amp\delay; /** * @group posix * @requires extension sysvmsg */ class PosixSemaphoreTest extends AbstractSemaphoreTest { private const ID = __CLASS__; public function makeId(): string { return \spl_object_h...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/SharedMemoryParcelTest.php
test/SharedMemoryParcelTest.php
<?php declare(strict_types=1); namespace Amp\Sync; /** * @requires extension shmop * @requires extension sysvmsg */ class SharedMemoryParcelTest extends AbstractParcelTest { const ID = __CLASS__ . '3'; private ?SharedMemoryParcel $parcel; public function tearDown(): void { $this->parcel =...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/LocalKeyedSemaphoreTest.php
test/LocalKeyedSemaphoreTest.php
<?php declare(strict_types=1); namespace Amp\Sync; class LocalKeyedSemaphoreTest extends AbstractKeyedSemaphoreTest { public function createSemaphore(int $size): KeyedSemaphore { return new LocalKeyedSemaphore($size); } }
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/AbstractParcelTest.php
test/AbstractParcelTest.php
<?php declare(strict_types=1); namespace Amp\Sync; use Amp\PHPUnit\AsyncTestCase; use function Amp\async; use function Amp\delay; abstract class AbstractParcelTest extends AsyncTestCase { public function testUnwrapIsOfCorrectType(): void { $parcel = $this->createParcel(new \stdClass); self::a...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/PriorityQueueTest.php
test/PriorityQueueTest.php
<?php declare(strict_types=1); namespace Amp\Sync; use PHPUnit\Framework\TestCase; class PriorityQueueTest extends TestCase { public function provideTestValues(): iterable { return [ [100, 0, 0], [100, 0, 10], [100, 10, 0], [100, 10, 10], [1...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/AbstractKeyedMutexTest.php
test/AbstractKeyedMutexTest.php
<?php declare(strict_types=1); namespace Amp\Sync; use Amp\PHPUnit\AsyncTestCase; use Revolt\EventLoop; use function Amp\delay; abstract class AbstractKeyedMutexTest extends AsyncTestCase { abstract public function createMutex(): KeyedMutex; public function testAcquire(): void { $mutex = $this->...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/test/AbstractKeyedSemaphoreTest.php
test/AbstractKeyedSemaphoreTest.php
<?php declare(strict_types=1); namespace Amp\Sync; use Amp\PHPUnit\AsyncTestCase; use Revolt\EventLoop; use function Amp\delay; abstract class AbstractKeyedSemaphoreTest extends AsyncTestCase { abstract public function createSemaphore(int $size): KeyedSemaphore; public function testAcquire(): void { ...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/examples/synchronized.php
examples/synchronized.php
<?php declare(strict_types=1); use Amp\Sync\LocalMutex; use function Amp\async; use function Amp\delay; use function Amp\Future\await; use function Amp\Sync\synchronized; require __DIR__ . '/../vendor/autoload.php'; $mutex = new LocalMutex; $task = function (string $identifier) use ($mutex) { print "[$identifie...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/examples/parcel.php
examples/parcel.php
<?php declare(strict_types=1); use Amp\Future; use Amp\Sync\LocalMutex; use Amp\Sync\LocalParcel; use function Amp\async; use function Amp\delay; require __DIR__ . '/../vendor/autoload.php'; /** @var LocalParcel<int> $parcel */ $parcel = new LocalParcel(new LocalMutex(), 42); $future1 = async(function () use ($parc...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/examples/mutex.php
examples/mutex.php
<?php declare(strict_types=1); use Amp\Sync\LocalMutex; use function Amp\async; use function Amp\delay; use function Amp\Future\await; require __DIR__ . '/../vendor/autoload.php'; $mutex = new LocalMutex; $task = function (string $identifier) use ($mutex) { print "[$identifier] Starting" . \PHP_EOL; for ($...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
amphp/sync
https://github.com/amphp/sync/blob/217097b785130d77cfcc58ff583cf26cd1770bf1/examples/channel.php
examples/channel.php
<?php declare(strict_types=1); use Amp\Future; use Amp\Sync\Channel; use function Amp\async; use function Amp\delay; use function Amp\Sync\createChannelPair; require __DIR__ . '/../vendor/autoload.php'; /** * @var Channel<int, int> $left * @var Channel<int, int> $right */ [$left, $right] = createChannelPair(); $...
php
MIT
217097b785130d77cfcc58ff583cf26cd1770bf1
2026-01-05T03:03:36.322098Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/Vector.php
src/Vector.php
<?php namespace Pgvector; class Vector { protected array $value; public function __construct(mixed $value) { if (is_string($value)) { try { $value = json_decode($value, true, 2, JSON_THROW_ON_ERROR); } catch (\Exception $e) { // do nothing ...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/HalfVector.php
src/HalfVector.php
<?php namespace Pgvector; class HalfVector { protected array $value; public function __construct(mixed $value) { if (is_string($value)) { try { $value = json_decode($value, true, 2, JSON_THROW_ON_ERROR); } catch (\Exception $e) { // do nothi...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/SparseVector.php
src/SparseVector.php
<?php namespace Pgvector; class SparseVector { protected int $dimensions; protected array $indices; protected array $values; public function __construct(mixed $value, mixed $dimensions = null) { $numArgs = func_num_args(); if (is_string($value)) { if ($numArgs > 1) { ...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/Distance.php
src/laravel/Distance.php
<?php namespace Pgvector\Laravel; enum Distance { case L2; case InnerProduct; case Cosine; case L1; case Hamming; case Jaccard; }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/Vector.php
src/laravel/Vector.php
<?php namespace Pgvector\Laravel; use Illuminate\Contracts\Database\Eloquent\Castable; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Database\Eloquent\Model; class Vector extends \Pgvector\Vector implements Castable { public static function castUsing(array $arguments): CastsAttribute...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/PgvectorServiceProvider.php
src/laravel/PgvectorServiceProvider.php
<?php namespace Pgvector\Laravel; use Illuminate\Support\ServiceProvider; class PgvectorServiceProvider extends ServiceProvider { /** * Register services. */ public function register(): void { // } /** * Bootstrap services. */ public function boot(): void { ...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/Schema.php
src/laravel/Schema.php
<?php namespace Pgvector\Laravel; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\ColumnDefinition; use Illuminate\Database\Schema\Grammars\PostgresGrammar; class Schema { public static function register(): void { PostgresGrammar::macro('typeVector', function (ColumnDefinitio...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/HalfVector.php
src/laravel/HalfVector.php
<?php namespace Pgvector\Laravel; use Illuminate\Contracts\Database\Eloquent\Castable; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Database\Eloquent\Model; class HalfVector extends \Pgvector\HalfVector implements Castable { public static function castUsing(array $arguments): CastsA...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/SparseVector.php
src/laravel/SparseVector.php
<?php namespace Pgvector\Laravel; use Illuminate\Contracts\Database\Eloquent\Castable; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use Illuminate\Database\Eloquent\Model; class SparseVector extends \Pgvector\SparseVector implements Castable { public static function castUsing(array $arguments): Ca...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/HasNeighbors.php
src/laravel/HasNeighbors.php
<?php namespace Pgvector\Laravel; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Eloquent\MissingAttributeException; trait HasNeighbors { public function scopeNearestNeighbors(Builder $query, string $column, mixed $value, Distance $distance): void { switch ($distance) { ...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/laravel/migrations/2022_08_03_000000_create_vector_extension.php
src/laravel/migrations/2022_08_03_000000_create_vector_extension.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\DB; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement('CREATE EXTENSION IF NOT EXISTS vector'); } /** * Reverse...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/L2Distance.php
src/doctrine/L2Distance.php
<?php namespace Pgvector\Doctrine; class L2Distance extends DistanceNode { protected function getOp(): string { return '<->'; } }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/VectorType.php
src/doctrine/VectorType.php
<?php namespace Pgvector\Doctrine; use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; use Pgvector\Vector; class VectorType extends Type { public function getName(): string { return 'vector'; } public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatfo...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/HammingDistance.php
src/doctrine/HammingDistance.php
<?php namespace Pgvector\Doctrine; class HammingDistance extends DistanceNode { protected function getOp(): string { return '<~>'; } }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/MaxInnerProduct.php
src/doctrine/MaxInnerProduct.php
<?php namespace Pgvector\Doctrine; class MaxInnerProduct extends DistanceNode { protected function getOp(): string { return '<#>'; } }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/DistanceNode.php
src/doctrine/DistanceNode.php
<?php namespace Pgvector\Doctrine; use Doctrine\ORM\Query\AST; use Doctrine\ORM\Query\AST\Functions\FunctionNode; use Doctrine\ORM\Query\Parser; use Doctrine\ORM\Query\SqlWalker; use Doctrine\ORM\Query\TokenType; abstract class DistanceNode extends FunctionNode { public AST\Node|string $left; public AST\Node...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/BitType.php
src/doctrine/BitType.php
<?php namespace Pgvector\Doctrine; use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; class BitType extends Type { public function getName(): string { return 'bit'; } public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string {...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/L1Distance.php
src/doctrine/L1Distance.php
<?php namespace Pgvector\Doctrine; class L1Distance extends DistanceNode { protected function getOp(): string { return '<+>'; } }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/PgvectorSetup.php
src/doctrine/PgvectorSetup.php
<?php namespace Pgvector\Doctrine; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\Configuration; use Doctrine\ORM\EntityManager; class PgvectorSetup { public static function registerTypes(EntityManager $entityManager): void { self::addTypes(); sel...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/CosineDistance.php
src/doctrine/CosineDistance.php
<?php namespace Pgvector\Doctrine; class CosineDistance extends DistanceNode { protected function getOp(): string { return '<=>'; } }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/SparseVectorType.php
src/doctrine/SparseVectorType.php
<?php namespace Pgvector\Doctrine; use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; use Pgvector\SparseVector; class SparseVectorType extends Type { public function getName(): string { return 'sparsevec'; } public function getSQLDeclaration(array $fieldDeclaration,...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/HalfVectorType.php
src/doctrine/HalfVectorType.php
<?php namespace Pgvector\Doctrine; use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; use Pgvector\HalfVector; class HalfVectorType extends Type { public function getName(): string { return 'halfvec'; } public function getSQLDeclaration(array $fieldDeclaration, Abstr...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/src/doctrine/JaccardDistance.php
src/doctrine/JaccardDistance.php
<?php namespace Pgvector\Doctrine; class JaccardDistance extends DistanceNode { protected function getOp(): string { return '<%>'; } }
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/HalfVectorTest.php
tests/HalfVectorTest.php
<?php use PHPUnit\Framework\TestCase; use Pgvector\HalfVector; final class HalfVectorTest extends TestCase { public function testToString() { $embedding = new HalfVector([1, 2, 3]); $this->assertEquals('[1,2,3]', (string) $embedding); } public function testToArray() { $em...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/VectorTest.php
tests/VectorTest.php
<?php use PHPUnit\Framework\TestCase; use Pgvector\Vector; final class VectorTest extends TestCase { public function testToString() { $embedding = new Vector([1, 2, 3]); $this->assertEquals('[1,2,3]', (string) $embedding); } public function testToArray() { $embedding = ne...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/PgSqlTest.php
tests/PgSqlTest.php
<?php use PHPUnit\Framework\TestCase; use Pgvector\HalfVector; use Pgvector\SparseVector; use Pgvector\Vector; final class PgSqlTest extends TestCase { public function testWorks() { $db = pg_connect('postgres://localhost/pgvector_php_test'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vect...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/LaravelTest.php
tests/LaravelTest.php
<?php use PHPUnit\Framework\TestCase; use Illuminate\Database\Capsule\Manager as Capsule; use Illuminate\Database\Eloquent\MissingAttributeException; use Illuminate\Database\Eloquent\Model; use Pgvector\Laravel\Distance; use Pgvector\Laravel\HasNeighbors; use Pgvector\Laravel\Vector; use Pgvector\Laravel\HalfVector; ...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/DoctrineTest.php
tests/DoctrineTest.php
<?php use PHPUnit\Framework\TestCase; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Exception\TableNotFoundException; use Doctrine\DBAL\Types\Type; use Doctrine\ORM\EntityManager; use Doctrine\ORM\ORMSetup; use Doctrine\ORM\Query\ResultSetMappingBuilder; use Doctrine\ORM\Tools\SchemaTool; use Pgvector\Doctrine\P...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/SparseVectorTest.php
tests/SparseVectorTest.php
<?php use PHPUnit\Framework\TestCase; use Pgvector\SparseVector; final class SparseVectorTest extends TestCase { public function testFromDense() { $embedding = new SparseVector([1, 0, 2, 0, 3, 0]); $this->assertEquals(6, $embedding->dimensions()); $this->assertEquals([0, 2, 4], $embed...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/tests/models/DoctrineItem.php
tests/models/DoctrineItem.php
<?php use Doctrine\ORM\Mapping as ORM; use Pgvector\HalfVector; use Pgvector\SparseVector; use Pgvector\Vector; #[ORM\Entity] #[ORM\Table(name: 'doctrine_items')] class DoctrineItem { #[ORM\Id] #[ORM\Column(type: 'integer')] #[ORM\GeneratedValue] private ?int $id = null; #[ORM\Column(type: 'vecto...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/openai/example.php
examples/openai/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pgvector\Vector; $db = pg_connect('postgres://localhost/pgvector_example'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vector'); pg_query($db, 'DROP TABLE IF EXISTS documents'); pg_query($db, 'CREATE TABLE documents (id bigserial PRIMARY KEY, content text,...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/cohere/example.php
examples/cohere/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; $db = pg_connect('postgres://localhost/pgvector_example'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vector'); pg_query($db, 'DROP TABLE IF EXISTS documents'); pg_query($db, 'CREATE TABLE documents (id bigserial PRIMARY KEY, content text, embedding bit(1536))'...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/pgsql/example.php
examples/pgsql/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pgvector\Vector; $db = pg_connect('postgres://localhost/pgvector_example'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vector'); pg_query($db, 'DROP TABLE IF EXISTS items'); pg_query($db, 'CREATE TABLE items (id bigserial PRIMARY KEY, embedding vector(3))'...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/disco/example.php
examples/disco/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pgvector\Vector; $db = pg_connect('postgres://localhost/pgvector_example'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vector'); pg_query($db, 'DROP TABLE IF EXISTS users'); pg_query($db, 'DROP TABLE IF EXISTS movies'); pg_query($db, 'CREATE TABLE users (i...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/citus/example.php
examples/citus/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pgvector\Vector; ini_set('memory_limit', '512M'); // generate random data $rows = 100000; $dimensions = 128; $embeddings = []; $categories = []; for ($i = 0; $i < $rows; $i++) { $embedding = []; for ($j = 0; $j < $dimensions; $j++) { $embeddin...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/hybrid/example.php
examples/hybrid/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pgvector\Vector; $db = pg_connect('postgres://localhost/pgvector_example'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vector'); pg_query($db, 'DROP TABLE IF EXISTS documents'); pg_query($db, 'CREATE TABLE documents (id bigserial PRIMARY KEY, content text,...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/sparse/example.php
examples/sparse/example.php
<?php // good resources // https://opensearch.org/blog/improving-document-retrieval-with-sparse-semantic-encoders/ // https://huggingface.co/opensearch-project/opensearch-neural-sparse-encoding-v1 // // run with // text-embeddings-router --model-id opensearch-project/opensearch-neural-sparse-encoding-v1 --pooling spla...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/rdkit/example.php
examples/rdkit/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; function generateFingerprint($molecule) { return RDKit\Molecule::fromSmiles($molecule)->morganFingerprint(); } $db = pg_connect('postgres://localhost/pgvector_example'); pg_query($db, 'CREATE EXTENSION IF NOT EXISTS vector'); pg_query($db, 'DROP TABLE IF EXIS...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
pgvector/pgvector-php
https://github.com/pgvector/pgvector-php/blob/2d510b231d859f26f6d58227911d4c08af725e7b/examples/loading/example.php
examples/loading/example.php
<?php require_once __DIR__ . '/vendor/autoload.php'; use Pgvector\Vector; ini_set('memory_limit', '512M'); // generate random data $rows = 100000; $dimensions = 128; $embeddings = []; for ($i = 0; $i < $rows; $i++) { $embedding = []; for ($j = 0; $j < $dimensions; $j++) { $embedding[] = rand() / get...
php
MIT
2d510b231d859f26f6d58227911d4c08af725e7b
2026-01-05T03:03:44.778738Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/RequestMigrationsMiddleware.php
src/RequestMigrationsMiddleware.php
<?php namespace TomSchlick\RequestMigrations; use Closure; use Illuminate\Container\Container; use Illuminate\Http\Request; use Illuminate\Support\Facades\Config; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\HttpException; class RequestMigrationsMiddleware { /** ...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/RequestMigration.php
src/RequestMigration.php
<?php namespace TomSchlick\RequestMigrations; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; abstract class RequestMigration { /** * Migrate the request for the application to "read". * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Reques...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/RequestMigrationsServiceProvider.php
src/RequestMigrationsServiceProvider.php
<?php namespace TomSchlick\RequestMigrations; use Illuminate\Support\Facades\Config; use Illuminate\Support\ServiceProvider; use TomSchlick\RequestMigrations\Commands\RequestMigrationMakeCommand; class RequestMigrationsServiceProvider extends ServiceProvider { /** * Bootstrap the application services. ...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Migrator.php
src/Migrator.php
<?php namespace TomSchlick\RequestMigrations; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Event; use Symfony\Component\HttpFoundation\Response; use TomSchlick\RequestMigrations\Events\RequestHasMigrated; use TomSchlick\RequestMigrations\Ev...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Facades/RequestMigrations.php
src/Facades/RequestMigrations.php
<?php namespace TomSchlick\RequestMigrations\Facades; use Illuminate\Support\Facades\Facade; class RequestMigrations extends Facade { protected static function getFacadeAccessor() { return 'request-migrations'; } }
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Commands/RequestMigrationMakeCommand.php
src/Commands/RequestMigrationMakeCommand.php
<?php namespace TomSchlick\RequestMigrations\Commands; use Illuminate\Console\GeneratorCommand; class RequestMigrationMakeCommand extends GeneratorCommand { /** * The console command name. * * @var string */ protected $name = 'make:request-migration'; /** * The console command d...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Events/RequestIsMigrating.php
src/Events/RequestIsMigrating.php
<?php namespace TomSchlick\RequestMigrations\Events; use Illuminate\Http\Request; use TomSchlick\RequestMigrations\RequestMigration; class RequestIsMigrating { /** * @var \TomSchlick\RequestMigrations\RequestMigration */ public $migration; /** * @var \Illuminate\Http\Request */ p...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Events/RequestHasMigrated.php
src/Events/RequestHasMigrated.php
<?php namespace TomSchlick\RequestMigrations\Events; use Illuminate\Http\Request; use TomSchlick\RequestMigrations\RequestMigration; class RequestHasMigrated { /** * @var \TomSchlick\RequestMigrations\RequestMigration */ public $migration; /** * @var \Illuminate\Http\Request */ p...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Events/ResponseIsMigrating.php
src/Events/ResponseIsMigrating.php
<?php namespace TomSchlick\RequestMigrations\Events; use Symfony\Component\HttpFoundation\Response; use TomSchlick\RequestMigrations\RequestMigration; class ResponseIsMigrating { /** * @var \TomSchlick\RequestMigrations\RequestMigration */ public $migration; /** * @var \Symfony\Component\...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/src/Events/ResponseHasMigrated.php
src/Events/ResponseHasMigrated.php
<?php namespace TomSchlick\RequestMigrations\Events; use Symfony\Component\HttpFoundation\Response; use TomSchlick\RequestMigrations\RequestMigration; class ResponseHasMigrated { /** * @var \TomSchlick\RequestMigrations\RequestMigration */ public $migration; /** * @var \Symfony\Component\...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/RequestAndResponseTest.php
tests/RequestAndResponseTest.php
<?php namespace TomSchlick\RequestMigrations\Tests; use TomSchlick\RequestMigrations\Facades\RequestMigrations; class RequestAndResponseTest extends TestCase { /** @test */ public function it_will_send_the_current_version() { $response = $this->get('/users/show', [ 'x-api-request-vers...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/EventTest.php
tests/EventTest.php
<?php namespace TomSchlick\RequestMigrations\Tests; use Illuminate\Support\Facades\Event; use TomSchlick\RequestMigrations\Events\RequestHasMigrated; use TomSchlick\RequestMigrations\Events\RequestIsMigrating; use TomSchlick\RequestMigrations\Tests\Migrations\GroupNameMigration; use TomSchlick\RequestMigrations\Tests...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/TestCase.php
tests/TestCase.php
<?php namespace TomSchlick\RequestMigrations\Tests; use Illuminate\Contracts\Http\Kernel; use Illuminate\Http\Request; use Illuminate\Support\Facades\Event; use Illuminate\Support\Facades\Route; use Orchestra\Testbench\TestCase as Orchestra; use TomSchlick\RequestMigrations\RequestMigrationsMiddleware; use TomSchlick...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/ResponseTest.php
tests/ResponseTest.php
<?php namespace TomSchlick\RequestMigrations\Tests; use Symfony\Component\HttpKernel\Exception\HttpException; use TomSchlick\RequestMigrations\Facades\RequestMigrations; class ResponseTest extends TestCase { /** @test */ public function it_will_migrate_through_response_multiple_versions() { $resp...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/RequestTest.php
tests/RequestTest.php
<?php namespace TomSchlick\RequestMigrations\Tests; use Symfony\Component\HttpKernel\Exception\HttpException; use TomSchlick\RequestMigrations\Facades\RequestMigrations; class RequestTest extends TestCase { /** @test */ public function it_can_transform_a_request() { $response = $this->post( ...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/MigratorTest.php
tests/MigratorTest.php
<?php namespace TomSchlick\RequestMigrations\Tests; class MigratorTest extends TestCase { /** @test */ public function it_will_send_the_current_version() { $response = $this->get('/users/show', [ 'x-api-request-version' => '2017-03-03', 'x-api-response-version' => '2017-03...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/Migrations/PostTitleMigration.php
tests/Migrations/PostTitleMigration.php
<?php namespace TomSchlick\RequestMigrations\Tests\Migrations; use Illuminate\Http\Request; use TomSchlick\RequestMigrations\RequestMigration; class PostTitleMigration extends RequestMigration { /** * Migrate the request for the application to "read". * * @param \Illuminate\Http\Request $request...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/Migrations/TitleMigration.php
tests/Migrations/TitleMigration.php
<?php namespace TomSchlick\RequestMigrations\Tests\Migrations; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; use TomSchlick\RequestMigrations\RequestMigration; class TitleMigration extends RequestMigration { /** * Migrate the request for the application to "read". * *...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/Migrations/GroupNameMigration.php
tests/Migrations/GroupNameMigration.php
<?php namespace TomSchlick\RequestMigrations\Tests\Migrations; use Arr; use Illuminate\Http\Request; use Symfony\Component\HttpFoundation\Response; use TomSchlick\RequestMigrations\RequestMigration; class GroupNameMigration extends RequestMigration { /** * Migrate the request for the application to "read". ...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/tests/Migrations/PostBodyMigration.php
tests/Migrations/PostBodyMigration.php
<?php namespace TomSchlick\RequestMigrations\Tests\Migrations; use Illuminate\Http\Request; use TomSchlick\RequestMigrations\RequestMigration; class PostBodyMigration extends RequestMigration { /** * Migrate the request for the application to "read". * * @param \Illuminate\Http\Request $request ...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
tomschlick/request-migrations
https://github.com/tomschlick/request-migrations/blob/689eb599d3de73c011afa11f698710d972640ccf/config/config.php
config/config.php
<?php return [ 'headers' => [ 'current-version' => 'x-api-current-version', 'request-version' => 'x-api-request-version', 'response-version' => 'x-api-response-version', ], 'current_version' => '', 'versions' => [ 'YYYY-MM-DD' => [ // \App\Http\Mi...
php
MIT
689eb599d3de73c011afa11f698710d972640ccf
2026-01-05T03:03:54.339696Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/IdeHelperPlugin.php
src/IdeHelperPlugin.php
<?php namespace IdeHelper; use Cake\Console\CommandCollection; use Cake\Core\BasePlugin; use IdeHelper\Command\Annotate\AllCommand; use IdeHelper\Command\Annotate\CallbacksCommand; use IdeHelper\Command\Annotate\ClassesCommand; use IdeHelper\Command\Annotate\CommandsCommand; use IdeHelper\Command\Annotate\ComponentsC...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/UsesAnnotation.php
src/Annotation/UsesAnnotation.php
<?php namespace IdeHelper\Annotation; class UsesAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@uses'; protected string $description; /** * @param string $type * @param int|null $index */ public function __construct($type, $index = null) { $description = ''; if ...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/AnnotationInterface.php
src/Annotation/AnnotationInterface.php
<?php namespace IdeHelper\Annotation; interface AnnotationInterface { /** * @return string */ public function getDescription(): string; /** * @return string */ public function build(): string; }
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/ExtendsAnnotation.php
src/Annotation/ExtendsAnnotation.php
<?php namespace IdeHelper\Annotation; class ExtendsAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@extends'; protected string $description; /** * @param string $type * @param int|null $index */ public function __construct(string $type, ?int $index = null) { $descr...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/LinkAnnotation.php
src/Annotation/LinkAnnotation.php
<?php namespace IdeHelper\Annotation; class LinkAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@link'; protected string $description; /** * @param string $type * @param int|null $index */ public function __construct($type, $index = null) { $description = ''; if ...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/ParamAnnotation.php
src/Annotation/ParamAnnotation.php
<?php namespace IdeHelper\Annotation; class ParamAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@param'; protected string $variable; protected string $description; /** * @param string $type * @param string $variable * @param int|null $index */ public function __...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/AbstractAnnotation.php
src/Annotation/AbstractAnnotation.php
<?php namespace IdeHelper\Annotation; use RuntimeException; abstract class AbstractAnnotation implements AnnotationInterface, ReplacableAnnotationInterface { /** * @var string */ public const TAG = ''; protected string $type; protected ?int $index; /** * Needed for removing annotations */ protected...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/PropertyReadAnnotation.php
src/Annotation/PropertyReadAnnotation.php
<?php namespace IdeHelper\Annotation; class PropertyReadAnnotation extends PropertyAnnotation { /** * @var string */ public const TAG = '@property-read'; }
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/ReplacableAnnotationInterface.php
src/Annotation/ReplacableAnnotationInterface.php
<?php namespace IdeHelper\Annotation; interface ReplacableAnnotationInterface { /** * @param \IdeHelper\Annotation\AbstractAnnotation $annotation * * @return bool */ public function matches(AbstractAnnotation $annotation): bool; /** * @param \IdeHelper\Annotation\AbstractAnnotation $annotation * * ...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/VariableAnnotation.php
src/Annotation/VariableAnnotation.php
<?php namespace IdeHelper\Annotation; class VariableAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@var'; protected string $variable; protected string $description; protected bool $guessed = false; /** * @param string $type * @param string $variable * @param int|...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/MixinAnnotation.php
src/Annotation/MixinAnnotation.php
<?php namespace IdeHelper\Annotation; class MixinAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@mixin'; protected string $description; /** * @param string $type * @param int|null $index */ public function __construct($type, $index = null) { $description = ''; i...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/PropertyAnnotation.php
src/Annotation/PropertyAnnotation.php
<?php namespace IdeHelper\Annotation; class PropertyAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@property'; protected string $property; protected string $description; /** * @param string $type * @param string $property * @param int|null $index */ public funct...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/AnnotationFactory.php
src/Annotation/AnnotationFactory.php
<?php namespace IdeHelper\Annotation; use RuntimeException; class AnnotationFactory { protected string $property; /** * @param string $tag * @param string $type * @param string|null $content * @param int|null $index * @return \IdeHelper\Annotation\AbstractAnnotation|null */ public static function cr...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/SeeAnnotation.php
src/Annotation/SeeAnnotation.php
<?php namespace IdeHelper\Annotation; class SeeAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@see'; protected string $description; /** * @param string $type * @param int|null $index */ public function __construct($type, $index = null) { $description = ''; if (s...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Annotation/MethodAnnotation.php
src/Annotation/MethodAnnotation.php
<?php namespace IdeHelper\Annotation; class MethodAnnotation extends AbstractAnnotation { /** * @var string */ public const TAG = '@method'; protected string $method; protected string $description; /** * @param string $type * @param string $method * @param int|null $index */ public function __co...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Console/Io.php
src/Console/Io.php
<?php namespace IdeHelper\Console; use Cake\Command\Command; use Cake\Console\ConsoleIo; use Cake\Console\Exception\StopException; /** * Composition class as proxy towards ConsoleIO - basically a shell replacement for inside business logic. */ class Io { protected ConsoleIo $_io; /** * Output at the verbose ...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/ValueObject/LiteralName.php
src/ValueObject/LiteralName.php
<?php namespace IdeHelper\ValueObject; /** * Holds a string that will be treated literally on output (no extra quoting). */ class LiteralName implements ValueObjectInterface { protected string $value; /** * @param string $value */ private function __construct(string $value) { $this->value = $value; } ...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/ValueObject/StringName.php
src/ValueObject/StringName.php
<?php namespace IdeHelper\ValueObject; /** * Holds a string with auto added `'` chars - can be auto-casted to string on output. */ class StringName implements ValueObjectInterface { protected string $value; /** * @param string $value */ private function __construct(string $value) { $this->value = $value;...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/ValueObject/ClassName.php
src/ValueObject/ClassName.php
<?php namespace IdeHelper\ValueObject; /** * Holds a FQCN string, which can be auto-casted to string */ class ClassName implements ValueObjectInterface { protected string $className; /** * @param string $className */ private function __construct(string $className) { $this->className = $className; } /*...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/ValueObject/ValueObjectInterface.php
src/ValueObject/ValueObjectInterface.php
<?php namespace IdeHelper\ValueObject; interface ValueObjectInterface { /** * Creates itself from a string. * * @param string $value * * @return static */ public static function create(string $value); /** * Returns raw input. * * @return string */ public function raw(): string; /** * Ret...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/ValueObject/ArgumentsSet.php
src/ValueObject/ArgumentsSet.php
<?php namespace IdeHelper\ValueObject; /** * Helps to use an existing argument set to be used in other directives for DRY code. * * Then it can be used in other places as argumentsSet('mySet'). * * @see https://www.jetbrains.com/help/phpstorm/ide-advanced-metadata.html#arguments-set */ class ArgumentsSet implem...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/ValueObject/KeyValue.php
src/ValueObject/KeyValue.php
<?php namespace IdeHelper\ValueObject; /** * Holds a ValueObject key/value combination that will be treated literally on output. */ class KeyValue { protected ValueObjectInterface $key; protected ValueObjectInterface $value; /** * @param \IdeHelper\ValueObject\ValueObjectInterface $key * @param \IdeHelper...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Filesystem/Folder.php
src/Filesystem/Folder.php
<?php declare(strict_types=1); /** * CakePHP(tm) : Rapid Development Framework (https://cakephp.org) * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files m...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Utility/Plugin.php
src/Utility/Plugin.php
<?php namespace IdeHelper\Utility; use Cake\Core\Configure; use Cake\Core\Plugin as CorePlugin; class Plugin extends CorePlugin { /** * @return array<string> */ public static function all(): array { $plugins = static::loaded(); $plugins = array_combine($plugins, $plugins); $pluginMap = (array)Configure...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Utility/ControllerActionParser.php
src/Utility/ControllerActionParser.php
<?php namespace IdeHelper\Utility; use App\Controller\AppController; use ReflectionClass; use ReflectionMethod; use RuntimeException; use Throwable; class ControllerActionParser { /** * @var array<string>|null */ protected static $appControllerActions; /** * @param string $path * * @return array<strin...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Utility/App.php
src/Utility/App.php
<?php namespace IdeHelper\Utility; use Cake\Core\App as CoreApp; use Cake\Core\Configure; use Cake\Http\Exception\NotFoundException; use Throwable; class App extends CoreApp { /** * @param string $class * @param string $type * @param string $suffix * @param bool $includeApp * * @return string|null */...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false
dereuromark/cakephp-ide-helper
https://github.com/dereuromark/cakephp-ide-helper/blob/864de81760a520a773775d8438f569930111bcd5/src/Utility/AppPath.php
src/Utility/AppPath.php
<?php namespace IdeHelper\Utility; use Cake\Core\App; use Cake\Core\Exception\MissingPluginException; class AppPath { /** * @param string $type * @param string|null $plugin * @throws \Cake\Core\Exception\MissingPluginException * @return array<string> */ public static function get(string $type, ?string $...
php
MIT
864de81760a520a773775d8438f569930111bcd5
2026-01-05T03:04:04.887555Z
false