<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ultraviolettes / constellation-for-laravel example snippets
use Ultraviolettes\Constellation\Contracts\Collector;
use Ultraviolettes\Constellation\Snapshot\{Section, Status, Window};
final class SeoCollector implements Collector
{
public function key(): string
{
return 'seo';
}
public function collect(Window $window): Section
{
return Section::make($this->key(), Status::Ok, ['broken_links' => 0], now()->toImmutable());
}
}