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
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/CompilerOptions.php
src/Compiler/CompilerOptions.php
<?php namespace Stillat\Dagger\Compiler; class CompilerOptions { public bool $addComponentLineNumbers = false; public string $viewCachePath = ''; }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/EnableOptimization.php
src/Compiler/EnableOptimization.php
<?php namespace Stillat\Dagger\Compiler; use Attribute; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] class EnableOptimization {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/AttributeCompiler.php
src/Compiler/AttributeCompiler.php
<?php namespace Stillat\Dagger\Compiler; use Illuminate\Support\Facades\Blade; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; class AttributeCompiler { protected string $escapedParameterPrefix = ''; protected array ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/DisableOptimization.php
src/Compiler/DisableOptimization.php
<?php namespace Stillat\Dagger\Compiler; use Attribute; #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] class DisableOptimization {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ComponentState.php
src/Compiler/ComponentState.php
<?php namespace Stillat\Dagger\Compiler; use Illuminate\View\ComponentAttributeBag; use InvalidArgumentException; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Cache\CacheProperties; use Stillat\Dagger\ComponentOptions; use Stillat\Dagger\Support\Utils; class ComponentState { /** ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ParameterFactory.php
src/Compiler/ParameterFactory.php
<?php namespace Stillat\Dagger\Compiler; use Stillat\BladeParser\Nodes\Components\ParameterFactory as BladeParameterFactory; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; class ParameterFactory extends BladeParameterFactory { public static functio...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/BladeComponentStacksCompiler.php
src/Compiler/BladeComponentStacksCompiler.php
<?php namespace Stillat\Dagger\Compiler; use Illuminate\Support\Str; use Stillat\Dagger\Support\Utils; class BladeComponentStacksCompiler { /** * Injects logic into Blade's component output to * push components to a custom component stack. */ public function compile(string $template): string ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ExtractedSlot.php
src/Compiler/ExtractedSlot.php
<?php namespace Stillat\Dagger\Compiler; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; class ExtractedSlot { public function __construct( public ComponentNode $node ) {} public function isForwardedSlot(): bool { return Str::contains($this->getNam...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Extractions.php
src/Compiler/Extractions.php
<?php namespace Stillat\Dagger\Compiler; class Extractions { public array $stencils = []; /** * @var ExtractedSlot[] */ public array $namedSlots = []; /** * @var ExtractedSlot[] */ public array $forwardedSlots = []; public string $content = ''; }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Renderer.php
src/Compiler/Renderer.php
<?php namespace Stillat\Dagger\Compiler; use Illuminate\Support\Str; use Illuminate\View\Compilers\BladeCompiler; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; use Stillat\Dagger\Exceptions\Compil...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ComponentStages/ExtractsRenderCalls.php
src/Compiler/ComponentStages/ExtractsRenderCalls.php
<?php namespace Stillat\Dagger\Compiler\ComponentStages; use Closure; use PhpParser\Node; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Name; use PhpParser\Node\Scalar\String_; use PhpParser\NodeVisitorAbstract; use Stillat\Dagger\Compiler\ComponentCompiler; use Stillat\Dagger\Support\Utils; class ExtractsRen...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ComponentStages/ResolveNamespaces.php
src/Compiler/ComponentStages/ResolveNamespaces.php
<?php namespace Stillat\Dagger\Compiler\ComponentStages; use Closure; use Stillat\Dagger\Parser\Visitors\FullyQualifiedNamespaceVisitor; class ResolveNamespaces extends AbstractStage { public function handle($ast, Closure $next) { $this->traverser->addVisitor(new FullyQualifiedNamespaceVisitor); ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ComponentStages/AbstractStage.php
src/Compiler/ComponentStages/AbstractStage.php
<?php namespace Stillat\Dagger\Compiler\ComponentStages; use PhpParser\NodeTraverser; abstract class AbstractStage { protected NodeTraverser $traverser; public function __construct() { $this->traverser = new NodeTraverser; } }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ComponentStages/RewriteFunctions.php
src/Compiler/ComponentStages/RewriteFunctions.php
<?php namespace Stillat\Dagger\Compiler\ComponentStages; use Closure; use PhpParser\NodeTraverser; use Stillat\Dagger\Parser\Visitors\FindFunctionsVisitor; use Stillat\Dagger\Parser\Visitors\RenameFunctionVisitor; class RewriteFunctions extends AbstractStage { public function handle($ast, Closure $next) { ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/ComponentStages/RemoveUseStatements.php
src/Compiler/ComponentStages/RemoveUseStatements.php
<?php namespace Stillat\Dagger\Compiler\ComponentStages; use Closure; use PhpParser\Node\Stmt\GroupUse; use PhpParser\Node\Stmt\Use_; class RemoveUseStatements { public function handle($ast, Closure $next) { return $next(collect($ast)->filter(fn ($node) => ! $this->isUse($node))->values()->all()); ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesSlots.php
src/Compiler/Concerns/CompilesSlots.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; use Stillat\Dagger\Compiler\ExtractedSlot; trait CompilesSlots { pr...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesDynamicComponents.php
src/Compiler/Concerns/CompilesDynamicComponents.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\Dagger\Compiler\ParameterFactory; use Stillat\Dagger\Facades\SourceMapper; use Stillat\Dagger\Support\Utils; trait ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/AppliesCompilerParams.php
src/Compiler/Concerns/AppliesCompilerParams.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; use Stillat\Dagger\Compiler\ComponentState; use Stillat\Dagger\Exceptions\InvalidCompilerParameterException; trait AppliesCompi...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesStencils.php
src/Compiler/Concerns/CompilesStencils.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Compiler\ComponentState; use Stillat\Dagger\Compiler\Extractions; use Stillat\Dagger\Compiler\TemplateCompiler; use Stillat\Dagger\Support\Utils; trait CompilesSten...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesCompilerDirectives.php
src/Compiler/Concerns/CompilesCompilerDirectives.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Position; trait CompilesCompilerDirectives { private function compileForwardedProperties(): string { $forwardedProps = []; $forwa...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesComponentDetails.php
src/Compiler/Concerns/CompilesComponentDetails.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Contracts\View\View; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Compiler\ComponentState; use Stillat\Dagger\Compiler\ExtractedSlot; use Stillat\Dagger\Compiler\Extractions; use Stillat\Dagger\C...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesCache.php
src/Compiler/Concerns/CompilesCache.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; use Stillat\Dagger\Cache\CacheAttributeParser; use Stillat\Dagger\Compiler\ComponentState; use Stillat\Dagger\Support\Utils; tr...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/ManagesExceptions.php
src/Compiler/Concerns/ManagesExceptions.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\Dagger\Compiler\ComponentState; trait ManagesExceptions { protected function compileExceptions(string $template): string { return Str::swap([ "'#componentTrace#'" => $this->compilePhpArray($this->com...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesPhp.php
src/Compiler/Concerns/CompilesPhp.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use PhpParser\Node\Stmt\GroupUse; use PhpParser\Node\Stmt\InlineHTML; use PhpParser\Node\Stmt\Use_; use Stillat\Dagger\Support\Utils; use Symfony\Component\VarExporter\VarExporter; trait CompilesPhp { protected function compilePhpArray...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/ManagesComponentCompilerCallbacks.php
src/Compiler/Concerns/ManagesComponentCompilerCallbacks.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Closure; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Exceptions\InvalidArgumentException; trait ManagesComponentCompilerCallbacks { protected array $componentCompilers = []; public function compi...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesCompilerAttributes.php
src/Compiler/Concerns/CompilesCompilerAttributes.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Compiler\CompilerServices\LoopVariablesExtractor; use Stillat\Dagger\Support\Utils; trait CompilesCompilerAttributes { protected function compileForAttribute(string|array $expression, string $compiledOutput): st...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesBasicComponents.php
src/Compiler/Concerns/CompilesBasicComponents.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Stillat\BladeParser\Nodes\Components\ComponentNode; trait CompilesBasicComponents { protected function compileBasicComponent(ComponentNode $node): string { if ($node->isClosedBy != null && ! $node->isSelfClosing) { return $node->outerD...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/CompilesForwardedAttributes.php
src/Compiler/Concerns/CompilesForwardedAttributes.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; use Stillat\Dagger\Compiler\ForwardedAttribute; trait CompilesForwarded...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Concerns/ManagesComponentCtrState.php
src/Compiler/Concerns/ManagesComponentCtrState.php
<?php namespace Stillat\Dagger\Compiler\Concerns; use PhpParser\NodeTraverser; use PhpParser\NodeVisitor\ParentConnectingVisitor; use Stillat\Dagger\Compiler\Ctr\CompileTimeRendererVisitor; use Stillat\Dagger\Parser\PhpParser; trait ManagesComponentCtrState { protected ?CompileTimeRendererVisitor $ctrVisitor = n...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Compiler/Ctr/CompileTimeRendererVisitor.php
src/Compiler/Ctr/CompileTimeRendererVisitor.php
<?php namespace Stillat\Dagger\Compiler\Ctr; use PhpParser\Node; use PhpParser\NodeVisitor; use ReflectionAttribute; use ReflectionClass; use ReflectionMethod; use Stillat\Dagger\Compiler\ComponentState; use Stillat\Dagger\Compiler\DisableOptimization; use Stillat\Dagger\Compiler\EnableOptimization; class CompileTim...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/InvalidCompilerParameterException.php
src/Exceptions/InvalidCompilerParameterException.php
<?php namespace Stillat\Dagger\Exceptions; class InvalidCompilerParameterException extends CompilerException {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/ComponentException.php
src/Exceptions/ComponentException.php
<?php namespace Stillat\Dagger\Exceptions; use Illuminate\View\ViewException; class ComponentException extends ViewException { public ?int $originalLineNumber = null; }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/CompilerRenderException.php
src/Exceptions/CompilerRenderException.php
<?php namespace Stillat\Dagger\Exceptions; class CompilerRenderException extends CompilerException {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/CompilerException.php
src/Exceptions/CompilerException.php
<?php namespace Stillat\Dagger\Exceptions; use Exception; class CompilerException extends Exception {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/MissingComponentNamespaceException.php
src/Exceptions/MissingComponentNamespaceException.php
<?php namespace Stillat\Dagger\Exceptions; class MissingComponentNamespaceException extends CompilerException {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/RuntimeException.php
src/Exceptions/RuntimeException.php
<?php namespace Stillat\Dagger\Exceptions; use Exception; class RuntimeException extends Exception {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/InvalidArgumentException.php
src/Exceptions/InvalidArgumentException.php
<?php namespace Stillat\Dagger\Exceptions; class InvalidArgumentException extends CompilerException {}
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/Mapping/SourceMapper.php
src/Exceptions/Mapping/SourceMapper.php
<?php namespace Stillat\Dagger\Exceptions\Mapping; use Illuminate\Foundation\Exceptions\Renderer\Mappers\BladeMapper; use Illuminate\Support\Arr; use Illuminate\Support\Str; use PhpParser\Error; use ReflectionProperty; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Exceptions\ComponentExce...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Exceptions/Mapping/LineMapper.php
src/Exceptions/Mapping/LineMapper.php
<?php namespace Stillat\Dagger\Exceptions\Mapping; use Stillat\Dagger\Facades\SourceMapper as SourceMapperApi; class LineMapper { protected int $currentLine = 1; protected bool $inPhpBlock = false; protected string $result = ''; protected bool $inHeredoc = false; protected function appendText...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Translation/Messages.php
src/Translation/Messages.php
<?php namespace Stillat\Dagger\Translation; class Messages { public static function getValidationMessages(array $messages = []): array { return array_merge( trans('validation'), trans('dagger::validation'), $messages ); } }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Listeners/ResponsePreparedListener.php
src/Listeners/ResponsePreparedListener.php
<?php namespace Stillat\Dagger\Listeners; use Stillat\Dagger\Facades\Compiler; use Stillat\Dagger\Runtime\ViewManifest; class ResponsePreparedListener { protected ViewManifest $manifest; public function __construct(ViewManifest $manifest) { $this->manifest = $manifest; } public function...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Listeners/ViewCreatingListener.php
src/Listeners/ViewCreatingListener.php
<?php namespace Stillat\Dagger\Listeners; use Illuminate\Support\Str; use Stillat\Dagger\Facades\Compiler; use Stillat\Dagger\Runtime\ViewManifest; class ViewCreatingListener { protected ViewManifest $manifest; protected static array $checkedViews = []; public function __construct(ViewManifest $manifes...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Support/Asserts.php
src/Support/Asserts.php
<?php namespace Stillat\Dagger\Support; use Stillat\Dagger\Exceptions\InvalidArgumentException; trait Asserts { /** * @throws InvalidArgumentException */ protected function assertIsString(mixed $value, string $message = ''): void { if (is_string($value)) { return; } ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Support/Utils.php
src/Support/Utils.php
<?php namespace Stillat\Dagger\Support; use Illuminate\Support\Str; class Utils { public static function normalizePath(string $path): string { return str_replace('\\', '/', $path); } public static function arePathsEqual(string $pathA, string $pathB): bool { return self::normalize...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/ComponentParser.php
src/Parser/ComponentParser.php
<?php namespace Stillat\Dagger\Parser; use Illuminate\Support\Str; use PhpParser\Error; use PhpParser\Node\Arg; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Stmt\Expression; use PhpParser\Node\Stmt\GroupUse; use PhpParser\Node\Stmt\InlineHTML; ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/ComponentTap.php
src/Parser/ComponentTap.php
<?php namespace Stillat\Dagger\Parser; use Stillat\Dagger\AbstractComponent; class ComponentTap { public Component|AbstractComponent|null $component = null; }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/ArrayValuesParser.php
src/Parser/ArrayValuesParser.php
<?php namespace Stillat\Dagger\Parser; use PhpParser\Node\ArrayItem; use PhpParser\Node\Expr\Array_; use PhpParser\Node\Expr\Assign; use PhpParser\Node\Expr\Variable; use PhpParser\Node\Scalar\String_; use PhpParser\Node\Stmt\Expression; use PhpParser\PrettyPrinter\Standard; class ArrayValuesParser { protected s...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/ComponentCache.php
src/Parser/ComponentCache.php
<?php namespace Stillat\Dagger\Parser; use Stillat\Dagger\Compiler\ComponentState; class ComponentCache { protected array $items = []; public function get(string $key): ?ComponentState { if (! isset($this->items[$key])) { return null; } return clone $this->items[$key...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/PhpParser.php
src/Parser/PhpParser.php
<?php namespace Stillat\Dagger\Parser; use PhpParser\Parser; use PhpParser\ParserFactory; class PhpParser { public static function makeParser(): Parser { return (new ParserFactory)->createForHostVersion(); } }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/Component.php
src/Parser/Component.php
<?php namespace Stillat\Dagger\Parser; use Stillat\Dagger\AbstractComponent; use Stillat\Dagger\ComponentOptions; use Stillat\Dagger\Exceptions\InvalidArgumentException; use Stillat\Dagger\Support\Asserts; class Component extends AbstractComponent { use Asserts; protected string $props = ''; protected ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/Visitors/FindFunctionsVisitor.php
src/Parser/Visitors/FindFunctionsVisitor.php
<?php namespace Stillat\Dagger\Parser\Visitors; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; class FindFunctionsVisitor extends NodeVisitorAbstract { protected array $functionNames = []; public function enterNode(Node $node) { if (! $node instanceof Node\Stmt\Function_) { r...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/Visitors/ComponentModelVisitor.php
src/Parser/Visitors/ComponentModelVisitor.php
<?php namespace Stillat\Dagger\Parser\Visitors; use PhpParser\Node; use PhpParser\NodeVisitor; class ComponentModelVisitor implements NodeVisitor { protected $componentChain = null; protected $componentCall = null; public function beforeTraverse(array $nodes) {} protected function isComponentCall(...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/Visitors/RenameFunctionVisitor.php
src/Parser/Visitors/RenameFunctionVisitor.php
<?php namespace Stillat\Dagger\Parser\Visitors; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; use Stillat\Dagger\Support\Utils; class RenameFunctionVisitor extends NodeVisitorAbstract { protected array $functionNames = []; public function __construct(array $functionNames) { $this->funct...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/Visitors/FullyQualifiedNamespaceVisitor.php
src/Parser/Visitors/FullyQualifiedNamespaceVisitor.php
<?php namespace Stillat\Dagger\Parser\Visitors; use PhpParser\Node; use PhpParser\NodeVisitorAbstract; class FullyQualifiedNamespaceVisitor extends NodeVisitorAbstract { private array $functionImports = []; private array $classImports = []; private array $constantImports = []; public function ente...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Parser/Visitors/StringifyMethodArgsVisitor.php
src/Parser/Visitors/StringifyMethodArgsVisitor.php
<?php namespace Stillat\Dagger\Parser\Visitors; use PhpParser\Node; use PhpParser\NodeVisitor; use PhpParser\PrettyPrinter; use PhpParser\PrettyPrinter\Standard; class StringifyMethodArgsVisitor implements NodeVisitor { protected PrettyPrinter $printer; protected array $methodNames = []; public functio...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Cache/CacheProperties.php
src/Cache/CacheProperties.php
<?php namespace Stillat\Dagger\Cache; class CacheProperties { public function __construct( public string|array $duration, public string $store, public array $args = [], public string $key = '', ) {} }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Cache/CacheAttributeParser.php
src/Cache/CacheAttributeParser.php
<?php namespace Stillat\Dagger\Cache; use Illuminate\Support\Str; class CacheAttributeParser { protected static function parseDurationIntoParts(string $duration): int|array { $duration = strtolower(trim($duration)); $pattern = '/(\d+)(y|mo|w|d|h|m|s)/'; preg_match_all($pattern, $dur...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Facades/ComponentEnv.php
src/Facades/ComponentEnv.php
<?php namespace Stillat\Dagger\Facades; use Illuminate\Support\Facades\Facade; use Illuminate\View\Factory; use Stillat\Dagger\Runtime\Cache\AttributeCache; use Stillat\Dagger\Runtime\Cache\ComponentCache; use Stillat\Dagger\Runtime\Component; use Stillat\Dagger\Runtime\ComponentEnvironment; /** * @method static vo...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Facades/Compiler.php
src/Facades/Compiler.php
<?php namespace Stillat\Dagger\Facades; use Closure; use Illuminate\Support\Facades\Facade; use Stillat\Dagger\Compiler\CompilerOptions; use Stillat\Dagger\Compiler\TemplateCompiler; /** * @method static void addComponentViewPath(string $componentPrefix, string $path) * @method static void addComponentPath(string ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Facades/SourceMapper.php
src/Facades/SourceMapper.php
<?php namespace Stillat\Dagger\Facades; use Exception; use Illuminate\Support\Facades\Facade; use PhpParser\Error; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Exceptions\ComponentException; use Stillat\Dagger\Exceptions\Mapping\SourceMapper as SourceMapperImpl; /** * @method static Co...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/ViewManifest.php
src/Runtime/ViewManifest.php
<?php namespace Stillat\Dagger\Runtime; use Illuminate\Contracts\View\View; use Illuminate\Support\Str; class ViewManifest { protected bool $trace = true; protected array $views = []; protected array $tracked = []; protected string $cachePath = ''; public function __construct(string $cachePat...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/Attributes.php
src/Runtime/Attributes.php
<?php namespace Stillat\Dagger\Runtime; use Illuminate\Support\Str; use Illuminate\View\ComponentAttributeBag; class Attributes { public static function mergeNestedAttributes(array $data, array $props): array { if (! isset($data['attributes']) || empty($props)) { return $data; } ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/ComponentEnvironment.php
src/Runtime/ComponentEnvironment.php
<?php namespace Stillat\Dagger\Runtime; use Illuminate\Support\Fluent; use Illuminate\View\Component as IlluminateComponent; use Illuminate\View\ComponentAttributeBag; use Illuminate\View\Factory; use Stillat\Dagger\AbstractComponent; use Stillat\Dagger\Runtime\Cache\AttributeCache; use Stillat\Dagger\Runtime\Cache\C...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/SlotContainer.php
src/Runtime/SlotContainer.php
<?php namespace Stillat\Dagger\Runtime; use Illuminate\View\ComponentSlot; class SlotContainer { const DEFAULT_SLOT_KEY = '-default-'; protected static ?ComponentSlot $emptySlot = null; protected array $contents = []; public static function getEmptySlot(): ComponentSlot { if (static::$...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/EmptyHtmlable.php
src/Runtime/EmptyHtmlable.php
<?php namespace Stillat\Dagger\Runtime; use Illuminate\Contracts\Support\Htmlable; class EmptyHtmlable implements Htmlable { protected static ?EmptyHtmlable $instance = null; public static function instance(): EmptyHtmlable { if (! self::$instance) { self::$instance = new EmptyHtmlab...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/Component.php
src/Runtime/Component.php
<?php namespace Stillat\Dagger\Runtime; use BadMethodCallException; use Closure; use ReflectionClass; use ReflectionMethod; use Stillat\Dagger\AbstractComponent; use Stillat\Dagger\Exceptions\RuntimeException; class Component extends AbstractComponent { protected array $macros = []; protected static array $...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/Cache/ComponentCache.php
src/Runtime/Cache/ComponentCache.php
<?php namespace Stillat\Dagger\Runtime\Cache; class ComponentCache { protected array $instances = []; public function put(string $key, $component) { $this->instances[$key] = clone $component; } public function get(string $key) { return $this->instances[$key] ?? null; } }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/Cache/AttributeCache.php
src/Runtime/Cache/AttributeCache.php
<?php namespace Stillat\Dagger\Runtime\Cache; use Illuminate\View\ComponentAttributeBag; class AttributeCache { protected array $items = []; public static function getAttributeCacheKey(array $params): ?string { $cacheKey = ''; foreach ($params as $key => $value) { if (is_obj...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Runtime/Forwarding/ValueContainer.php
src/Runtime/Forwarding/ValueContainer.php
<?php namespace Stillat\Dagger\Runtime\Forwarding; use Illuminate\View\ComponentSlot; class ValueContainer { protected array $forwardedSlots = []; protected array $forwardedValues = []; public function addForwardedValue(string $path, mixed $value): void { $this->forwardedValues[$path] = $va...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/src/Commands/InstallCommand.php
src/Commands/InstallCommand.php
<?php namespace Stillat\Dagger\Commands; use Illuminate\Console\Command; class InstallCommand extends Command { protected $signature = 'dagger:install'; protected $description = 'Scaffolds paths for Dagger component development.'; public function handle() { $this->info('Scaffolding Dagger p...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Pest.php
tests/Pest.php
<?php uses(\Stillat\Dagger\Tests\CompilerTestCase::class) ->in( 'AttributeCache', 'Cache', 'Compiler', 'LineNumbers', 'Parsers', 'Runtime', );
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/CompilerTestCase.php
tests/CompilerTestCase.php
<?php namespace Stillat\Dagger\Tests; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\Blade; use Orchestra\Testbench\TestCase; use Stillat\Dagger\Compiler\BladeComponentStacksCompiler; use Stillat\Dagger\Compiler\ComponentState; use Stillat\Dagger\Exceptions\Mapping\LineMapper; use Stillat\Dagg...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/CtrDisabledClass.php
tests/CtrDisabledClass.php
<?php namespace Stillat\Dagger\Tests; use Stillat\Dagger\Compiler\DisableOptimization; use Stillat\Dagger\Compiler\EnableOptimization; #[DisableOptimization] class CtrDisabledClass { public static function methodOne(): string { return 'Hello, world.'; } #[EnableOptimization] public stati...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/StaticTestHelpers.php
tests/StaticTestHelpers.php
<?php namespace Stillat\Dagger\Tests; class StaticTestHelpers { protected static $counter = 0; public static function counter(): int { self::$counter += 1; return self::$counter; } public static function resetCounter(): void { self::$counter = 0; } }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/CtrEnabledClass.php
tests/CtrEnabledClass.php
<?php namespace Stillat\Dagger\Tests; use Stillat\Dagger\Compiler\DisableOptimization; use Stillat\Dagger\Compiler\EnableOptimization; #[EnableOptimization] class CtrEnabledClass { public static function methodOne(): string { return 'Hello, world.'; } #[DisableOptimization] public static...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/SlotsTest.php
tests/Compiler/SlotsTest.php
<?php use Illuminate\Support\Str; test('default slot scope behavior is equivalent to blade components', function () { $bladeComponent = <<<'BLADE' <?php $theVar = 15; ?> <x-componentslot> Slot Content: {{ $title }} <?php $theVar += 10; ?> </x-componentslot> {{ $theVar }} BLADE; $this->assertSame( 'N...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CustomNamespaceTest.php
tests/Compiler/CustomNamespaceTest.php
<?php test('custom namespaces can be registered', function () { $this->assertSame( '<b-test />', $this->render('<b-test />') ); \Stillat\Dagger\Facades\Compiler::registerComponentPath( 'b', __DIR__.'/../resources/custom_namespace' ); $this->assertSame( 'Fro...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/NamespaceInliningTest.php
tests/Compiler/NamespaceInliningTest.php
<?php use Illuminate\Support\Str; test('class import namespaces are inlined', function () { $template = <<<'BLADE' @foreach ($items as $item) <c-namespaces.class_import :title="$item" /> @endforeach BLADE; $compiled = $this->compile($template); $this->assertStringNotContainsString( 'e(Str::u...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/RenderFunctionTest.php
tests/Compiler/RenderFunctionTest.php
<?php test('render function is evaluated for each invocation', function () { $template = <<<'BLADE' @for ($i = 0; $i < 10; $i++) <c-render.basic /> @endfor BLADE; $expected = <<<'EXPECTED' Non Render: 1 Render: 2 Non Render: 1 Render: 3 Non Render: 1 Render: 4 Non Render: 1 Render: 5 Non Render: 1 Render: 6 N...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/BladeStackCompilerTest.php
tests/Compiler/BladeStackCompilerTest.php
<?php test('it does not trigger errors if it cannot find ending string', function () { $input = <<<'PHP' @props([ 'icon' => null, ]) ##BEGIN-COMPONENT-CLASS##@component('Illuminate\View\AnonymousComponent', 'component::' . $dynamicComponentName, [ ]) <?php $component->withAttributes($attributes->getAttributes...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CompilerOutputTest.php
tests/Compiler/CompilerOutputTest.php
<?php test('it trims dynamic output', function () { $template = <<<'BLADE' <c-output.dynamic_trim /> BLADE; $this->assertSame( 'No Title!', $this->render($template) ); }); test('it trims static output', function () { $template = <<<'BLADE' <c-output.static_trim /> BLADE; $this->a...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CircularComponentsTest.php
tests/Compiler/CircularComponentsTest.php
<?php test('it compiles circular component references', function () { $comments = [ ['message' => 'Message 1'], ['message' => 'Message 2'], [ 'message' => 'Message 3', 'comments' => [ ['message' => 'Message 3.1'], [ ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/AttributeForwardingTest.php
tests/Compiler/AttributeForwardingTest.php
<?php use Illuminate\Support\Str; test('parameters can be forwarded', function () { $template = <<<'BLADE' <c-attribute_forwarding.panel /> BLADE; $this->assertSame( 'Panel Start No Title Panel End', Str::squish($this->render($template)) ); $template = <<<'BLADE' <c-attribute_forward...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/BasicComponentsTest.php
tests/Compiler/BasicComponentsTest.php
<?php test('it compiles simple static content', function () { $this->assertSame( 'Some Static Content {{ title }}', $this->compile('<c-static />') ); }); test('fully qualified component function works', function () { $expected = <<<'EXPECTED' Title: The Title Attributes: class="something" ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/AttributesTest.php
tests/Compiler/AttributesTest.php
<?php test('it renders attributes', function () { $this->assertSame( 'class="one two three" No Prop', $this->render('<c-attributes class="one two three" />', ['prop_one' => 'The Prop Value']) ); $this->assertSame( 'class="one two three" The Prop Value', $this->render('<c-at...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CallbackCompilerTest.php
tests/Compiler/CallbackCompilerTest.php
<?php use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\Dagger\Exceptions\InvalidArgumentException; use Stillat\Dagger\Facades\Compiler; test('custom compiler callbacks are invoked', function () { $template = <<<'BLADE' <c-callback /> BLADE; Compiler::compileComponent('c:callback', function...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/DynamicComponentsTest.php
tests/Compiler/DynamicComponentsTest.php
<?php use Illuminate\Support\Str; test('it renders dynamic components', function () { $template = <<<'BLADE' <c-dynamic-component component="dynamic.component_a" title="The Title" /> <c-dynamic-component component="dynamic.component_b" title="The Title" /> BLADE; $expected = <<<'EXPECTED' Component A: The T...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/AwareTest.php
tests/Compiler/AwareTest.php
<?php test('aware can retrieve default prop value from parent', function () { $this->assertSame( 'Root Default!', $this->render('<c-aware.root_one />') ); }); test('aware can have defaults', function () { $this->assertSame( 'The color: gray', $this->render('<c-aware.default...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/WhenAttributeTest.php
tests/Compiler/WhenAttributeTest.php
<?php test('when attribute is compiled', function () { $blade = <<<'BLADE' <c-when.basic #when="$value" title="The Title" /> BLADE; $this->assertSame('', $this->render($blade, ['value' => false])); $this->assertSame('The Title', $this->render($blade, ['value' => true])); });
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/PropertiesTest.php
tests/Compiler/PropertiesTest.php
<?php test('it parses props directive', function () { $template = <<<'BLADE' <c-properties.basic title="The Title" class="some class names here" /> BLADE; $expected = <<<'EXPECTED' <div class="some class names here"> The Title </div> EXPECTED; $this->assertSame( $expected, $this->rend...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/DocsTest.php
tests/Compiler/DocsTest.php
<?php test('alert example', function () { $template = <<<'BLADE' <c-docs.alert type="error" :message="$message" class="mb-4"/> BLADE; $expected = <<<'EXPECTED' <div class="alert alert-error mb-4"> The Message </div> EXPECTED; $this->assertSame( $expected, $this->render($template, ['me...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CompleTimeRenderingTest.php
tests/Compiler/CompleTimeRenderingTest.php
<?php test('simple components can be rendered at compile time', function () { $this->assertSame( '<button>Book Room</button>', trim($this->compile('<c-ctr.button text="Book Room" />')) ); }); test('rendered and compile time contents are equivalent', function () { $template = <<<'BLADE' <c-...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CustomFunctionsTest.php
tests/Compiler/CustomFunctionsTest.php
<?php test('custom functions in a component are compiled', function () { $template = <<<'BLADE' @for ($i = 0; $i < 5; $i++) <c-functions.declared title="The Title: {{ $i }}" /> @endfor BLADE; $expected = <<<'EXPECTED' THE TITLE: 0THE TITLE: 1THE TITLE: 2THE TITLE: 3THE TITLE: 4 EXPECTED; $this->assertSam...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/SlotForwardingTest.php
tests/Compiler/SlotForwardingTest.php
<?php use Illuminate\Support\Str; test('slots can be forward to nested components', function () { $template = <<<'BLADE' <?php $variableInsideTheScope = 'The Value.'; ?> <c-slot_forwarding.component_a> <c-slot:nested.header> I am the slot content. {{ $variableInsideTheScope }} </c-slot:nested....
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/ErrorsTest.php
tests/Compiler/ErrorsTest.php
<?php test('invalid template end component triggers error', function () { $this->expectExceptionMessage('Compiler component [compiler:template_end] must be the last component.'); $template = <<<'BLADE' <div> <c-compiler:template_end /> </div> BLADE; $this->render($template); });
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/ForAttributeTest.php
tests/Compiler/ForAttributeTest.php
<?php test('for attribute is compiled', function () { $template = <<<'BLADE' <ul> <c-for.item #for.items.item :text="$item['text']" /> </ul> BLADE; $data = [ 'items' => [ ['text' => 'Item 1'], ['text' => 'Item 2'], ], ]; $expected = <<<'EXPECTED' <ul> ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/CompilerParamsTest.php
tests/Compiler/CompilerParamsTest.php
<?php use Stillat\Dagger\Exceptions\InvalidCompilerParameterException; test('it throws an exception when using variable references', function () { $this->expectException(InvalidCompilerParameterException::class); $this->render('<c-root :#id="someId" />'); }); test('it throws an exception when using curly br...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Compiler/StencilsTest.php
tests/Compiler/StencilsTest.php
<?php use Illuminate\Support\Str; test('default stencil content is rendered if not changed', function () { $this->assertSame( 'Before The Default. After', Str::squish($this->render('<c-stencils.basic />')) ); $this->assertSame( 'Before The Default. After', Str::squish($thi...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Mixins/ProfileMixin.php
tests/Mixins/ProfileMixin.php
<?php namespace Stillat\Dagger\Tests\Mixins; class ProfileMixin { public function sayHello(string $name): string { return "Hello, {$name}."; } }
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false
Stillat/dagger
https://github.com/Stillat/dagger/blob/ce030a90bd374911860e31ca5e1af9a8ebc10743/tests/Mixins/MixinThree.php
tests/Mixins/MixinThree.php
<?php namespace Stillat\Dagger\Tests\Mixins; use Stillat\Dagger\Runtime\Component; class MixinThree { protected ?Component $component = null; public function withComponent(Component $component) { $this->component = $component; } public function testMethod(string $suffix): string { ...
php
MIT
ce030a90bd374911860e31ca5e1af9a8ebc10743
2026-01-05T02:31:11.485080Z
false