- 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
12 lines
391 B
PHP
12 lines
391 B
PHP
<?php
|
|
/**
|
|
* Renders one tool card.
|
|
* Expected vars: $tool (registry row)
|
|
*/
|
|
?>
|
|
<a class="card" href="/<?= esc($tool['slug']) ?>">
|
|
<span class="icon-wrap"><?= icon($tool['icon'] ?? 'file') ?></span>
|
|
<h3><?= esc($tool['name']) ?></h3>
|
|
<p><?= esc(mb_substr((string) $tool['short_description'], 0, 110) . (mb_strlen((string) $tool['short_description']) > 110 ? '…' : '')) ?></p>
|
|
</a>
|