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/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesVerbatim.php | src/Compiler/Concerns/CompilesVerbatim.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesVerbatim
{
#... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesEchos.php | src/Compiler/Concerns/CompilesEchos.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Closure;
use Illuminate\Support\Str;
use ReflectionException;
use Stillat\BladeParser\Compiler\CompilationTarget;
use Stillat\BladeParser\Nodes\EchoNode;
trait CompilesEchos
{
/**
* The list of echo handlers.
*/
protected array $echoHandler... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesTranslations.php | src/Compiler/Concerns/CompilesTranslations.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesTranslations
{
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesIncludes.php | src/Compiler/Concerns/CompilesIncludes.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesIncludes
{
#... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesHelpers.php | src/Compiler/Concerns/CompilesHelpers.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Illuminate\Foundation\Vite;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesStacks.php | src/Compiler/Concerns/CompilesStacks.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
tr... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesConditionals.php | src/Compiler/Concerns/CompilesConditionals.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
tr... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesLoops.php | src/Compiler/Concerns/CompilesLoops.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Illuminate\Contracts\View\ViewCompilationException;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladePar... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesClasses.php | src/Compiler/Concerns/CompilesClasses.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesClasses
{
#[... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesCustomDirectives.php | src/Compiler/Concerns/CompilesCustomDirectives.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
trait CompilesCustomDirectives
{
protected function callCustomDirective(string $name, string $value): string
{
return call_user_func($this->customDirectives[$name], trim($value));
}
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesStyles.php | src/Compiler/Concerns/CompilesStyles.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesStyles
{
#[C... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesFragments.php | src/Compiler/Concerns/CompilesFragments.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesFragments
{
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesComponents.php | src/Compiler/Concerns/CompilesComponents.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Compiler\Compiler;
use S... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesUseStatements.php | src/Compiler/Concerns/CompilesUseStatements.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Illuminate\Contracts\View\ViewCompilationException;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladePar... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/CompilesJson.php | src/Compiler/Concerns/CompilesJson.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
use Stillat\BladeParser\Compiler\Attributes\ArgumentRequirement;
use Stillat\BladeParser\Compiler\Attributes\CompilesDirective;
use Stillat\BladeParser\Compiler\Attributes\StructureType;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait CompilesJson
{
/**
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Concerns/ManagesCustomConditions.php | src/Compiler/Concerns/ManagesCustomConditions.php | <?php
namespace Stillat\BladeParser\Compiler\Concerns;
trait ManagesCustomConditions
{
/**
* Register an "if" statement directive.
*
* This method has the same behavior as the
* `Illuminate\View\Compilers\BladeCompiler::if` method. You do
* *not* need to manually call this method to sync ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Attributes/StructureType.php | src/Compiler/Attributes/StructureType.php | <?php
namespace Stillat\BladeParser\Compiler\Attributes;
enum StructureType
{
case Open;
case Terminator;
case Mixed;
case EchoHelper;
case Debug;
case Extension;
case Include;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Attributes/CompilesDirective.php | src/Compiler/Attributes/CompilesDirective.php | <?php
namespace Stillat\BladeParser\Compiler\Attributes;
use Attribute;
#[Attribute]
class CompilesDirective
{
public readonly StructureType $structureType;
public readonly ArgumentRequirement $parameterRequirement;
public function __construct(StructureType $structureType, ArgumentRequirement $paramete... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Attributes/ArgumentRequirement.php | src/Compiler/Attributes/ArgumentRequirement.php | <?php
namespace Stillat\BladeParser\Compiler\Attributes;
enum ArgumentRequirement
{
case Required;
case NoArguments;
case Optional;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Transformers/RawTransformer.php | src/Compiler/Transformers/RawTransformer.php | <?php
namespace Stillat\BladeParser\Compiler\Transformers;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\PhpBlockNode;
use Stillat\BladeParser\Nodes\PhpTagNode;
use Stillat\BladeParser\Nodes\VerbatimNode;
/**
* Class RawTransformer
*
* Responsible for emulating the Core Laravel Blade ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Compiler/Transformers/NodeTransformer.php | src/Compiler/Transformers/NodeTransformer.php | <?php
namespace Stillat\BladeParser\Compiler\Transformers;
use Stillat\BladeParser\Document\Document;
use Stillat\BladeParser\Nodes\AbstractNode;
abstract class NodeTransformer
{
private ?AbstractNode $skipNode = null;
public function transformDocument(Document $document): string
{
return $this-... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/DocumentOptions.php | src/Document/DocumentOptions.php | <?php
namespace Stillat\BladeParser\Document;
class DocumentOptions
{
public function __construct(
/**
* Determines if core Laravel Blade directives should be parsed.
*/
public bool $withCoreDirectives = true,
/**
* A list of custom directive names to parse.
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/PartitionResult.php | src/Document/PartitionResult.php | <?php
namespace Stillat\BladeParser\Document;
use Stillat\BladeParser\Nodes\NodeCollection;
class PartitionResult
{
public NodeCollection $leadingNodes;
/**
* @var NodeCollection[]
*/
public array $partitions = [];
public function __construct(NodeCollection $leadingNodes)
{
$t... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/DocumentFactory.php | src/Document/DocumentFactory.php | <?php
namespace Stillat\BladeParser\Document;
class DocumentFactory
{
/**
* A factory method that can be used to construct Document instances.
*
* @var callable|null
*/
public static $factory = null;
public static function makeDocument(): Document
{
$methodToCall = self::$... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Document.php | src/Document/Document.php | <?php
namespace Stillat\BladeParser\Document;
use Illuminate\Support\Collection;
use Illuminate\Support\Traits\Macroable;
use Stillat\BladeParser\Compiler\CompilerFactory;
use Stillat\BladeParser\Document\Concerns\ManagesDocumentStructures;
use Stillat\BladeParser\Document\Concerns\ManagesDocumentValidation;
use Stil... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/DocumentCompilerOptions.php | src/Document/DocumentCompilerOptions.php | <?php
namespace Stillat\BladeParser\Document;
class DocumentCompilerOptions
{
/**
* @param bool $failOnParserErrors Indicates if the compiler should fail on parser errors.
* @param bool $failStrictly Indicates if the compiler should fail on any error.
* @param bool $throwExceptionOnUnknownC... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/NodeUtilities/QueriesRelativeNodes.php | src/Document/NodeUtilities/QueriesRelativeNodes.php | <?php
namespace Stillat\BladeParser\Document\NodeUtilities;
use Stillat\BladeParser\Document\PartitionResult;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection;
trait QueriesRelativeNodes
{
/**
* Retrieves all nodes starting... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/NodeUtilities/QueriesComments.php | src/Document/NodeUtilities/QueriesComments.php | <?php
namespace Stillat\BladeParser\Document\NodeUtilities;
use Stillat\BladeParser\Nodes\CommentNode;
use Stillat\BladeParser\Nodes\NodeCollection;
trait QueriesComments
{
/**
* Retrieves all Blade comments from the document.
*/
public function getComments(): NodeCollection
{
if ($this... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/NodeUtilities/QueriesGenerics.php | src/Document/NodeUtilities/QueriesGenerics.php | <?php
namespace Stillat\BladeParser\Document\NodeUtilities;
use Illuminate\Support\Collection;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\CommentNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\EchoNode;
use Stillat\BladeParser\Nodes\LiteralNode;
use Stil... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/NodeUtilities/QueriesStructures.php | src/Document/NodeUtilities/QueriesStructures.php | <?php
namespace Stillat\BladeParser\Document\NodeUtilities;
use Illuminate\Support\Collection;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\Structures\Condition;
use Stillat\BladeParser\Nodes\Structures\ForElse;
use Stillat\BladeParser\Nodes\Structures\SwitchStatement;
trait QueriesStru... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/NodeUtilities/QueriesComponents.php | src/Document/NodeUtilities/QueriesComponents.php | <?php
namespace Stillat\BladeParser\Document\NodeUtilities;
use Stillat\BladeParser\Nodes\Components\ComponentNode;
use Stillat\BladeParser\Nodes\NodeCollection;
trait QueriesComponents
{
/**
* Returns all component tags within the document.
*
* This method will return *all* component tags within ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/NodeUtilities/QueriesGeneralNodes.php | src/Document/NodeUtilities/QueriesGeneralNodes.php | <?php
namespace Stillat\BladeParser\Document\NodeUtilities;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\EchoNode;
use Stillat\BladeParser\Nodes\LiteralNode;
use Stillat\BladeParser\Nodes\NodeCollection;
use Stillat\BladeParser\Nodes\PhpBlockNode;
use Stillat\BladeParser\Nodes\PhpTagNode... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/ConditionPairStackItem.php | src/Document/Structures/ConditionPairStackItem.php | <?php
namespace Stillat\BladeParser\Document\Structures;
use Stillat\BladeParser\Nodes\DirectiveNode;
class ConditionPairStackItem
{
/**
* The intended parent node.
*/
public DirectiveNode $node;
/**
* The start position of the parent node.
*/
public int $index;
public funct... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/DirectiveClosingAnalyzer.php | src/Document/Structures/DirectiveClosingAnalyzer.php | <?php
namespace Stillat\BladeParser\Document\Structures;
use Illuminate\Support\Str;
use Stillat\BladeParser\Nodes\DirectiveNode;
class DirectiveClosingAnalyzer
{
/**
* Analyzes the provided node to determine if it could be a closing directive.
*
* @param DirectiveNode $node The node.
*/
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/RelationshipAnalyzer.php | src/Document/Structures/RelationshipAnalyzer.php | <?php
namespace Stillat\BladeParser\Document\Structures;
use Stillat\BladeParser\Document\Document;
use Stillat\BladeParser\Nodes\Components\ComponentNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
class RelationshipAnalyzer
{
protected Document $document;
public function __construct(Document $document)
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/DirectiveStackItem.php | src/Document/Structures/DirectiveStackItem.php | <?php
namespace Stillat\BladeParser\Document\Structures;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
class DirectiveStackItem
{
/**
* @var AbstractNode[]
*/
public array $documentNodes = [];
public ?DirectiveNode $refParent = null;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/StructurePairAnalyzer.php | src/Document/Structures/StructurePairAnalyzer.php | <?php
namespace Stillat\BladeParser\Document\Structures;
use Illuminate\Support\Str;
use Stillat\BladeParser\Document\Document;
use Stillat\BladeParser\Document\Structures\Concerns\ConstructsConditions;
use Stillat\BladeParser\Document\Structures\Concerns\ConstructsForElse;
use Stillat\BladeParser\Document\Structures... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ConstructsConditions.php | src/Document/Structures/Concerns/ConstructsConditions.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\Structures\Condition;
use Stillat\BladeParser\Nodes\Structures\ConditionalBranch;
use Stillat\BladeParser\Parser\BladeKeywords;
trait ConstructsConditions
{
protected funct... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ManagesDirectiveIndexes.php | src/Document/Structures/Concerns/ManagesDirectiveIndexes.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait ManagesDirectiveIndexes
{
private function buildCloseIndex(array $nodes): void
{
foreach ($nodes as $directive) {
if (! $directive instanceof DirectiveNode) {
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/PairsConditionalStructures.php | src/Document/Structures/Concerns/PairsConditionalStructures.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Document\Structures\ConditionPairStackItem;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Parser\BladeKeywords;
trait PairsConditionalStructures
{
/**
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ScansForClosingPairs.php | src/Document/Structures/Concerns/ScansForClosingPairs.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait ScansForClosingPairs
{
/**
* @param AbstractNode[] $nodes
*/
private function findClosingPair(array $nodes, DirectiveNode $node, array $... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ConstructsSwitchStatements.php | src/Document/Structures/Concerns/ConstructsSwitchStatements.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection;
use Stillat\BladeParser\Nodes\Structures\CaseStatement;
use Stillat\BladeParser\Nodes\Structures\SwitchStatement;
use... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ResolvesStructureDocuments.php | src/Document/Structures/Concerns/ResolvesStructureDocuments.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\Components\ComponentNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait ResolvesStructureDocuments
{
private function resolveStructureDocuments(array $nodes): void
{
foreach ($nodes as $node) {
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ConstructsForElse.php | src/Document/Structures/Concerns/ConstructsForElse.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection;
use Stillat\BladeParser\Nodes\Structures\ForElse;
use Stillat\BladeParser\Parser\BladeKeywords;
trait ConstructsForElse
{
protected function constructForEls... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/ManagesConditionMetaData.php | src/Document/Structures/Concerns/ManagesConditionMetaData.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Parser\BladeKeywords;
trait ManagesConditionMetaData
{
protected array $conditionClosingPairs = ['elseif', 'else', 'endif'];
protected array $nodeReferences = [];
prote... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Structures/Concerns/PairsComponentTags.php | src/Document/Structures/Concerns/PairsComponentTags.php | <?php
namespace Stillat\BladeParser\Document\Structures\Concerns;
use Stillat\BladeParser\Nodes\Components\ComponentNode;
trait PairsComponentTags
{
private function pairComponentTags(array $nodes): void
{
for ($i = 0; $i < count($nodes); $i++) {
$node = $nodes[$i];
if (! $no... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Concerns/ManagesDocumentStructures.php | src/Document/Concerns/ManagesDocumentStructures.php | <?php
namespace Stillat\BladeParser\Document\Concerns;
use Stillat\BladeParser\Document\Document;
use Stillat\BladeParser\Document\Structures\StructurePairAnalyzer;
trait ManagesDocumentStructures
{
/**
* Resolves structures within the document, such as directive pairs.
*
* Structural analysis can... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Concerns/ManagesTextExtraction.php | src/Document/Concerns/ManagesTextExtraction.php | <?php
namespace Stillat\BladeParser\Document\Concerns;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
use Stillat\BladeParser\Nodes\Components\ComponentNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
trait ManagesTextExtraction
{
/**
* Returns the original ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Document/Concerns/ManagesDocumentValidation.php | src/Document/Concerns/ManagesDocumentValidation.php | <?php
namespace Stillat\BladeParser\Document\Concerns;
use Stillat\BladeParser\Document\Document;
use Stillat\BladeParser\Validation\AbstractDocumentValidator;
use Stillat\BladeParser\Validation\AbstractNodeValidator;
use Stillat\BladeParser\Validation\BladeValidator;
use Stillat\BladeParser\Validation\ValidationResu... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Support/Utf8StringIterator.php | src/Support/Utf8StringIterator.php | <?php
namespace Stillat\BladeParser\Support;
use ArrayAccess;
use Countable;
use Iterator;
class Utf8StringIterator implements ArrayAccess, Countable, Iterator
{
protected string $string = '';
protected int $position = 0;
protected int $lastSize = 1;
protected int $length = 0;
protected ?arra... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Support/BladeCompilerDetailsFetcher.php | src/Support/BladeCompilerDetailsFetcher.php | <?php
namespace Stillat\BladeParser\Support;
use Illuminate\View\Compilers\BladeCompiler;
use ReflectionClass;
use ReflectionException;
class BladeCompilerDetailsFetcher
{
private BladeCompiler $compiler;
private ReflectionClass $reflection;
public function __construct(BladeCompiler $compiler)
{
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Support/Utilities/Paths.php | src/Support/Utilities/Paths.php | <?php
namespace Stillat\BladeParser\Support\Utilities;
use Illuminate\Support\Str;
class Paths
{
public static function normalizePathWithTrailingSlash(?string $path): ?string
{
if ($path == null) {
return null;
}
return Str::finish(self::normalizePath($path), '/');
}
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/VerbatimNode.php | src/Nodes/VerbatimNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
class VerbatimNode extends AbstractNode
{
/**
* The block's inner content.
*/
public string $innerContent = '';
/**
* The block's original leading whitespace.
*/
public s... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/ArgumentGroupNode.php | src/Nodes/ArgumentGroupNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\CompilerServices\ArgStringSplitter;
use Stillat\BladeParser\Compiler\CompilerServices\StringSplitter;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
class Arg... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/PhpTagNode.php | src/Nodes/PhpTagNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
class PhpTagNode extends AbstractNode
{
public PhpTagType $type = PhpTagType::PhpOpenTag;
/**
* The tag's inner content.
*/
public string $innerContent = '';
/**
* The tag's ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/NodeCollection.php | src/Nodes/NodeCollection.php | <?php
namespace Stillat\BladeParser\Nodes;
use Illuminate\Support\Collection;
use Stillat\BladeParser\Document\NodeUtilities\QueriesGeneralNodes;
class NodeCollection extends Collection
{
use QueriesGeneralNodes;
/**
* @return Collection<int, AbstractNode>
*/
public function getNodes(): Collec... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/DirectiveNode.php | src/Nodes/DirectiveNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Illuminate\Support\Collection;
use Stillat\BladeParser\Document\Structures\DirectiveClosingAnalyzer;
use Stillat\BladeParser\Nodes\Concerns\ContainsDocumentText;
use Stillat\BladeParser\Nodes\Concerns\ProvidesAccessToResolvedStructures;
class DirectiveNode extends Abstr... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/CommentNode.php | src/Nodes/CommentNode.php | <?php
namespace Stillat\BladeParser\Nodes;
class CommentNode extends AbstractNode
{
/**
* The comment's inner content.
*/
public string $innerContent = '';
/**
* The comment's original leading whitespace.
*/
public string $originalLeadingWhitespace = '';
/**
* The commen... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/BaseNode.php | src/Nodes/BaseNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\Macroable;
class BaseNode
{
use Macroable;
/**
* Identifies the original position within
* the document, relative to other nodes.
*/
public int $index = 0;
/**
* An arbitrary ide... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/EchoType.php | src/Nodes/EchoType.php | <?php
namespace Stillat\BladeParser\Nodes;
enum EchoType
{
/**
* A normal echo: {{ $value }}
*/
case Echo;
/**
* An echo with three curly braces: {{{ $value }}}
*/
case TripleEcho;
/**
* A raw echo: {!! $value !!}
*/
case RawEcho;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/PhpBlockNode.php | src/Nodes/PhpBlockNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
class PhpBlockNode extends AbstractNode
{
/**
* The block's inner content.
*/
public string $innerContent = '';
/**
* The block's original leading whitespace.
*/
public s... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/LiteralNode.php | src/Nodes/LiteralNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Stillat\BladeParser\Compiler\CompilerServices\LiteralContentHelpers;
class LiteralNode extends AbstractNode
{
/**
* Contains the content of the literal node, without Blade escape sequences.
*/
public string $unescapedContent = '';
/**
* Conta... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Position.php | src/Nodes/Position.php | <?php
namespace Stillat\BladeParser\Nodes;
class Position
{
/**
* The starting character offset.
*
* Starts at zero.
*/
public int $startOffset = 0;
/**
* The starting line number.
*
* Starts at one.
*/
public ?int $startLine = null;
/**
* The startin... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/AbstractNode.php | src/Nodes/AbstractNode.php | <?php
namespace Stillat\BladeParser\Nodes;
use Stillat\BladeParser\Document\Document;
use Stillat\BladeParser\Document\NodeUtilities\QueriesGeneralNodes;
use Stillat\BladeParser\Errors\Exceptions\InvalidCastException;
use Stillat\BladeParser\Nodes\Fragments\FragmentPosition;
use Stillat\BladeParser\Nodes\Structures\B... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/PhpTagType.php | src/Nodes/PhpTagType.php | <?php
namespace Stillat\BladeParser\Nodes;
enum PhpTagType
{
/**
* Indicates a PhpTagNode was created from <?php ?> syntax.
*/
case PhpOpenTag;
/**
* Indicates a PhpTagNode was created from <?= ?> syntax.
*/
case PhpOpenTagWithEcho;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/ArgumentContentType.php | src/Nodes/ArgumentContentType.php | <?php
namespace Stillat\BladeParser\Nodes;
enum ArgumentContentType
{
case Php;
case Json;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/EchoNode.php | src/Nodes/EchoNode.php | <?php
namespace Stillat\BladeParser\Nodes;
class EchoNode extends AbstractNode
{
/**
* The echo statement's inner content.
*/
public string $innerContent = '';
/**
* The echo node's type.
*/
public EchoType $type = EchoType::Echo;
public function isRaw(): bool
{
r... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/NodeIndexer.php | src/Nodes/NodeIndexer.php | <?php
namespace Stillat\BladeParser\Nodes;
class NodeIndexer
{
/**
* Resets the indexes on the provided nodes.
*
* @param BaseNode[] $nodes The nodes to index.
*/
public static function indexNodes(array $nodes): void
{
$curIndex = 0;
foreach ($nodes as $node) {
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/ParameterType.php | src/Nodes/Components/ParameterType.php | <?php
namespace Stillat\BladeParser\Nodes\Components;
enum ParameterType
{
case Parameter;
case Attribute;
case DynamicVariable;
case ShorthandDynamicVariable;
case InterpolatedValue;
case EscapedParameter;
case AttributeEcho;
case AttributeRawEcho;
case AttributeTripleEcho;
ca... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/ParameterNode.php | src/Nodes/Components/ParameterNode.php | <?php
namespace Stillat\BladeParser\Nodes\Components;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
use Stillat\BladeParser\Nodes\AbstractNode;
class ParameterNode extends AbstractNode
{
private ?ComponentNode $ownerComponent = null;
public ?ParameterAttribut... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/ParameterAttribute.php | src/Nodes/Components/ParameterAttribute.php | <?php
namespace Stillat\BladeParser\Nodes\Components;
use Stillat\BladeParser\Nodes\BaseNode;
class ParameterAttribute extends BaseNode
{
public string $content = '';
public function clone(): ParameterAttribute
{
$attribute = new ParameterAttribute;
$this->copyBasicDetailsTo($attribute);... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/ParameterFactory.php | src/Nodes/Components/ParameterFactory.php | <?php
namespace Stillat\BladeParser\Nodes\Components;
use Stillat\BladeParser\Parser\ComponentParser;
class ParameterFactory
{
/**
* Parses parameters within the provided content.
*
* @param string $parameterContent The parameter content.
*/
public static function fromText(string $para... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/ComponentNode.php | src/Nodes/Components/ComponentNode.php | <?php
namespace Stillat\BladeParser\Nodes\Components;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\Components\Concerns\ManagesComponentMetaData;
use Stillat\BladeParser\Nodes\Components\Concerns\ManagesComponentParameters;
use... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/Concerns/ManagesComponentParameters.php | src/Nodes/Components/Concerns/ManagesComponentParameters.php | <?php
namespace Stillat\BladeParser\Nodes\Components\Concerns;
use Stillat\BladeParser\Errors\Exceptions\DuplicateParameterException;
use Stillat\BladeParser\Errors\Exceptions\InvalidParameterException;
use Stillat\BladeParser\Nodes\Components\ParameterFactory;
use Stillat\BladeParser\Nodes\Components\ParameterNode;
... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Components/Concerns/ManagesComponentMetaData.php | src/Nodes/Components/Concerns/ManagesComponentMetaData.php | <?php
namespace Stillat\BladeParser\Nodes\Components\Concerns;
trait ManagesComponentMetaData
{
/**
* Returns a value indicating if the component is self-closing.
*/
public function getIsSelfClosing(): bool
{
return $this->isSelfClosing;
}
/**
* Returns a value indicating i... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Fragments/FragmentPosition.php | src/Nodes/Fragments/FragmentPosition.php | <?php
namespace Stillat\BladeParser\Nodes\Fragments;
enum FragmentPosition
{
case InsideFragment;
case InsideAttribute;
case InsideParameter;
case InsideFragmentName;
case StartOfFragment;
case EndOfFragment;
case Unknown;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Fragments/FragmentParameterType.php | src/Nodes/Fragments/FragmentParameterType.php | <?php
namespace Stillat\BladeParser\Nodes\Fragments;
enum FragmentParameterType
{
case Attribute;
case Parameter;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Fragments/FragmentParameter.php | src/Nodes/Fragments/FragmentParameter.php | <?php
namespace Stillat\BladeParser\Nodes\Fragments;
use Illuminate\Support\Str;
class FragmentParameter extends Fragment
{
/**
* The parameter name.
*/
public string $name = '';
/**
* The parameter value, if available.
*/
public string $value = '';
public FragmentParameterT... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Fragments/Fragment.php | src/Nodes/Fragments/Fragment.php | <?php
namespace Stillat\BladeParser\Nodes\Fragments;
use Stillat\BladeParser\Nodes\BaseNode;
use Stillat\BladeParser\Nodes\Position;
class Fragment extends BaseNode
{
public function __construct()
{
parent::__construct();
$this->position = new Position;
}
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Fragments/HtmlFragment.php | src/Nodes/Fragments/HtmlFragment.php | <?php
namespace Stillat\BladeParser\Nodes\Fragments;
class HtmlFragment extends Fragment
{
/**
* Indicates if the HTML fragment is a closing tag.
*/
public bool $isClosingTag = false;
/**
* Indicates if the HTML fragment is a self-closing tag.
*/
public bool $isSelfClosing = false... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Structures/ConditionalBranch.php | src/Nodes/Structures/ConditionalBranch.php | <?php
namespace Stillat\BladeParser\Nodes\Structures;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
use Stillat\BladeParser\Document\NodeUtilities\QueriesGeneralNodes;
use Stillat\BladeParser\Nodes\BaseNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Structures/SwitchStatement.php | src/Nodes/Structures/SwitchStatement.php | <?php
namespace Stillat\BladeParser\Nodes\Structures;
use Illuminate\Support\Collection;
use Stillat\BladeParser\Document\NodeUtilities\QueriesGeneralNodes;
use Stillat\BladeParser\Nodes\NodeCollection;
use Stillat\BladeParser\Parser\BladeKeywords;
class SwitchStatement extends BaseStructureNode
{
use QueriesGen... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Structures/ForElse.php | src/Nodes/Structures/ForElse.php | <?php
namespace Stillat\BladeParser\Nodes\Structures;
use Stillat\BladeParser\Document\NodeUtilities\QueriesGeneralNodes;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection;
use Stillat\BladeParser\Parser\BladeKeywords;
class ForElse ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Structures/BaseStructureNode.php | src/Nodes/Structures/BaseStructureNode.php | <?php
namespace Stillat\BladeParser\Nodes\Structures;
use Stillat\BladeParser\Nodes\AbstractNode;
use Stillat\BladeParser\Nodes\BaseNode;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection;
class BaseStructureNode extends BaseNode
{
public ?DirectiveNode $constructedFrom = ... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Structures/Condition.php | src/Nodes/Structures/Condition.php | <?php
namespace Stillat\BladeParser\Nodes\Structures;
use Illuminate\Support\Collection;
use Stillat\BladeParser\Parser\BladeKeywords;
class Condition extends BaseStructureNode
{
/**
* The conditional branches.
*
* @var ConditionalBranch[]
*/
public array $branches = [];
public funct... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Structures/CaseStatement.php | src/Nodes/Structures/CaseStatement.php | <?php
namespace Stillat\BladeParser\Nodes\Structures;
use Stillat\BladeParser\Document\NodeUtilities\QueriesGeneralNodes;
use Stillat\BladeParser\Nodes\DirectiveNode;
use Stillat\BladeParser\Nodes\NodeCollection;
use Stillat\BladeParser\Parser\BladeKeywords;
class CaseStatement extends BaseStructureNode
{
use Qu... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Concerns/ContainsDocumentText.php | src/Nodes/Concerns/ContainsDocumentText.php | <?php
namespace Stillat\BladeParser\Nodes\Concerns;
use Stillat\BladeParser\Document\Document;
trait ContainsDocumentText
{
/**
* The node's inner document content.
*/
public string $innerDocumentContent = '';
/**
* The node's outer document content.
*/
public string $outerDocume... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Concerns/InteractsWithBladeErrors.php | src/Nodes/Concerns/InteractsWithBladeErrors.php | <?php
namespace Stillat\BladeParser\Nodes\Concerns;
use Stillat\BladeParser\Errors\BladeError;
use Stillat\BladeParser\Errors\ConstructContext;
use Stillat\BladeParser\Errors\ErrorType;
trait InteractsWithBladeErrors
{
/**
* Retrieves the first error.
*
* If the error source contains multiple type... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Concerns/ProvidesAccessToResolvedStructures.php | src/Nodes/Concerns/ProvidesAccessToResolvedStructures.php | <?php
namespace Stillat\BladeParser\Nodes\Concerns;
use Stillat\BladeParser\Nodes\Structures\CaseStatement;
use Stillat\BladeParser\Nodes\Structures\Condition;
use Stillat\BladeParser\Nodes\Structures\ForElse;
use Stillat\BladeParser\Nodes\Structures\SwitchStatement;
trait ProvidesAccessToResolvedStructures
{
pu... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Nodes/Loops/LoopVariables.php | src/Nodes/Loops/LoopVariables.php | <?php
namespace Stillat\BladeParser\Nodes\Loops;
class LoopVariables
{
public string $source = '';
public string $variable = '';
public string $alias = '';
public bool $isValid = false;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/ComponentParser.php | src/Parser/ComponentParser.php | <?php
namespace Stillat\BladeParser\Parser;
use Illuminate\Support\Str;
use Stillat\BladeParser\Nodes\Components\ComponentNode;
use Stillat\BladeParser\Nodes\Components\ParameterAttribute;
use Stillat\BladeParser\Nodes\Components\ParameterNode;
use Stillat\BladeParser\Nodes\Components\ParameterType;
class ComponentP... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/BladeKeywords.php | src/Parser/BladeKeywords.php | <?php
namespace Stillat\BladeParser\Parser;
class BladeKeywords
{
public const K_Verbatim = 'verbatim';
public const K_EndVerbatim = 'endverbatim';
public const K_Php = 'php';
public const K_EndPhp = 'endphp';
public const K_If = 'if';
public const K_ElseIf = 'elseif';
public const K... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/AbstractParser.php | src/Parser/AbstractParser.php | <?php
namespace Stillat\BladeParser\Parser;
use Stillat\BladeParser\Errors\ErrorType;
use Stillat\BladeParser\Nodes\Position;
abstract class AbstractParser
{
const C_AtChar = '@';
const C_ExclamationMark = '!';
const C_Minus = '-';
const C_Equals = '=';
const C_Asterisk = '*';
const C_Fo... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/DocumentParserFactory.php | src/Parser/DocumentParserFactory.php | <?php
namespace Stillat\BladeParser\Parser;
class DocumentParserFactory
{
/**
* A factory method that can be used to construct DocumentParser instances.
*
* @var callable|null
*/
public static $factory = null;
public static function makeDocumentParser(): DocumentParser
{
$... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/IndexElementType.php | src/Parser/IndexElementType.php | <?php
namespace Stillat\BladeParser\Parser;
enum IndexElementType
{
case Directive;
case PhpOpenTag;
case PhpOpenTagWithEcho;
case BladeEcho;
case BladeEchoThree;
case BladeRawEcho;
case BladeComment;
case ComponentOpenTag;
case ComponentClosingTag;
case CustomComponentOpenTag;... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/DocumentParser.php | src/Parser/DocumentParser.php | <?php
namespace Stillat\BladeParser\Parser;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;
use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever;
use Stillat\BladeParser\Compiler\CompilerServices\LiteralContentHelpers;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilitie... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | true |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/IndexElement.php | src/Parser/IndexElement.php | <?php
namespace Stillat\BladeParser\Parser;
class IndexElement
{
public IndexElementType $type = IndexElementType::Directive;
public int $startOffset = 0;
public string $content = '';
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/ScanResult.php | src/Parser/ScanResult.php | <?php
namespace Stillat\BladeParser\Parser;
use Stillat\BladeParser\Errors\ErrorType;
class ScanResult
{
public ?int $abandonedOffset = null;
public bool $didAbandon = false;
public ErrorType $abandonReason = ErrorType::Unknown;
public string $content = '';
public int $offset = -1;
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/CoreDirectives.php | src/Parser/CoreDirectives.php | <?php
namespace Stillat\BladeParser\Parser;
class CoreDirectives
{
public const BLADE_STRUCTURES = [
'endphp', 'verbatim', 'endverbatim',
];
}
| php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Stillat/blade-parser | https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/HtmlFragments/FragmentsDocumentParser.php | src/Parser/HtmlFragments/FragmentsDocumentParser.php | <?php
namespace Stillat\BladeParser\Parser\HtmlFragments;
use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities;
use Stillat\BladeParser\Nodes\Fragments\Fragment;
use Stillat\BladeParser\Nodes\Fragments\HtmlFragment;
use Stillat\BladeParser\Nodes\NodeIndexer;
use Stillat\BladeParser\Nodes\Position;
use St... | php | MIT | d6df786667543d31a0fd45d90c8b78042625c4b4 | 2026-01-05T04:28:43.219923Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.