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
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/UniqueConstraint.php
src/Database/Element/UniqueConstraint.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Behavior\ParamsCheckerBehavior; final class UniqueConstraint { use ParamsCheckerBehavior; /** @var string[] */ private array $columns; private string $name; /** * @param string[] $columns * @param string ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Index.php
src/Database/Element/Index.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; use Phoenix\Behavior\ParamsCheckerBehavior; use Phoenix\Exception\InvalidArgumentValueException; final class Index { use ParamsCheckerBehavior; public const TYPE_NORMAL = ''; public const TYPE_UNIQUE = 'UNIQUE'; public const TYPE_FU...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Structure.php
src/Database/Element/Structure.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element; final class Structure { /** @var Table[] */ private array $tables = []; public function update(MigrationTable $migrationTable): Structure { if ($migrationTable->getAction() === MigrationTable::ACTION_CREATE) { $th...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/PrimaryColumnsBehavior.php
src/Database/Element/Behavior/PrimaryColumnsBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Closure; use InvalidArgumentException; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\MigrationTable; trait PrimaryColumnsBehavior { /** @var Column[] */ private array $primaryColumns = []; private ?Closu...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/ColumnsToChangeBehavior.php
src/Database/Element/Behavior/ColumnsToChangeBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\MigrationTable; use Phoenix\Exception\InvalidArgumentValueException; trait ColumnsToChangeBehavior { /** @var array<string, Column> */ private array $columns = []; ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/CopyTableBehavior.php
src/Database/Element/Behavior/CopyTableBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Behavior\ParamsCheckerBehavior; use Phoenix\Database\Element\MigrationTable; trait CopyTableBehavior { use ParamsCheckerBehavior; private ?string $newName = null; private string $copyType; public function getC...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/DropPrimaryKeyBehavior.php
src/Database/Element/Behavior/DropPrimaryKeyBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\MigrationTable; trait DropPrimaryKeyBehavior { private bool $dropPrimaryKey = false; public function dropPrimaryKey(): MigrationTable { $this->dropPrimaryKey = true; return $this; ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/CommentBehavior.php
src/Database/Element/Behavior/CommentBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\MigrationTable; trait CommentBehavior { private ?string $comment = null; public function setComment(?string $comment): MigrationTable { $this->comment = $comment; return $this; }...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/CharsetAndCollationBehavior.php
src/Database/Element/Behavior/CharsetAndCollationBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\MigrationTable; trait CharsetAndCollationBehavior { private ?string $charset = null; private ?string $collation = null; public function setCharset(?string $charset): MigrationTable { $t...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/ForeignKeyBehavior.php
src/Database/Element/Behavior/ForeignKeyBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\MigrationTable; use Phoenix\Exception\InvalidArgumentValueException; trait ForeignKeyBehavior { /** @var ForeignKey[] */ private array $foreignKeys = []; /**...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/IndexBehavior.php
src/Database/Element/Behavior/IndexBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\MigrationTable; use Phoenix\Exception\InvalidArgumentValueException; trait IndexBehavior { /** @var Index[] */ private array ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/ColumnsToDropBehavior.php
src/Database/Element/Behavior/ColumnsToDropBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\MigrationTable; trait ColumnsToDropBehavior { /** @var string[] */ private array $columnsToDrop = []; public function dropColumn(string $name): MigrationTable { $this->columnsToDrop[] = ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/UniqueConstraintBehavior.php
src/Database/Element/Behavior/UniqueConstraintBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\UniqueConstraint; trait UniqueConstraintBehavior { /** @var UniqueConstraint[] */ private array $uniqueConstraints = []; /** @var string[] */ private...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/ColumnsToRenameBehavior.php
src/Database/Element/Behavior/ColumnsToRenameBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; use Phoenix\Database\Element\MigrationTable; trait ColumnsToRenameBehavior { /** @var array<string, string> */ private array $columnsToRename = []; public function renameColumn(string $oldName, string $newName): MigrationTable ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Element/Behavior/AutoIncrementBehavior.php
src/Database/Element/Behavior/AutoIncrementBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Element\Behavior; trait AutoIncrementBehavior { private ?int $autoIncrement = null; public function setAutoIncrement(?int $autoIncrement): self { $this->autoIncrement = $autoIncrement; return $this; } public function getA...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/QueryBuilder/PgsqlQueryBuilder.php
src/Database/QueryBuilder/PgsqlQueryBuilder.php
<?php declare(strict_types=1); namespace Phoenix\Database\QueryBuilder; use InvalidArgumentException; use Phoenix\Database\Adapter\PgsqlAdapter; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/QueryBuilder/MysqlQueryBuilder.php
src/Database/QueryBuilder/MysqlQueryBuilder.php
<?php declare(strict_types=1); namespace Phoenix\Database\QueryBuilder; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\IndexColu...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/QueryBuilder/QueryBuilderInterface.php
src/Database/QueryBuilder/QueryBuilderInterface.php
<?php declare(strict_types=1); namespace Phoenix\Database\QueryBuilder; use PDOStatement; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\MigrationView; interface QueryBuilderInterface { /** * @return string[] list of queries */ public function createTable(MigrationTable ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/QueryBuilder/CommonQueryBuilder.php
src/Database/QueryBuilder/CommonQueryBuilder.php
<?php declare(strict_types=1); namespace Phoenix\Database\QueryBuilder; use InvalidArgumentException; use PDOStatement; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Elemen...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Adapter/AdapterFactory.php
src/Database/Adapter/AdapterFactory.php
<?php declare(strict_types=1); namespace Phoenix\Database\Adapter; use PDO; use Phoenix\Config\EnvironmentConfig; use Phoenix\Exception\InvalidArgumentValueException; final class AdapterFactory { public static function instance(EnvironmentConfig $config): AdapterInterface { $pdo = new PDO($config->g...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Adapter/MysqlAdapter.php
src/Database/Adapter/MysqlAdapter.php
<?php declare(strict_types=1); namespace Phoenix\Database\Adapter; use PDO; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\IndexColumnSettings; use Phoenix\Database\Element\Mi...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Adapter/AdapterInterface.php
src/Database/Adapter/AdapterInterface.php
<?php declare(strict_types=1); namespace Phoenix\Database\Adapter; use PDOStatement; use Phoenix\Database\Element\Structure; use Phoenix\Database\QueryBuilder\QueryBuilderInterface; use Phoenix\Exception\DatabaseQueryExecuteException; interface AdapterInterface { /** * @throws DatabaseQueryExecuteException...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Adapter/PgsqlAdapter.php
src/Database/Adapter/PgsqlAdapter.php
<?php declare(strict_types=1); namespace Phoenix\Database\Adapter; use PDO; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\IndexColumn...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Adapter/PdoAdapter.php
src/Database/Adapter/PdoAdapter.php
<?php declare(strict_types=1); namespace Phoenix\Database\Adapter; use DateTime; use InvalidArgumentException; use UnexpectedValueException; use PDO; use PDOStatement; use Phoenix\Database\Adapter\Behavior\StructureBehavior; use Phoenix\Exception\DatabaseQueryExecuteException; abstract class PdoAdapter implements A...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Database/Adapter/Behavior/StructureBehavior.php
src/Database/Adapter/Behavior/StructureBehavior.php
<?php declare(strict_types=1); namespace Phoenix\Database\Adapter\Behavior; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\Structure; use Phoenix\Exception\InvalidArgumentValueException; trait StructureBehavior { public function getStructure()...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/EnvironmentConfig.php
src/Config/EnvironmentConfig.php
<?php declare(strict_types=1); namespace Phoenix\Config; final class EnvironmentConfig { /** * @var array<string, mixed> */ private array $configuration; /** * @param array<string, mixed> $configuration */ public function __construct(array $configuration) { $this->con...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Config.php
src/Config/Config.php
<?php declare(strict_types=1); namespace Phoenix\Config; use Phoenix\Exception\ConfigException; use Phoenix\Exception\InvalidArgumentValueException; final class Config { /** * @var array<string, mixed> */ private array $configuration = [ 'log_table_name' => 'phoenix_log', 'migratio...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Parser/PhpConfigParser.php
src/Config/Parser/PhpConfigParser.php
<?php declare(strict_types=1); namespace Phoenix\Config\Parser; use Phoenix\Exception\ConfigException; final class PhpConfigParser implements ConfigParserInterface { public function parse(string $filename): array { if (!file_exists($filename)) { throw new ConfigException('File "' . $file...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Parser/ConfigParserInterface.php
src/Config/Parser/ConfigParserInterface.php
<?php declare(strict_types=1); namespace Phoenix\Config\Parser; interface ConfigParserInterface { /** * @return array<string, mixed> */ public function parse(string $filename): array; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Parser/NeonConfigParser.php
src/Config/Parser/NeonConfigParser.php
<?php declare(strict_types=1); namespace Phoenix\Config\Parser; use Nette\Neon\Neon; use Phoenix\Exception\ConfigException; final class NeonConfigParser implements ConfigParserInterface { public function parse(string $filename): array { if (!file_exists($filename)) { throw new ConfigExce...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Parser/ConfigParserFactory.php
src/Config/Parser/ConfigParserFactory.php
<?php declare(strict_types=1); namespace Phoenix\Config\Parser; use Phoenix\Exception\ConfigException; final class ConfigParserFactory { public static function instance(string $type): ConfigParserInterface { $type = strtolower($type); if ($type === 'php') { return new PhpConfigPa...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Parser/YamlConfigParser.php
src/Config/Parser/YamlConfigParser.php
<?php declare(strict_types=1); namespace Phoenix\Config\Parser; use Phoenix\Exception\ConfigException; use Symfony\Component\Yaml\Yaml; final class YamlConfigParser implements ConfigParserInterface { public function parse(string $filename): array { if (!file_exists($filename)) { throw ne...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Config/Parser/JsonConfigParser.php
src/Config/Parser/JsonConfigParser.php
<?php declare(strict_types=1); namespace Phoenix\Config\Parser; use Phoenix\Exception\ConfigException; final class JsonConfigParser implements ConfigParserInterface { public function parse(string $filename): array { if (!file_exists($filename)) { throw new ConfigException('File "' . $fil...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/InvalidArgumentValueException.php
src/Exception/InvalidArgumentValueException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; final class InvalidArgumentValueException extends PhoenixException { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/WrongCommandException.php
src/Exception/WrongCommandException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; final class WrongCommandException extends PhoenixException { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/DatabaseQueryExecuteException.php
src/Exception/DatabaseQueryExecuteException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; final class DatabaseQueryExecuteException extends PhoenixException { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/StructureException.php
src/Exception/StructureException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; final class StructureException extends PhoenixException { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/ConfigException.php
src/Exception/ConfigException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; final class ConfigException extends PhoenixException { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/IncorrectMethodUsageException.php
src/Exception/IncorrectMethodUsageException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; final class IncorrectMethodUsageException extends PhoenixException { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Exception/PhoenixException.php
src/Exception/PhoenixException.php
<?php declare(strict_types=1); namespace Phoenix\Exception; use Exception; abstract class PhoenixException extends Exception { }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Comparator/StructureComparator.php
src/Comparator/StructureComparator.php
<?php declare(strict_types=1); namespace Phoenix\Comparator; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\Structure; use Phoenix\Database\Element\Table; final class StructureComparator { /** * @return MigrationTable[] */ public function diff(Structure $sourceStructure,...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Comparator/TableComparator.php
src/Comparator/TableComparator.php
<?php declare(strict_types=1); namespace Phoenix\Comparator; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\Table; final class TableComparator { public function diff(Table...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Comparator/SettingsComparator.php
src/Comparator/SettingsComparator.php
<?php declare(strict_types=1); namespace Phoenix\Comparator; use Phoenix\Database\Element\ColumnSettings; final class SettingsComparator { /** * @return array<string, mixed> */ public function diff(ColumnSettings $sourceColumnSettings, ColumnSettings $targetColumnSettings): array { $so...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Comparator/ColumnComparator.php
src/Comparator/ColumnComparator.php
<?php declare(strict_types=1); namespace Phoenix\Comparator; use Phoenix\Database\Element\Column; final class ColumnComparator { public function diff(Column $sourceColumn, Column $targetColumn): ?Column { $sourceName = $sourceColumn->getName(); $targetName = $targetColumn->getName(); ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Dumper/Indenter.php
src/Dumper/Indenter.php
<?php declare(strict_types=1); namespace Phoenix\Dumper; final class Indenter { public function indent(string $identifier = '4spaces'): string { $indent = strtolower(str_replace([' ', '-', '_'], '', $identifier)); if ($indent === '2spaces') { return ' '; } if ($in...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Dumper/Dumper.php
src/Dumper/Dumper.php
<?php declare(strict_types=1); namespace Phoenix\Dumper; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\MigrationTable; final class Dumper { private string $indent; ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/AbstractDumpCommand.php
src/Command/AbstractDumpCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Comparator\StructureComparator; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\Structure; use Phoenix\Dumper\Dumper; use Phoenix\Dumper\Indenter; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Migration...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/StatusCommand.php
src/Command/StatusCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Symfony\Component\Console\Helper\Table; final class StatusCommand extends AbstractCommand { public function __construct(string $name = 'status') { parent::__construct($name); } protected function configure(): void { $...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/MigrateCommand.php
src/Command/MigrateCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Migration\AbstractMigration; use Phoenix\Migration\Manager; use Symfony\Component\Console\Input\InputOption; final class MigrateCommand extends AbstractRunCommand { protected string $noMigrationsFoundMessage = 'Nothing to migrate'; prote...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/CleanupCommand.php
src/Command/CleanupCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Migration\AbstractMigration; use Phoenix\Migration\Init\Init; use Phoenix\Migration\Manager; use Symfony\Component\Console\Output\OutputInterface; final class CleanupCommand extends AbstractCommand { public function __construct(string $name =...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/DiffCommand.php
src/Command/DiffCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Database\Adapter\AdapterFactory; use Phoenix\Database\Element\Structure; use Phoenix\Dumper\Dumper; use Phoenix\Exception\InvalidArgumentValueException; use Symfony\Component\Console\Input\InputOption; use Throwable; final class DiffCommand exten...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/TestCommand.php
src/Command/TestCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Migration\AbstractMigration; use Phoenix\Migration\Manager; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; final class TestCommand extends AbstractCommand { /** @var array<int, array{cla...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/DumpCommand.php
src/Command/DumpCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Database\Element\Structure; use Phoenix\Dumper\Dumper; use Symfony\Component\Console\Input\InputOption; final class DumpCommand extends AbstractDumpCommand { public function __construct(string $name = 'dump') { parent::__construct...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/CreateCommand.php
src/Command/CreateCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Dumper\Indenter; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Migration\MigrationCreator; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Style\S...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/AbstractRunCommand.php
src/Command/AbstractRunCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Migration\AbstractMigration; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; abstract class AbstractRunCommand extends AbstractCommand { ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/AbstractCommand.php
src/Command/AbstractCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use InvalidArgumentException; use Phoenix\Config\Config; use Phoenix\Config\Parser\ConfigParserFactory; use Phoenix\Database\Adapter\AdapterFactory; use Phoenix\Database\Adapter\AdapterInterface; use Phoenix\Exception\ConfigException; use Phoenix\Exception\Da...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/RollbackCommand.php
src/Command/RollbackCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Migration\AbstractMigration; use Phoenix\Migration\Manager; use Symfony\Component\Console\Input\InputOption; final class RollbackCommand extends AbstractRunCommand { protected string $noMigrationsFoundMessage = 'Nothing to rollback'; pro...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/src/Command/InitCommand.php
src/Command/InitCommand.php
<?php declare(strict_types=1); namespace Phoenix\Command; use Phoenix\Migration\Init\Init; use Symfony\Component\Console\Output\OutputInterface; final class InitCommand extends AbstractCommand { public function __construct(string $name = 'init') { parent::__construct($name); } protected fun...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/ComposerAutoloaderTest.php
tests/ComposerAutoloaderTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests; use PHPUnit\Framework\TestCase; final class ComposerAutoloaderTest extends TestCase { public function testSuccessAutoload(): void { $autoload = require __DIR__ . '/../src/composer_autoloader.php'; $this->assertTrue($autoload()); } ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Templates/TemplateManagerTest.php
tests/Templates/TemplateManagerTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Templates; use Phoenix\Exception\PhoenixException; use Phoenix\Migration\MigrationNameCreator; use Phoenix\Templates\TemplateManager; use PHPUnit\Framework\TestCase; final class TemplateManagerTest extends TestCase { public function testTemplatePathNotFound...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Helpers/Pdo/PgsqlPdo.php
tests/Helpers/Pdo/PgsqlPdo.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Helpers\Pdo; use PDO; final class PgsqlPdo extends PDO { public function __construct(?string $db = null) { $dsn = 'pgsql:'; if ($db) { $dsn .= 'dbname=' . $db; } if (getenv('PHOENIX_PGSQL_HOST')) { ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Helpers/Pdo/MysqlPdo.php
tests/Helpers/Pdo/MysqlPdo.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Helpers\Pdo; use PDO; final class MysqlPdo extends PDO { public function __construct(?string $db = null) { $dsnParts = []; if ($db) { $dsnParts[] = 'dbname=' . $db; } if (getenv('PHOENIX_MYSQL_HOST')) { ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Helpers/Adapter/CleanupInterface.php
tests/Helpers/Adapter/CleanupInterface.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Helpers\Adapter; interface CleanupInterface { public function cleanupDatabase(): void; }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Helpers/Adapter/MysqlCleanupAdapter.php
tests/Helpers/Adapter/MysqlCleanupAdapter.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Helpers\Adapter; use PDO; use Phoenix\Database\Adapter\MysqlAdapter; final class MysqlCleanupAdapter implements CleanupInterface { private MysqlAdapter $mysqlAdapter; public function __construct(PDO $pdo) { $this->mysqlAdapter = new MysqlAd...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Helpers/Adapter/PgsqlCleanupAdapter.php
tests/Helpers/Adapter/PgsqlCleanupAdapter.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Helpers\Adapter; use PDO; use Phoenix\Database\Adapter\PgsqlAdapter; final class PgsqlCleanupAdapter implements CleanupInterface { private PgsqlAdapter $pgsqlAdapter; public function __construct(PDO $pdo) { $this->pgsqlAdapter = new PgsqlAd...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Helpers/Command/Formatter.php
tests/Helpers/Command/Formatter.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Helpers\Command; use Symfony\Component\Console\Formatter\NullOutputFormatterStyle; use Symfony\Component\Console\Formatter\OutputFormatterInterface; use Symfony\Component\Console\Formatter\OutputFormatterStyleInterface; final class Formatter implements OutputFo...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Migration/MigrationCreatorTest.php
tests/Migration/MigrationCreatorTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Migration; use Phoenix\Exception\PhoenixException; use Phoenix\Migration\MigrationCreator; use PHPUnit\Framework\TestCase; use Symfony\Component\Finder\Finder; final class MigrationCreatorTest extends TestCase { public function testTemplatePathNotFound(): v...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Migration/ManagerTest.php
tests/Migration/ManagerTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Migration; use Phoenix\Config\Config; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Exception\InvalidArgumentValueException; use Phoenix\Migration\AbstractMigration; use Phoenix\Migration\Init\Init; use Phoenix\Migration\Manager; use Phoenix\Tests\Helpe...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Migration/FinderTest.php
tests/Migration/FinderTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Migration; use InvalidArgumentException; use Phoenix\Migration\FilesFinder; use PHPUnit\Framework\TestCase; final class FilesFinderTest extends TestCase { public function testDirectories(): void { $finder = new FilesFinder(); $this->asse...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Migration/ClassNameCreatorTest.php
tests/Migration/ClassNameCreatorTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Migration; use Phoenix\Migration\ClassNameCreator; use PHPUnit\Framework\TestCase; final class ClassNameCreatorTest extends TestCase { public function testClassName(): void { $filepath = __DIR__ . '/../fake/structure/migration_directory_1/201504...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Migration/MigrationNameCreatorTest.php
tests/Migration/MigrationNameCreatorTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Migration; use Phoenix\Migration\MigrationNameCreator; use PHPUnit\Framework\TestCase; final class MigrationNameCreatorTest extends TestCase { public function testCreateMigrationName(): void { $className = 'AddSomethingToTable'; $migrati...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Mock/Migration/FakeMigration.php
tests/Mock/Migration/FakeMigration.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Mock\Migration; use Phoenix\Migration\AbstractMigration; final class FakeMigration extends AbstractMigration { protected function up(): void { } protected function down(): void { } }
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Mock/Command/Input.php
tests/Mock/Command/Input.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Mock\Command; use Symfony\Component\Console\Input\InputDefinition; use Symfony\Component\Console\Input\InputInterface; final class Input implements InputInterface { private array $arguments = []; private array $options = []; public function bind(I...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Mock/Command/Output.php
tests/Mock/Command/Output.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Mock\Command; use Phoenix\Tests\Helpers\Command\Formatter; use Symfony\Component\Console\Formatter\OutputFormatterInterface; use Symfony\Component\Console\Output\OutputInterface; final class Output implements OutputInterface { private array $messages = []; ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/ColumnTest.php
tests/Database/Element/ColumnTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Exception\InvalidArgumentValueException; use PHPUnit\Framework\TestCase; final class ColumnTest extends TestCase { public function testSimple(): ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/ForeignKeyTest.php
tests/Database/Element/ForeignKeyTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\ForeignKey; use Phoenix\Exception\InvalidArgumentValueException; use PHPUnit\Framework\TestCase; final class ForeignKeyTest extends TestCase { public function testSimple(): void { $foreignKey = new ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/TableTest.php
tests/Database/Element/TableTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\Table; use PHPUnit\Framework\TestCase; final class TableTest extends TestCase { public function ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/MigrationTableTest.php
tests/Database/Element/MigrationTableTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use InvalidArgumentException; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\Table; use Phoenix\Excepti...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/ColumnSettingsTest.php
tests/Database/Element/ColumnSettingsTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Exception\InvalidArgumentValueException; use PHPUnit\Framework\TestCase; final class ColumnSettingsTest extends TestCase { public function testSimple(): void { $columnSet...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/UniqueConstraintTest.php
tests/Database/Element/UniqueConstraintTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\UniqueConstraint; use PHPUnit\Framework\TestCase; final class UniqueConstraintTest extends TestCase { public function testSimple(): void { $uniqueConstraint = new UniqueConstraint(['sku'], 'u_sku');...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/IndexTest.php
tests/Database/Element/IndexTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Exception\InvalidArgumentValueException; use PHPUnit\Framework\TestCase; final class IndexTest extends TestCase { public function testSimple(): void ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Element/StructureTest.php
tests/Database/Element/StructureTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Element; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\Element\Structure; use Phoenix\Database\Element\Table; use PHPUnit\Framework\TestCase; final class StructureTest extends TestCase { publ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/PgsqlQueryBuilderTest.php
tests/Database/QueryBuilder/PgsqlQueryBuilderTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder; use InvalidArgumentException; use Phoenix\Database\Adapter\PgsqlAdapter; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\PgsqlQueryBuilder; use Phoenix\Tests\Helpers\Adapt...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
true
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/MysqlQueryBuilderTest.php
tests/Database/QueryBuilder/MysqlQueryBuilderTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder; use InvalidArgumentException; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Tests\Helpers\Adapt...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/PgsqlQueryBuilder/CopyTableTest.php
tests/Database/QueryBuilder/PgsqlQueryBuilder/CopyTableTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder\PgsqlQueryBuilder; use Phoenix\Database\Adapter\PgsqlAdapter; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\PgsqlQueryBuilder; use Phoenix\Tests\Helpers\Pdo\PgsqlPdo; use PHPUnit\Framework\TestCase; final c...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/PgsqlQueryBuilder/RenameColumnTest.php
tests/Database/QueryBuilder/PgsqlQueryBuilder/RenameColumnTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder\PgsqlQueryBuilder; use Phoenix\Database\Adapter\PgsqlAdapter; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\PgsqlQueryBuilder; use Phoenix\Tests\Helpers\Pdo\PgsqlPdo; use PHPUnit\Framework\TestCase; final c...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/MysqlQueryBuilder/CopyTableTest.php
tests/Database/QueryBuilder/MysqlQueryBuilder/CopyTableTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Tests\Helpers\Adapter\MysqlCleanupAdapter; use Phoenix\Tests\Helpers...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/MysqlQueryBuilder/RenameColumnTest.php
tests/Database/QueryBuilder/MysqlQueryBuilder/RenameColumnTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Tests\Helpers\Adapter\MysqlCleanupAdapter; use Phoenix\Tests\Helpers...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/QueryBuilder/MysqlQueryBuilder/CreateTableTest.php
tests/Database/QueryBuilder/MysqlQueryBuilder/CreateTableTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Database\Element\MigrationTable; use Phoenix\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Tests\Helpers\Adapter\MysqlCleanupAdapter; use Phoenix\Tests\Helpers...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Adapter/MysqlAdapterTest.php
tests/Database/Adapter/MysqlAdapterTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Adapter; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ColumnSettings; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Adapter/PgsqlAdapterTest.php
tests/Database/Adapter/PgsqlAdapterTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Adapter; use Phoenix\Database\Adapter\PgsqlAdapter; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\MigrationTable; ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Adapter/AdapterFactoryTest.php
tests/Database/Adapter/AdapterFactoryTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Adapter; use Phoenix\Config\EnvironmentConfig; use Phoenix\Database\Adapter\AdapterFactory; use Phoenix\Database\Adapter\MysqlAdapter; use Phoenix\Database\Adapter\PgsqlAdapter; use Phoenix\Database\QueryBuilder\MysqlQueryBuilder; use Phoenix\Exception\...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Database/Adapter/PdoAdapterTest.php
tests/Database/Adapter/PdoAdapterTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Database\Adapter; use InvalidArgumentException; use Phoenix\Database\Adapter\MysqlAdapter; use UnexpectedValueException; use Phoenix\Database\QueryBuilder\QueryBuilderInterface; use Phoenix\Exception\DatabaseQueryExecuteException; use Phoenix\Tests\Helpers\Adapt...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Config/ConfigParsersTest.php
tests/Config/ConfigParsersTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Config; use Exception; use Phoenix\Config\Parser\ConfigParserFactory; use Phoenix\Exception\ConfigException; use PHPUnit\Framework\TestCase; final class ConfigParsersTest extends TestCase { public function testParser(): void { $configs = [ ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Config/EnvironmentConfigTest.php
tests/Config/EnvironmentConfigTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Config; use Phoenix\Config\EnvironmentConfig; use PHPUnit\Framework\TestCase; final class EnvironmentConfigTest extends TestCase { public function testAdapterAndConfiguredDsn(): void { $config = [ 'adapter' => 'test_adapter', ...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Config/ConfigParserFactoryTest.php
tests/Config/ConfigParserFactoryTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Config; use Phoenix\Config\Parser\ConfigParserFactory; use Phoenix\Config\Parser\JsonConfigParser; use Phoenix\Config\Parser\NeonConfigParser; use Phoenix\Config\Parser\PhpConfigParser; use Phoenix\Config\Parser\YamlConfigParser; use Phoenix\Exception\ConfigExce...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Config/ConfigTest.php
tests/Config/ConfigTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Config; use Phoenix\Config\Config; use Phoenix\Config\EnvironmentConfig; use Phoenix\Exception\ConfigException; use Phoenix\Exception\InvalidArgumentValueException; use PHPUnit\Framework\TestCase; use Ramsey\Uuid\UuidFactory; use Ramsey\Uuid\UuidFactoryInterface...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Comparator/ColumnComparatorTest.php
tests/Comparator/ColumnComparatorTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Comparator; use Phoenix\Comparator\ColumnComparator; use Phoenix\Database\Element\Column; use PHPUnit\Framework\TestCase; final class ColumnComparatorTest extends TestCase { public function testSameWithEmptySettings(): void { $column1 = new Colu...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Comparator/SettingsComparatorTest.php
tests/Comparator/SettingsComparatorTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Comparator; use Phoenix\Comparator\SettingsComparator; use Phoenix\Database\Element\ColumnSettings; use PHPUnit\Framework\TestCase; final class SettingsComparatorTest extends TestCase { public function testSameEmpty(): void { $settings1 = new Co...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false
lulco/phoenix
https://github.com/lulco/phoenix/blob/773687d3cff498c2453ab2fa2f8d3f422ba725e7/tests/Comparator/StructureComparatorTest.php
tests/Comparator/StructureComparatorTest.php
<?php declare(strict_types=1); namespace Phoenix\Tests\Comparator; use Phoenix\Comparator\StructureComparator; use Phoenix\Database\Element\Column; use Phoenix\Database\Element\ForeignKey; use Phoenix\Database\Element\Index; use Phoenix\Database\Element\IndexColumn; use Phoenix\Database\Element\MigrationTable; use P...
php
MIT
773687d3cff498c2453ab2fa2f8d3f422ba725e7
2026-01-05T03:29:59.643675Z
false