- 134-tool registry with programmatic SEO (unique titles/H1/descriptions, JSON-LD graphs, sitemap index, canonical 301 enforcement via required filter) - DB-backed job queue (SKIP LOCKED) with drivers: Ffmpeg, Images (GD), Pdf (qpdf/gs/poppler), Youtube (thumbnails), Qr (server-side PNG) - Security: SSRF guard, MIME validation, rate limits, API-key auth, bcrypt admin login, security headers - Admin panel: dashboard, tools/categories/guides CRUD, SEO audit, analytics, job inspector with retry, system health, feature flags - Docker deployment (nginx + web/api FPM pools + scalable workers), PHPUnit suite (19 tests / 1139 assertions), PWA manifest + service worker
34 lines
1.0 KiB
PHP
34 lines
1.0 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
namespace App\Controllers;
|
||
|
||
/**
|
||
* Homepage: hero search, popular tools, category grid, content sections.
|
||
* Fully server-rendered.
|
||
*/
|
||
final class Home extends BaseController
|
||
{
|
||
public function index(): string
|
||
{
|
||
$finder = service('finder');
|
||
|
||
$data = [
|
||
'popular' => $finder->featured(8),
|
||
'recently' => $finder->recent(6),
|
||
'mostUsed' => $finder->popular(8),
|
||
'categories' => $finder->categories(),
|
||
'toolCount' => $finder->countTools(),
|
||
'guides' => model(\App\Models\GuideModel::class)->published(4),
|
||
];
|
||
|
||
$this->seo->title(config('Site')->name . ' – Free Online Video, YouTube & Image Tools')
|
||
->description('Fast, simple and free tools for downloading, converting, compressing and editing media online. ' . $data['toolCount'] . ' tools, no signup required.')
|
||
->canonical('/')
|
||
->breadcrumbs([]);
|
||
|
||
return $this->render('home', $data);
|
||
}
|
||
}
|