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
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/Renderer.php
src/Stitcher/Renderer/Renderer.php
<?php namespace Stitcher\Renderer; interface Renderer { public function renderTemplate(string $template, array $variables): string; public function customExtension(Extension $function): void; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/Extension/Page.php
src/Stitcher/Renderer/Extension/Page.php
<?php namespace Stitcher\Renderer\Extension; use Stitcher\Page\Page as SitePage; use Stitcher\Page\PageParser; use Stitcher\Renderer\Extension; class Page implements Extension { private $pageParser; public function __construct(PageParser $pageParser) { $this->pageParser = $pageParser; } ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/Extension/Css.php
src/Stitcher/Renderer/Extension/Css.php
<?php namespace Stitcher\Renderer\Extension; use Leafo\ScssPhp\Compiler as Sass; use Pageon\Html\Source; use Stitcher\File; use Stitcher\Renderer\Extension; use Symfony\Component\Filesystem\Filesystem; class Css implements Extension { /** @var string */ protected $publicDirectory; /** @var \Leafo\ScssPh...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Renderer/Extension/Js.php
src/Stitcher/Renderer/Extension/Js.php
<?php namespace Stitcher\Renderer\Extension; use JSMin\JSMin; use Pageon\Html\Source; use Stitcher\Exception\InvalidConfiguration; use Stitcher\File; use Stitcher\Renderer\Extension; use Symfony\Component\Filesystem\Filesystem; class Js implements Extension { /** @var string */ protected $publicDirectory; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Page.php
src/Stitcher/Page/Page.php
<?php namespace Stitcher\Page; use Pageon\Html\Meta\Meta; class Page { private $id; private $template; private $variables; private $meta; public function __construct( string $id, string $template, array $variables = [] ) { $this->id = $id; $this->templ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/PageRenderer.php
src/Stitcher/Page/PageRenderer.php
<?php namespace Stitcher\Page; use Stitcher\Renderer\Renderer; class PageRenderer { private $renderer; public function __construct(Renderer $renderer) { $this->renderer = $renderer; } public static function make(Renderer $renderer): PageRenderer { return new self($renderer);...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Adapter.php
src/Stitcher/Page/Adapter.php
<?php namespace Stitcher\Page; interface Adapter { public function transform(array $pageConfiguration): array; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/PageParser.php
src/Stitcher/Page/PageParser.php
<?php namespace Stitcher\Page; use Illuminate\Support\Collection; use Stitcher\Exception\InvalidConfiguration; use Stitcher\Page\Adapter\AdapterFactory; class PageParser { /** @var PageFactory */ private $pageFactory; /** @var AdapterFactory */ private $adapterFactory; /** @var Page */ priv...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/PageFactory.php
src/Stitcher/Page/PageFactory.php
<?php namespace Stitcher\Page; use Stitcher\Exception\InvalidConfiguration; use Stitcher\Variable\VariableParser; class PageFactory { private $variableParser; public function __construct(VariableParser $variableParser) { $this->variableParser = $variableParser; } public static function ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/PageCollection.php
src/Stitcher/Page/PageCollection.php
<?php namespace Stitcher\Page; use Illuminate\Support\Collection; class PageCollection extends Collection { }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Adapter/AdapterFactory.php
src/Stitcher/Page/Adapter/AdapterFactory.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\Page\Adapter; use Stitcher\DynamicFactory; use Stitcher\Variable\VariableParser; class AdapterFactory extends DynamicFactory { /** @var \Stitcher\Variable\VariableParser */ protected $variableParser; public function __construct(VariableParser $variable...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Adapter/CollectionAdapter.php
src/Stitcher/Page/Adapter/CollectionAdapter.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\Exception\InvalidCollectionAdapter; use Stitcher\File; use Stitcher\Page\Adapter; use Stitcher\Configureable; use Stitcher\Variable\VariableParser; use Symfony\Component\Yaml\Yaml; class CollectionAdapter implements Adapter, Configureable { /** @var null */ ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Adapter/FilterAdapter.php
src/Stitcher/Page/Adapter/FilterAdapter.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\Page\Adapter; use Stitcher\Exception\InvalidConfiguration; use Stitcher\Configureable; use Stitcher\Variable\VariableParser; class FilterAdapter implements Adapter, Configureable { /** @var array */ private $filters; /** @var \Stitcher\Variable\Variabl...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Adapter/OrderAdapter.php
src/Stitcher/Page/Adapter/OrderAdapter.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\Exception\InvalidOrderAdapter; use Stitcher\File; use Stitcher\Page\Adapter; use Stitcher\Configureable; use Stitcher\Variable\VariableParser; use Symfony\Component\Yaml\Yaml; class OrderAdapter implements Adapter, Configureable { private const REVERSE = [ ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Page/Adapter/PaginationAdapter.php
src/Stitcher/Page/Adapter/PaginationAdapter.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\Exception\InvalidPaginationAdapter; use Stitcher\Page\Adapter; use Stitcher\Configureable; use Stitcher\Variable\VariableParser; class PaginationAdapter implements Adapter, Configureable { /** @var \Stitcher\Variable\VariableParser */ private $variableParse...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/Http.php
src/Stitcher/Exception/Http.php
<?php namespace Stitcher\Exception; use Pageon\Config; use Stitcher\File; class Http extends StitcherException { protected $statusCode; public function __construct(string $title, string $body, int $statusCode = 500) { parent::__construct($title, $body); $this->statusCode = $statusCode; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/InvalidPlugin.php
src/Stitcher/Exception/InvalidPlugin.php
<?php namespace Stitcher\Exception; use Exception; class InvalidPlugin extends Exception { public static function doesntImplementPluginInterface(string $class): InvalidPlugin { return new self("Plugin `{$class}` doesn't implement `Stitcher\Plugin`"); } public static function configurationFil...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/InvalidPaginationAdapter.php
src/Stitcher/Exception/InvalidPaginationAdapter.php
<?php namespace Stitcher\Exception; class InvalidPaginationAdapter extends StitcherException { public static function create(): InvalidPaginationAdapter { return new self( 'The `pagination` adapter requires following configuration: `variable`, `parameter` and `perPage`', <<<MD ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/InvalidFilterAdapter.php
src/Stitcher/Exception/InvalidFilterAdapter.php
<?php namespace Stitcher\Exception; class InvalidFilterAdapter extends StitcherException { public static function create(): InvalidFilterAdapter { return new self( 'The `filter` adapter requires following configuration: `field`: `filter`' ); } }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/ErrorHandler.php
src/Stitcher/Exception/ErrorHandler.php
<?php namespace Stitcher\Exception; use Pageon\Lib\Markdown\MarkdownParser; use Stitcher\Renderer\RendererFactory; class ErrorHandler { /** @var \Stitcher\Renderer\Renderer */ private $renderer; /** @var \Pageon\Lib\Markdown\MarkdownParser */ private $markdownParser; /** @var array */ priva...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/InvalidConfiguration.php
src/Stitcher/Exception/InvalidConfiguration.php
<?php namespace Stitcher\Exception; use Pageon\Config; use Stitcher\File; use Symfony\Component\Yaml\Yaml; class InvalidConfiguration extends StitcherException { public static function siteConfigurationFileNotFound(): InvalidConfiguration { return new self( 'No site configuration file was...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/FileNotFound.php
src/Stitcher/Exception/FileNotFound.php
<?php namespace Stitcher\Exception; class FileNotFound extends StitcherException { public static function withPath(string $path, string $source = null): self { return new self("File not found in path `{$path}`", $source); } public static function staticFile(string $path): self { r...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/StitcherException.php
src/Stitcher/Exception/StitcherException.php
<?php namespace Stitcher\Exception; use Exception; class StitcherException extends Exception { protected $title; protected $body; public function __construct(string $title, ?string $body = null) { parent::__construct($title); $this->title = $title; $this->body = $body; }...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/InvalidOrderAdapter.php
src/Stitcher/Exception/InvalidOrderAdapter.php
<?php namespace Stitcher\Exception; class InvalidOrderAdapter extends StitcherException { public static function create(): InvalidOrderAdapter { return new self( 'The `order` adapter requires following configuration: `variable`, `field` and `direction` optionally.', <<<MD Take ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Exception/InvalidCollectionAdapter.php
src/Stitcher/Exception/InvalidCollectionAdapter.php
<?php namespace Stitcher\Exception; class InvalidCollectionAdapter extends StitcherException { public static function create(): InvalidCollectionAdapter { return new self( 'The `collection` adapter requires following configuration: `variable` and `parameter`', <<<MD Take a look...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Task/PartialParse.php
src/Stitcher/Task/PartialParse.php
<?php namespace Stitcher\Task; use Stitcher\Exception\InvalidConfiguration; use Stitcher\File; use Stitcher\Page\Adapter\CollectionAdapter; use Symfony\Component\Routing\Matcher\UrlMatcher; use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Task/CopyStaticFiles.php
src/Stitcher/Task/CopyStaticFiles.php
<?php namespace Stitcher\Task; use Stitcher\Exception\FileNotFound; use Stitcher\File; use Stitcher\Task; use Symfony\Component\Filesystem\Exception\FileNotFoundException; use Symfony\Component\Filesystem\Filesystem; class CopyStaticFiles implements Task { /** @var \Symfony\Component\Filesystem\Filesystem */ ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Task/AbstractParse.php
src/Stitcher/Task/AbstractParse.php
<?php namespace Stitcher\Task; use Pageon\Html\SiteMap; use Stitcher\Page\Page; use Stitcher\Page\PageCollection; use Stitcher\Page\PageParser; use Stitcher\Page\PageRenderer; use Stitcher\Task; use Symfony\Component\Filesystem\Filesystem; abstract class AbstractParse implements Task { /** @var string */ pro...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Task/RenderSiteMap.php
src/Stitcher/Task/RenderSiteMap.php
<?php namespace Stitcher\Task; use Pageon\Html\SiteMap; use Stitcher\Task; class RenderSiteMap implements Task { /** @var string */ private $publicDirectory; /** @var \Pageon\Html\SiteMap */ private $siteMap; public function __construct(string $publicDirectory, SiteMap $siteMap) { $...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Task/Parse.php
src/Stitcher/Task/Parse.php
<?php namespace Stitcher\Task; use Stitcher\File; use Symfony\Component\Yaml\Yaml; class Parse extends AbstractParse { public function execute(): void { $parsedConfiguration = Yaml::parse(File::read($this->configurationFile)); $pages = $this->parsePageConfiguration($parsedConfiguration); ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/VariableFactory.php
src/Stitcher/Variable/VariableFactory.php
<?php namespace Stitcher\Variable; use Pageon\Html\Image\ImageFactory; use Pageon\Lib\Markdown\MarkdownParser; use Stitcher\DynamicFactory; use Symfony\Component\Yaml\Yaml; use TypeError; class VariableFactory extends DynamicFactory { /** @var \Symfony\Component\Yaml\Yaml */ private $yamlParser; /** @va...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/VariableParser.php
src/Stitcher/Variable/VariableParser.php
<?php namespace Stitcher\Variable; class VariableParser { private $factory; public function __construct(VariableFactory $factory) { $this->factory = $factory; $this->factory->setVariableParser($this); } public static function make(VariableFactory $factory): VariableParser { ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/JsonVariable.php
src/Stitcher/Variable/JsonVariable.php
<?php namespace Stitcher\Variable; use Stitcher\File; class JsonVariable extends AbstractVariable { public static function make(string $value): JsonVariable { return new self($value); } public function parse(): AbstractVariable { $this->parsed = json_decode(File::read($this->unpa...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/YamlVariable.php
src/Stitcher/Variable/YamlVariable.php
<?php namespace Stitcher\Variable; use Stitcher\File; use Symfony\Component\Yaml\Yaml; class YamlVariable extends AbstractVariable { private $parser; /** @var \Stitcher\Variable\VariableParser */ private $variableParser; public function __construct( string $unparsed, Yaml $parser, ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/HtmlVariable.php
src/Stitcher/Variable/HtmlVariable.php
<?php namespace Stitcher\Variable; use Stitcher\File; class HtmlVariable extends AbstractVariable { public function parse(): AbstractVariable { $this->parsed = File::read($this->unparsed); if ($this->parsed === null) { $this->parsed = $this->unparsed; } return $t...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/AbstractVariable.php
src/Stitcher/Variable/AbstractVariable.php
<?php namespace Stitcher\Variable; abstract class AbstractVariable { protected $unparsed; protected $parsed; abstract public function parse(): AbstractVariable; public function __construct($unparsed) { $this->unparsed = $unparsed; } /** * @return mixed */ public fu...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/MarkdownVariable.php
src/Stitcher/Variable/MarkdownVariable.php
<?php namespace Stitcher\Variable; use Pageon\Lib\Markdown\MarkdownParser; use Stitcher\Exception\InvalidConfiguration; use Stitcher\File; class MarkdownVariable extends AbstractVariable { private $parser; public function __construct(string $unparsed, MarkdownParser $parser) { parent::__construc...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/DirectoryVariable.php
src/Stitcher/Variable/DirectoryVariable.php
<?php namespace Stitcher\Variable; use Stitcher\File; class DirectoryVariable extends AbstractVariable { /** @var \Stitcher\Variable\VariableParser */ private $parser; public function __construct(string $path, VariableParser $parser) { parent::__construct($path); $this->parser = $pa...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/DefaultVariable.php
src/Stitcher/Variable/DefaultVariable.php
<?php namespace Stitcher\Variable; class DefaultVariable extends AbstractVariable { public static function make($value): DefaultVariable { return new self($value); } public function parse(): AbstractVariable { $this->parsed = $this->unparsed; return $this; } }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Stitcher/Variable/ImageVariable.php
src/Stitcher/Variable/ImageVariable.php
<?php namespace Stitcher\Variable; use Pageon\Html\Image\ImageFactory; class ImageVariable extends AbstractVariable { private $imageFactory; public function __construct($attributes, ImageFactory $imageFactory) { parent::__construct($attributes); $this->imageFactory = $imageFactory; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/helpers.php
src/Pageon/helpers.php
<?php use Pageon\Config; if (!function_exists('env')) { function env(string $key) { return getenv($key); } } if (!function_exists('config')) { function config(string $key) { return Config::get($key); } }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Config.php
src/Pageon/Config.php
<?php namespace Pageon; use Dotenv\Dotenv; use Dotenv\Exception\InvalidPathException; use Illuminate\Support\Arr; use Iterator; use Stitcher\Exception\InvalidConfiguration; use Stitcher\File; use Symfony\Component\Finder\Finder; class Config { protected static $env; protected static $loadedConfiguration = []...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Http/HeaderContainer.php
src/Pageon/Http/HeaderContainer.php
<?php namespace Pageon\Http; use Iterator; class HeaderContainer implements Iterator { private $position; private $headers = []; public function add(Header $header): HeaderContainer { $this->position = 0; $this->headers[] = $header; return $this; } public function ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Http/Header.php
src/Pageon/Http/Header.php
<?php namespace Pageon\Http; class Header { private $name; private $content; public function __construct(string $name, ?string $content = null) { $this->name = $name; $this->content = $content; } public static function make(string $name, ?string $content = null): Header ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Lib/Markdown/ExternalLinkRenderer.php
src/Pageon/Lib/Markdown/ExternalLinkRenderer.php
<?php namespace Pageon\Lib\Markdown; use InvalidArgumentException; use League\CommonMark\Extension\CommonMark\Node\Inline\Link; use League\CommonMark\Node\Node; use League\CommonMark\Renderer\ChildNodeRendererInterface; use League\CommonMark\Renderer\NodeRendererInterface; use League\CommonMark\Util\HtmlElement; cla...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Lib/Markdown/MarkdownParser.php
src/Pageon/Lib/Markdown/MarkdownParser.php
<?php namespace Pageon\Lib\Markdown; use Closure; use League\CommonMark\CommonMarkConverter; use League\CommonMark\Environment\Environment; use League\CommonMark\Extension\CommonMark\Node\Inline\Link; use League\CommonMark\MarkdownConverter; use Pageon\Html\Image\Image; use Pageon\Html\Image\ImageFactory; /** * - ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Lib/Markdown/ImageRenderer.php
src/Pageon/Lib/Markdown/ImageRenderer.php
<?php namespace Pageon\Lib\Markdown; use InvalidArgumentException; use League\CommonMark\Extension\CommonMark\Node\Inline\Image; use League\CommonMark\Node\Inline\Text; use League\CommonMark\Node\Node; use League\CommonMark\Renderer\ChildNodeRendererInterface; use League\CommonMark\Renderer\NodeRendererInterface; use...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Source.php
src/Pageon/Html/Source.php
<?php namespace Pageon\Html; class Source { private $url; private $content; public function __construct(string $url, string $content) { $this->url = $url; $this->content = $content; } public function url(): string { return $this->url; } public function co...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/SiteMap.php
src/Pageon/Html/SiteMap.php
<?php namespace Pageon\Html; class SiteMap { private $urls = []; private $hostname; public function __construct(string $hostname) { $this->hostname = trim($hostname, '/'); } public static function make(string $hostname): SiteMap { return new self($hostname); } pu...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Meta.php
src/Pageon/Html/Meta/Meta.php
<?php namespace Pageon\Html\Meta; use Pageon\Html\Meta\Item\CharsetMeta; use Pageon\Html\Meta\Item\HttpEquivMeta; use Pageon\Html\Meta\Item\ItemPropMeta; use Pageon\Html\Meta\Item\LinkMeta; use Pageon\Html\Meta\Item\NameMeta; use Pageon\Html\Meta\Item\PropertyMeta; use Pageon\Html\Meta\Social\GooglePlusMeta; use Page...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/MetaItem.php
src/Pageon/Html/Meta/MetaItem.php
<?php namespace Pageon\Html\Meta; interface MetaItem { /** * @return string */ public function render(array $extra = []) : string; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/SocialMeta.php
src/Pageon/Html/Meta/SocialMeta.php
<?php namespace Pageon\Html\Meta; interface SocialMeta { public function __construct(Meta $meta, string $type = 'article'); public function title(string $title) : SocialMeta; public function description(string $description) : SocialMeta; public function image(string $image) : SocialMeta; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Social/GooglePlusMeta.php
src/Pageon/Html/Meta/Social/GooglePlusMeta.php
<?php namespace Pageon\Html\Meta\Social; use Pageon\Html\Meta\Meta; use Pageon\Html\Meta\SocialMeta; final class GooglePlusMeta implements SocialMeta { private $meta; public function __construct(Meta $meta, string $type = 'article') { $this->meta = $meta; } public function title(string $tit...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Social/OpenGraphMeta.php
src/Pageon/Html/Meta/Social/OpenGraphMeta.php
<?php namespace Pageon\Html\Meta\Social; use Pageon\Html\Meta\Meta; use Pageon\Html\Meta\SocialMeta; final class OpenGraphMeta implements SocialMeta { private $meta; public function __construct(Meta $meta, string $type = 'article') { $this->meta = $meta; $this->meta->property('og:type', $ty...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Social/TwitterMeta.php
src/Pageon/Html/Meta/Social/TwitterMeta.php
<?php namespace Pageon\Html\Meta\Social; use Pageon\Html\Meta\Meta; use Pageon\Html\Meta\SocialMeta; final class TwitterMeta implements SocialMeta { private $meta; public function __construct(Meta $meta, string $type = 'article') { $this->meta = $meta; $this->meta->name('twitter:card', $typ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Item/PropertyMeta.php
src/Pageon/Html/Meta/Item/PropertyMeta.php
<?php namespace Pageon\Html\Meta\Item; use Pageon\Html\Meta\MetaItem; final class PropertyMeta implements MetaItem { /** * @var string */ private $name; /** * @var string */ private $content; /** * @param string $property * @param string $content * * @ret...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Item/ItemPropMeta.php
src/Pageon/Html/Meta/Item/ItemPropMeta.php
<?php namespace Pageon\Html\Meta\Item; use Pageon\Html\Meta\MetaItem; final class ItemPropMeta implements MetaItem { /** * @var string */ private $name; /** * @var string */ private $content; /** * @param string $name * @param string $content * * @return ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Item/NameMeta.php
src/Pageon/Html/Meta/Item/NameMeta.php
<?php namespace Pageon\Html\Meta\Item; use Pageon\Html\Meta\MetaItem; final class NameMeta implements MetaItem { /** * @var string */ private $name; /** * @var string */ private $content; /** * @param string $name * @param string $content * * @return Meta...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Item/HttpEquivMeta.php
src/Pageon/Html/Meta/Item/HttpEquivMeta.php
<?php namespace Pageon\Html\Meta\Item; use Pageon\Html\Meta\MetaItem; final class HttpEquivMeta implements MetaItem { /** * @var string */ private $httpEquiv; /** * @var string */ private $content; /** * @param string $httpEquiv * @param string $content * ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Item/LinkMeta.php
src/Pageon/Html/Meta/Item/LinkMeta.php
<?php namespace Pageon\Html\Meta\Item; use Pageon\Html\Meta\MetaItem; final class LinkMeta implements MetaItem { /** * @var string */ private $rel; /** * @var string */ private $href; /** * @param string $rel * @param string $href * * @return MetaItem ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Meta/Item/CharsetMeta.php
src/Pageon/Html/Meta/Item/CharsetMeta.php
<?php namespace Pageon\Html\Meta\Item; use Pageon\Html\Meta\MetaItem; final class CharsetMeta implements MetaItem { /** * @var string */ private $charset; /** * @param string $charset * * @return MetaItem */ public static function create($charset) : MetaItem { r...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Image/ImageFactory.php
src/Pageon/Html/Image/ImageFactory.php
<?php namespace Pageon\Html\Image; use Intervention\Image\Exception\NotReadableException; use Intervention\Image\ImageManager; use Intervention\Image\Image as ScaleableImage; use Spatie\ImageOptimizer\OptimizerChain; use Stitcher\File; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Image/Image.php
src/Pageon/Html/Image/Image.php
<?php namespace Pageon\Html\Image; class Image { private $src; private $srcset = []; private $sizes; private $alt; public function __construct(string $src, ?string $sizes = null, ?string $alt = null) { $this->src = "/{$src}"; $this->sizes = $sizes; $this->alt = $alt; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Image/Scaler.php
src/Pageon/Html/Image/Scaler.php
<?php namespace Pageon\Html\Image; use Intervention\Image\Image as ScaleableImage; interface Scaler { public function getVariations(ScaleableImage $scaleableImage) : array; }
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Image/FilesizeScaler.php
src/Pageon/Html/Image/FilesizeScaler.php
<?php namespace Pageon\Html\Image; use Intervention\Image\Image as ScaleableImage; class FilesizeScaler implements Scaler { private $stepModifier; public function __construct(float $stopModifier = 0.2) { $this->stepModifier = $stopModifier; } public function getVariations(ScaleableImage...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/src/Pageon/Html/Image/FixedWidthScaler.php
src/Pageon/Html/Image/FixedWidthScaler.php
<?php namespace Pageon\Html\Image; use Intervention\Image\Image as ScaleableImage; class FixedWidthScaler implements Scaler { private $fixedWidths; public function __construct(array $fixedWidths) { $this->fixedWidths = $fixedWidths; } public static function make(array $fixedWidths): Fix...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/StitcherTestBootstrap.php
tests/StitcherTestBootstrap.php
<?php namespace Stitcher\Test; use Stitcher\File; use Symfony\Component\Process\Process; class StitcherTestBootstrap { /** @var Process */ protected static $productionServerProcess; /** @var Process */ protected static $developmentServerProcess; public static $productionHost = 'localhost:8181';...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/StitcherTest.php
tests/StitcherTest.php
<?php namespace Stitcher\Test; use GuzzleHttp\Client; use GuzzleHttp\Psr7\Response; use PHPUnit\Framework\TestCase; use Stitcher\File; use Symfony\Component\Filesystem\Filesystem; abstract class StitcherTest extends TestCase { protected function getTestDir() { return __DIR__; } protected fun...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/CreateStitcherObjects.php
tests/CreateStitcherObjects.php
<?php namespace Stitcher\Test; use Pageon\Html\Image\FixedWidthScaler; use Pageon\Html\Image\ImageFactory; use Pageon\Html\SiteMap; use Pageon\Lib\Markdown\MarkdownParser; use Stitcher\File; use Stitcher\Page\Adapter\AdapterFactory; use Stitcher\Page\PageFactory; use Stitcher\Page\PageParser; use Stitcher\Page\PageRe...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/CreateStitcherFiles.php
tests/CreateStitcherFiles.php
<?php namespace Stitcher\Test; use Stitcher\Task\Parse; use Stitcher\File; trait CreateStitcherFiles { protected function createIndexTemplate(): void { } protected function createAllTemplates(): void { } protected function createDataFile(): void { } protected function creat...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/bootstrap.php
tests/bootstrap.php
<?php use Stitcher\Test\StitcherTestBootstrap; require_once __DIR__ . '/../vendor/autoload.php'; new StitcherTestBootstrap();
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/SetUp.php
tests/SetUp.php
<?php namespace Stitcher\Test; use Stitcher\File; use Symfony\Component\Filesystem\Filesystem; final class SetUp { private const TEST_PROJECT = 'test_project'; public static function run(): void { $fs = new Filesystem(); $fs->mirror( __DIR__. '/' . self::TEST_PROJECT, ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/AppTest.php
tests/Stitcher/AppTest.php
<?php namespace Stitcher; use Pageon\Html\Image\FilesizeScaler; use Pageon\Html\Image\FixedWidthScaler; use Pageon\Html\Image\ImageFactory; use Stitcher\Application\DevelopmentServer; use Stitcher\Application\ProductionServer; use Stitcher\Task\Parse; use Stitcher\Task\PartialParse; use Stitcher\Page\Adapter\AdapterF...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Application/RouterTest.php
tests/Stitcher/Application/RouterTest.php
<?php namespace Stitcher\Application; use GuzzleHttp\Psr7\Request; use Stitcher\App; use Stitcher\Test\Controller\MyController; use Stitcher\Test\StitcherTest; class RouterTest extends StitcherTest { /** @test */ public function a_route_can_be_dispatched(): void { App::init(); $router = ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Application/DevelopmentServerTest.php
tests/Stitcher/Application/DevelopmentServerTest.php
<?php namespace Stitcher\Application; use Stitcher\Task\PartialParse; use Stitcher\File; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class DevelopmentServerTest extends StitcherTest { use CreateStitcherFiles; use CreateStitcherObjects; ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Application/ProductionServerTest.php
tests/Stitcher/Application/ProductionServerTest.php
<?php namespace Stitcher\Application; use Stitcher\File; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class ProductionServerTest extends StitcherTest { use CreateStitcherFiles; use CreateStitcherObjects; /** @test */ public function ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Template/RendererFactoryTest.php
tests/Stitcher/Template/RendererFactoryTest.php
<?php namespace Stitcher\Renderer; use Stitcher\File; use Stitcher\Test\StitcherTest; class RendererFactoryTest extends StitcherTest { /** @test */ public function it_creates_the_correct_template_renderer(): void { $factory = RendererFactory::make(File::path('templates'), 'twig'); $this-...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Template/TwigRendererTest.php
tests/Stitcher/Template/TwigRendererTest.php
<?php namespace Stitcher\Renderer; use Stitcher\File; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\StitcherTest; class TwigRendererTest extends StitcherTest { use CreateStitcherFiles; /** @test */ public function it_can_render_a_template(): void { $renderer = TwigRenderer::make(F...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/PaginatedMetaTest.php
tests/Stitcher/Integration/PaginatedMetaTest.php
<?php namespace Stitcher\Test\Integration; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; use Symfony\Component\Yaml\Yaml; class PaginatedMetaTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function paginated_meta_test(): void { $pageParse...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/DevelopmentServerTest.php
tests/Stitcher/Integration/DevelopmentServerTest.php
<?php namespace Stitcher\Test\Integration; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class DevelopmentServerTest extends StitcherTest { use CreateStitcherFiles; use CreateStitcherObjects; /** @test */ public function get_index(): ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/FullSiteParseTest.php
tests/Stitcher/Integration/FullSiteParseTest.php
<?php namespace Stitcher\Test\Integration; use Stitcher\App; use Stitcher\File; use Stitcher\Test\StitcherTest; class FullSiteParseTest extends StitcherTest { /** @test */ public function parse_test(): void { App::init(); $task = App::get('parse'); $task->execute(); $th...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/BasicMetaTest.php
tests/Stitcher/Integration/BasicMetaTest.php
<?php namespace Stitcher\Test\Integration; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; use Symfony\Component\Yaml\Yaml; class BasicMetaTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function basic_meta_test(): void { $pageParser = $thi...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/PluginTest.php
tests/Stitcher/Integration/PluginTest.php
<?php namespace Stitcher\Integration; use Pageon\Config; use Stitcher\App; use Stitcher\Test\Plugin\TestPlugin; use Stitcher\Test\Plugin\TestPluginService; use Stitcher\Test\StitcherTest; class PluginTest extends StitcherTest { /** @test */ public function a_plugin_can_be_registered(): void { App...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/ProductionServerTest.php
tests/Stitcher/Integration/ProductionServerTest.php
<?php namespace Stitcher\Test\Integration; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class ProductionServerTest extends StitcherTest { use CreateStitcherFiles; use CreateStitcherObjects; /** @test */ public function get_index(): v...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/StaticFilesTest.php
tests/Stitcher/Integration/StaticFilesTest.php
<?php namespace Stitcher\Integration; use Stitcher\App; use Stitcher\File; use Stitcher\Task\Parse; use Stitcher\Test\StitcherTest; use Symfony\Component\Filesystem\Filesystem; class StaticFilesTest extends StitcherTest { /** @test */ public function it_moves_static_files_and_directories_to_the_public_direct...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/CollectionMetaTest.php
tests/Stitcher/Integration/CollectionMetaTest.php
<?php namespace Stitcher\Test\Integration; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; use Symfony\Component\Yaml\Yaml; class CollectionMetaTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function collection_meta_test(): void { $pagePar...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Integration/ConfigTest.php
tests/Stitcher/Integration/ConfigTest.php
<?php namespace Stitcher\Test\Integration; use Pageon\Config; use Stitcher\Test\StitcherTest; class ConfigTest extends StitcherTest { protected function setUp() { parent::setUp(); Config::init(); } /** @test */ public function known_property_returns_value(): void { $...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Renderer/Extension/CssTest.php
tests/Stitcher/Renderer/Extension/CssTest.php
<?php namespace Stitcher\Renderer\Extension; use Leafo\ScssPhp\Compiler as Sass; use Stitcher\App; use Stitcher\File; use Stitcher\Test\StitcherTest; class CssTest extends StitcherTest { /** @test */ public function it_moves_a_css_file(): void { $css = $this->createExtension(); $css->par...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Renderer/Extension/JsTest.php
tests/Stitcher/Renderer/Extension/JsTest.php
<?php namespace Stitcher\Renderer\Extension; use Stitcher\File; use Stitcher\Test\StitcherTest; class JsTest extends StitcherTest { /** @test */ public function it_moves_a_js_file(): void { $js = $this->createExtension(); $js->parseSource('/resources/js/main.js'); $this->assertN...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/PageParserTest.php
tests/Stitcher/Page/PageParserTest.php
<?php namespace Stitcher\Page; use Stitcher\File; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class PageParserTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function it_can_parse_a_page_config(): void { $variableParser = $this->createV...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/PageRendererTest.php
tests/Stitcher/Page/PageRendererTest.php
<?php namespace Stitcher\Page; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\StitcherTest; class PageRendererTest extends StitcherTest { use CreateStitcherObjects; use CreateStitcherFiles; /** @test */ public function it_can_render_a_page_as_html()...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/PageFactoryTest.php
tests/Stitcher/Page/PageFactoryTest.php
<?php namespace Stitcher\Page; use Stitcher\Exception\InvalidConfiguration; use Stitcher\Test\StitcherTest; use Stitcher\Variable\VariableFactory; use Stitcher\Variable\VariableParser; class PageFactoryTest extends StitcherTest { /** @test */ public function it_can_create_a_page(): void { $factor...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/PageTest.php
tests/Stitcher/Page/PageTest.php
<?php namespace Stitcher\Page; use Stitcher\Test\StitcherTest; class PageTest extends StitcherTest { /** @test */ public function it_can_be_created(): void { $page = Page::make('/home', 'index.twig'); $this->assertInstanceOf(Page::class, $page); } /** @test */ public functio...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/Adapter/PaginationAdapterTest.php
tests/Stitcher/Page/Adapter/PaginationAdapterTest.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\File; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class PaginationAdapterTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function it_can_transform_a_collection_of_entries_into_multiple_pages(): vo...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/Adapter/AdapterFactoryTest.php
tests/Stitcher/Page/Adapter/AdapterFactoryTest.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class AdapterFactoryTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function it_creates_the_correct_adapter(): void { $factory = AdapterFactory::make($th...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/Adapter/OrderAdapterTest.php
tests/Stitcher/Page/Adapter/OrderAdapterTest.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\File; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class OrderAdapterTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function it_can_order_values(): void { File::write('entries.yaml', <...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/Adapter/FilterAdapterTest.php
tests/Stitcher/Page/Adapter/FilterAdapterTest.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\File; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class FilterAdapterTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function it_can_filter_values(): void { File::write('entries.yaml',...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Page/Adapter/CollectionAdapterTest.php
tests/Stitcher/Page/Adapter/CollectionAdapterTest.php
<?php namespace Stitcher\Page\Adapter; use Stitcher\File; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class CollectionAdapterTest extends StitcherTest { use CreateStitcherObjects; /** @test */ public function it_can_transform_a_single_collection_into_multiple(): void { ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Task/PartialParseTest.php
tests/Stitcher/Task/PartialParseTest.php
<?php namespace Stitcher\Task; use Stitcher\File; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\StitcherTest; class PartialParseTest extends StitcherTest { use CreateStitcherObjects; use CreateStitcherFiles; /** @var \Stitcher\Task\PartialParse */ ...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false
pageon/stitcher-core
https://github.com/pageon/stitcher-core/blob/6218413786438857a0bb54990da8976df36c9c75/tests/Stitcher/Task/ParseTest.php
tests/Stitcher/Task/ParseTest.php
<?php namespace Stitcher\Test\Stitcher\Command; use Stitcher\Task\Parse; use Stitcher\File; use Stitcher\Task\RenderSiteMap; use Stitcher\Test\CreateStitcherObjects; use Stitcher\Test\CreateStitcherFiles; use Stitcher\Test\StitcherTest; class ParseTest extends StitcherTest { use CreateStitcherObjects; use Cr...
php
MIT
6218413786438857a0bb54990da8976df36c9c75
2026-01-05T04:13:02.056510Z
false