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 |
|---|---|---|---|---|---|---|---|---|
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesRawPhp.php | src/Compilers/Concerns/CompilesRawPhp.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesRawPhp
{
/**
* Compile the raw PHP statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compilePhp($expression)
{
return $expression ? "<?php {$expression}; ?>" : '... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesEchos.php | src/Compilers/Concerns/CompilesEchos.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesEchos
{
/**
* Compile Blade echos into valid PHP.
*
* @param string $value
* @return string
*/
protected function compileEchos($value)
{
foreach ($this->getEchoMethods() as $method) {
$value = $t... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesTranslations.php | src/Compilers/Concerns/CompilesTranslations.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesTranslations
{
/**
* Compile the lang statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compileLang($expression)
{
if (is_null($expression)) {
return... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesIncludes.php | src/Compilers/Concerns/CompilesIncludes.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesIncludes
{
/**
* Compile the each statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compileEach($expression)
{
return "<?php echo \$__env->renderEach{$expression... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesStacks.php | src/Compilers/Concerns/CompilesStacks.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesStacks
{
/**
* Compile the stack statements into the content.
*
* @param string $expression
* @return string
*/
protected function compileStack($expression)
{
return "<?php echo \$__env->yieldPushContent{$ex... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesConditionals.php | src/Compilers/Concerns/CompilesConditionals.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesConditionals
{
/**
* Compile the has-section statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compileHasSection($expression)
{
return "<?php if (! empty(trim(\$... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesLoops.php | src/Compilers/Concerns/CompilesLoops.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesLoops
{
/**
* Counter to keep track of nested forelse statements.
*
* @var int
*/
protected $forElseCounter = 0;
/**
* Compile the for-else statements into valid PHP.
*
* @param string $expression
* ... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesComponents.php | src/Compilers/Concerns/CompilesComponents.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesComponents
{
/**
* Compile the component statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compileComponent($expression)
{
return "<?php \$__env->startComponent{... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
xleliu/blade | https://github.com/xleliu/blade/blob/b3a71e2e589e31956209e7f3d5ce6f9473e63a45/src/Compilers/Concerns/CompilesComments.php | src/Compilers/Concerns/CompilesComments.php | <?php
namespace Xiaoler\Blade\Compilers\Concerns;
trait CompilesComments
{
/**
* Compile Blade comments into an empty string.
*
* @param string $value
* @return string
*/
protected function compileComments($value)
{
$pattern = sprintf('/%s--(.*?)--%s/s', $this->contentTa... | php | MIT | b3a71e2e589e31956209e7f3d5ce6f9473e63a45 | 2026-01-05T04:34:28.053245Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/.php-cs-fixer.dist.php | .php-cs-fixer.dist.php | <?php
$copyrightYear = date('Y');
$header = <<<EOT
Aphiria
@link https://www.aphiria.com
@copyright Copyright (C) {$copyrightYear} David Young
@license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
EOT;
return new PhpCsFixer\Config()
->setUnsupportedPhpVersionAllowed(true)
->setRules([
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/.php-cs-fixer.dist.php | src/Reflection/.php-cs-fixer.dist.php | <?php
$copyrightYear = date('Y');
$header = <<<EOT
Aphiria
@link https://www.aphiria.com
@copyright Copyright (C) {$copyrightYear} David Young
@license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
EOT;
return new PhpCsFixer\Config()
->setUnsupportedPhpVersionAllowed(true)
->setRules([
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/src/TypeFinder.php | src/Reflection/src/TypeFinder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection;
use DirectoryIterator;
use InvalidArgumentException;
use IteratorIterator;
use Re... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/src/ITypeFinder.php | src/Reflection/src/ITypeFinder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection;
use InvalidArgumentException;
use ReflectionException;
/**
* Defines the interf... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/src/TypeResolver.php | src/Reflection/src/TypeResolver.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection;
/**
* Defines a type resolver
*/
final class TypeResolver
{
/**
* Gets... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/TypeFinderTest.php | src/Reflection/tests/TypeFinderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests;
use Aphiria\Reflection\Tests\Mocks\Finder\AbstractClass;
use Aphiria\Reflec... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/TypeResolverTest.php | src/Reflection/tests/TypeResolverTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests;
use Aphiria\Reflection\Tests\Mocks\User;
use Aphiria\Reflection\TypeResolve... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/User.php | src/Reflection/tests/Mocks/User.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests\Mocks;
/**
* Mocks a user object
*/
readonly class User
{
/**
* @... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/Finder/AbstractClass.php | src/Reflection/tests/Mocks/Finder/AbstractClass.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests\Mocks\Finder;
/**
* Mocks an abstract class
*/
abstract class AbstractClas... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/Finder/ClassA.php | src/Reflection/tests/Mocks/Finder/ClassA.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests\Mocks\Finder;
/**
* Defines a mock class
*/
class ClassA {}
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/Finder/IInterface.php | src/Reflection/tests/Mocks/Finder/IInterface.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests\Mocks\Finder;
/**
* Defines a mock interface
*/
interface IInterface {}
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/Finder/ClassB.php | src/Reflection/tests/Mocks/Finder/ClassB.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests\Mocks\Finder;
/**
* Defines a mock class
*/
class ClassB extends ClassA {}... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/Finder/class-constant.php | src/Reflection/tests/Mocks/Finder/class-constant.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
\Closure::class;
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Reflection/tests/Mocks/Finder/Subdirectory/ClassC.php | src/Reflection/tests/Mocks/Finder/Subdirectory/ClassC.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Reflection\Tests\Mocks\Finder\Subdirectory;
/**
* Defines a mock class
*/
class ClassC {}
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/.php-cs-fixer.dist.php | src/Authorization/.php-cs-fixer.dist.php | <?php
$copyrightYear = date('Y');
$header = <<<EOT
Aphiria
@link https://www.aphiria.com
@copyright Copyright (C) {$copyrightYear} David Young
@license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
EOT;
return new PhpCsFixer\Config()
->setUnsupportedPhpVersionAllowed(true)
->setRules([
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/AuthorizationRequirementHandlerRegistry.php | src/Authorization/src/AuthorizationRequirementHandlerRegistry.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use OutOfBoundsException;
/**
* Defines the authorization requirement handle... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/AuthorityBuilder.php | src/Authorization/src/AuthorityBuilder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
/**
* Defines the authority builder
*/
class AuthorityBuilder
{
/** @var... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/RequirementHandlerNotFoundException.php | src/Authorization/src/RequirementHandlerNotFoundException.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use Exception;
/**
* Defines the exception that is thrown when an authorizat... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/Authority.php | src/Authorization/src/Authority.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use Aphiria\Security\IPrincipal;
use OutOfBoundsException;
/**
* Defines the... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/AuthorizationPolicy.php | src/Authorization/src/AuthorizationPolicy.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use InvalidArgumentException;
/**
* Defines an authorization policy
*/
read... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/IAuthority.php | src/Authorization/src/IAuthority.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use Aphiria\Security\IPrincipal;
/**
* Defines the interface for authorities... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/AuthorizationPolicyRegistry.php | src/Authorization/src/AuthorizationPolicyRegistry.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use OutOfBoundsException;
/**
* Defines the authorization policy registry
*... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/AuthorizationContext.php | src/Authorization/src/AuthorizationContext.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use Aphiria\Collections\HashSet;
use Aphiria\Security\IPrincipal;
/**
* Defi... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/AuthorizationResult.php | src/Authorization/src/AuthorizationResult.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
/**
* Defines an authorization result
*
* @psalm-consistent-constructor
*/... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/PolicyNotFoundException.php | src/Authorization/src/PolicyNotFoundException.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use Exception;
/**
* Defines the exception that's thrown when an authorizati... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/IAuthorizationRequirementHandler.php | src/Authorization/src/IAuthorizationRequirementHandler.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization;
use Aphiria\Security\IPrincipal;
use InvalidArgumentException;
/**
* Defines... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/RequirementHandlers/RolesRequirement.php | src/Authorization/src/RequirementHandlers/RolesRequirement.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\RequirementHandlers;
/**
* Defines the required roles requirement
*/
final re... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/RequirementHandlers/RolesRequirementHandler.php | src/Authorization/src/RequirementHandlers/RolesRequirementHandler.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\RequirementHandlers;
use Aphiria\Authorization\AuthorizationContext;
use Aphiri... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/Middleware/Authorize.php | src/Authorization/src/Middleware/Authorize.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Middleware;
use Aphiria\Authentication\AuthenticationSchemeNotFoundException;
u... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/Attributes/AuthorizeRoles.php | src/Authorization/src/Attributes/AuthorizeRoles.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Attributes;
use Aphiria\Authorization\AuthorizationPolicy;
use Aphiria\Authoriz... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/src/Attributes/AuthorizePolicy.php | src/Authorization/src/Attributes/AuthorizePolicy.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Attributes;
use Aphiria\Authorization\Middleware\Authorize;
use Aphiria\Middlew... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorizationRequirementHandlerRegistryTest.php | src/Authorization/tests/AuthorizationRequirementHandlerRegistryTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\AuthorizationRequirementHandlerRegistry;
use A... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorityTest.php | src/Authorization/tests/AuthorityTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\Authority;
use Aphiria\Authorization\Authoriza... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorizationPolicyTest.php | src/Authorization/tests/AuthorizationPolicyTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\AuthorizationPolicy;
use InvalidArgumentExcept... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorizationContextTest.php | src/Authorization/tests/AuthorizationContextTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\AuthorizationContext;
use Aphiria\Security\IPr... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorityBuilderTest.php | src/Authorization/tests/AuthorityBuilderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\Authority;
use Aphiria\Authorization\Authority... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorizationPolicyRegistryTest.php | src/Authorization/tests/AuthorizationPolicyRegistryTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\AuthorizationPolicy;
use Aphiria\Authorization... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/AuthorizationResultTest.php | src/Authorization/tests/AuthorizationResultTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests;
use Aphiria\Authorization\AuthorizationResult;
use PHPUnit\Framework\Tes... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/RequirementHandlers/RolesRequirementHandlerTest.php | src/Authorization/tests/RequirementHandlers/RolesRequirementHandlerTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests\RequirementHandlers;
use Aphiria\Authorization\AuthorizationContext;
use ... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/RequirementHandlers/RolesRequirementTest.php | src/Authorization/tests/RequirementHandlers/RolesRequirementTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests\RequirementHandlers;
use Aphiria\Authorization\RequirementHandlers\RolesR... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/Middleware/AuthorizeTest.php | src/Authorization/tests/Middleware/AuthorizeTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests\Middleware;
use Aphiria\Authentication\AuthenticationResult;
use Aphiria\... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/Attributes/AuthorizePolicyTest.php | src/Authorization/tests/Attributes/AuthorizePolicyTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests\Attributes;
use Aphiria\Authorization\Attributes\AuthorizePolicy;
use PHP... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authorization/tests/Attributes/AuthorizeRolesTest.php | src/Authorization/tests/Attributes/AuthorizeRolesTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authorization\Tests\Attributes;
use Aphiria\Authorization\Attributes\AuthorizeRoles;
use Aphi... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/.php-cs-fixer.dist.php | src/Application/.php-cs-fixer.dist.php | <?php
$copyrightYear = date('Y');
$header = <<<EOT
Aphiria
@link https://www.aphiria.com
@copyright Copyright (C) {$copyrightYear} David Young
@license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
EOT;
return new PhpCsFixer\Config()
->setUnsupportedPhpVersionAllowed(true)
->setRules([
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/IApplication.php | src/Application/src/IApplication.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
use RuntimeException;
/**
* Defines the interface for applications to implemen... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/IApplicationBuilder.php | src/Application/src/IApplicationBuilder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
use OutOfBoundsException;
use RuntimeException;
/**
* Defines the interface fo... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/IComponent.php | src/Application/src/IComponent.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
/**
* Defines the interface for application components to implement
*/
interfa... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/IModule.php | src/Application/src/IModule.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
/**
* Defines the interface implemented by classes that configure whole modules... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/ApplicationBuilder.php | src/Application/src/ApplicationBuilder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
use OutOfBoundsException;
/**
* Defines an application builder
*/
abstract cl... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/IBootstrapper.php | src/Application/src/IBootstrapper.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
/**
* Defines the interface for application bootstrappers to implement
*/
inte... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/BootstrapperCollection.php | src/Application/src/BootstrapperCollection.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application;
/**
* Defines the collection of bootstrappers
*/
final class BootstrapperColle... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/GlobalConfigurationBuilder.php | src/Application/src/Configuration/GlobalConfigurationBuilder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Closure;
use InvalidArgumentException;
/**
* Defines the glo... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/YamlConfigurationFileReader.php | src/Application/src/Configuration/YamlConfigurationFileReader.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\C... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/InvalidConfigurationFileException.php | src/Application/src/Configuration/InvalidConfigurationFileException.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Exception;
/**
* Defines the exception that's thrown when a ... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/GlobalConfiguration.php | src/Application/src/Configuration/GlobalConfiguration.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Closure;
use RuntimeException;
/**
* Defines the global conf... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/JsonConfigurationFileReader.php | src/Application/src/Configuration/JsonConfigurationFileReader.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use InvalidArgumentException;
use JsonException;
/**
* Defines t... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/IConfiguration.php | src/Application/src/Configuration/IConfiguration.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Closure;
use RuntimeException;
/**
* Defines the interface f... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/HashTableConfiguration.php | src/Application/src/Configuration/HashTableConfiguration.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Closure;
use InvalidArgumentException;
use RuntimeException;
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/MissingConfigurationValueException.php | src/Application/src/Configuration/MissingConfigurationValueException.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use Exception;
use Throwable;
/**
* Defines the exception that's... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/PhpConfigurationFileReader.php | src/Application/src/Configuration/PhpConfigurationFileReader.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use InvalidArgumentException;
/**
* Defines the configuration re... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/IConfigurationFileReader.php | src/Application/src/Configuration/IConfigurationFileReader.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration;
use InvalidArgumentException;
/**
* Defines the interface for co... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/Bootstrappers/DotEnvBootstrapper.php | src/Application/src/Configuration/Bootstrappers/DotEnvBootstrapper.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration\Bootstrappers;
use Aphiria\Application\IBootstrapper;
use Symfony\C... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/src/Configuration/Bootstrappers/ConfigurationBootstrapper.php | src/Application/src/Configuration/Bootstrappers/ConfigurationBootstrapper.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Configuration\Bootstrappers;
use Aphiria\Application\Configuration\GlobalConfigur... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/ApplicationBuilderTest.php | src/Application/tests/ApplicationBuilderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests;
use Aphiria\Application\ApplicationBuilder;
use Aphiria\Application\IAppli... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/BootstrapperCollectionTest.php | src/Application/tests/BootstrapperCollectionTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests;
use Aphiria\Application\BootstrapperCollection;
use Aphiria\Application\IB... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/JsonConfigurationFileReaderTest.php | src/Application/tests/Configuration/JsonConfigurationFileReaderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration;
use Aphiria\Application\Configuration\InvalidConfigurationFi... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/GlobalConfigurationTest.php | src/Application/tests/Configuration/GlobalConfigurationTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration;
use Aphiria\Application\Configuration\GlobalConfiguration;
u... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/PhpConfigurationFileReaderTest.php | src/Application/tests/Configuration/PhpConfigurationFileReaderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration;
use Aphiria\Application\Configuration\InvalidConfigurationFi... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/GlobalConfigurationBuilderTest.php | src/Application/tests/Configuration/GlobalConfigurationBuilderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration;
use Aphiria\Application\Configuration\GlobalConfiguration;
u... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/HashTableConfigurationTest.php | src/Application/tests/Configuration/HashTableConfigurationTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration;
use Aphiria\Application\Configuration\HashTableConfiguration... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/YamlConfigurationFileReaderTest.php | src/Application/tests/Configuration/YamlConfigurationFileReaderTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration;
use Aphiria\Application\Configuration\InvalidConfigurationFi... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/Mocks/ConfigObject.php | src/Application/tests/Configuration/Mocks/ConfigObject.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration\Mocks;
/**
* Defines a dummy object for use in tests
*/
fin... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/files/configuration-delimiter.php | src/Application/tests/Configuration/files/configuration-delimiter.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
return [
'foo' => [
'bar' => 'baz',
],
];
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/files/configuration-env-var.php | src/Application/tests/Configuration/files/configuration-env-var.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
return ['foo' => \getenv('__APHIRIA_TEST')];
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/files/invalid-configuration.php | src/Application/tests/Configuration/files/invalid-configuration.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/files/configuration.php | src/Application/tests/Configuration/files/configuration.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
return [
'foo' => 'bar',
];
| php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/Bootstrappers/DotEnvBootstrapperTest.php | src/Application/tests/Configuration/Bootstrappers/DotEnvBootstrapperTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration\Bootstrappers;
use Aphiria\Application\Configuration\Bootstra... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Application/tests/Configuration/Bootstrappers/ConfigurationBootstrapperTest.php | src/Application/tests/Configuration/Bootstrappers/ConfigurationBootstrapperTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Application\Tests\Configuration\Bootstrappers;
use Aphiria\Application\Configuration\Bootstra... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/.php-cs-fixer.dist.php | src/Exceptions/.php-cs-fixer.dist.php | <?php
$copyrightYear = date('Y');
$header = <<<EOT
Aphiria
@link https://www.aphiria.com
@copyright Copyright (C) {$copyrightYear} David Young
@license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
EOT;
return new PhpCsFixer\Config()
->setUnsupportedPhpVersionAllowed(true)
->setRules([
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/src/LogLevelFactory.php | src/Exceptions/src/LogLevelFactory.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions;
use Closure;
use Exception;
use Psr\Log\LogLevel;
/**
* Defines a factory for P... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/src/GlobalExceptionHandler.php | src/Exceptions/src/GlobalExceptionHandler.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions;
use ErrorException;
use Exception;
use Monolog\Handler\ErrorLogHandler;
use Monol... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/src/IGlobalExceptionHandler.php | src/Exceptions/src/IGlobalExceptionHandler.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions;
use ErrorException;
use Throwable;
/**
* Defines the interface for global excep... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/src/IExceptionRenderer.php | src/Exceptions/src/IExceptionRenderer.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions;
use Exception;
/**
* Defines the interface for exception renderers to implement... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/src/FatalThrowableError.php | src/Exceptions/src/FatalThrowableError.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions;
use ErrorException;
use ParseError;
use Throwable;
use TypeError;
/**
* Defines... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/src/FatalErrorException.php | src/Exceptions/src/FatalErrorException.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions;
use ErrorException;
/**
* Defines a wrapper for a fatal error exception
*/
cla... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/tests/GlobalExceptionHandlerTest.php | src/Exceptions/tests/GlobalExceptionHandlerTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions\Tests;
use Aphiria\Exceptions\FatalErrorException;
use Aphiria\Exceptions\GlobalEx... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/tests/LogLevelFactoryTest.php | src/Exceptions/tests/LogLevelFactoryTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions\Tests;
use Aphiria\Exceptions\LogLevelFactory;
use Exception;
use PHPUnit\Framewor... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Exceptions/tests/FatalThrowableErrorTest.php | src/Exceptions/tests/FatalThrowableErrorTest.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Exceptions\Tests;
use Aphiria\Exceptions\FatalThrowableError;
use ErrorException;
use Invalid... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authentication/.php-cs-fixer.dist.php | src/Authentication/.php-cs-fixer.dist.php | <?php
$copyrightYear = date('Y');
$header = <<<EOT
Aphiria
@link https://www.aphiria.com
@copyright Copyright (C) {$copyrightYear} David Young
@license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
EOT;
return new PhpCsFixer\Config()
->setUnsupportedPhpVersionAllowed(true)
->setRules([
... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authentication/src/MockAuthenticator.php | src/Authentication/src/MockAuthenticator.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authentication;
use Aphiria\Authentication\Schemes\IAuthenticationSchemeHandler;
use Aphiria\... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
aphiria/aphiria | https://github.com/aphiria/aphiria/blob/02764a30d8018456853c4ac2a40c1e496483d96b/src/Authentication/src/AuthenticatorBuilder.php | src/Authentication/src/AuthenticatorBuilder.php | <?php
/**
* Aphiria
*
* @link https://www.aphiria.com
* @copyright Copyright (C) 2026 David Young
* @license https://github.com/aphiria/aphiria/blob/1.x/LICENSE.md
*/
declare(strict_types=1);
namespace Aphiria\Authentication;
use RuntimeException;
/**
* Defines the authenticator builder
*/
class Aut... | php | MIT | 02764a30d8018456853c4ac2a40c1e496483d96b | 2026-01-05T04:34:23.325498Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.