Toolvana: production-ready media tools platform (CodeIgniter 4)

- 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
This commit is contained in:
deepseek
2026-08-23 07:10:30 +00:00
commit beaf0e1f37
217 changed files with 19619 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<nav class="chips" style="margin-bottom:1.4rem" aria-label="Admin navigation">
<a class="chip" href="/admin">Overview</a>
<a class="chip" href="/admin/tools">Tools</a>
<a class="chip" href="/admin/categories">Categories</a>
<a class="chip" href="/admin/guides">Guides</a>
<a class="chip" href="/admin/seo">SEO Audit</a>
<a class="chip" href="/admin/analytics">Analytics</a>
<a class="chip" href="/admin/jobs">Jobs</a>
<a class="chip" href="/admin/system">System</a>
<a class="chip" href="/admin/settings">Settings</a>
<span style="margin-left:auto"></span>
<a class="chip" href="/admin/logout">Log out</a>
</nav>
+18
View File
@@ -0,0 +1,18 @@
<?php
/**
* FAQ accordion — native <details>, zero JS.
* Expected vars: $faqs list of ['q'=>,'a'=>]
*/
if (empty($faqs)) {
return;
}
?>
<section class="block tight faq" aria-labelledby="faq-title">
<h2 class="section-title" id="faq-title">Frequently asked questions</h2>
<?php foreach ($faqs as $faq): ?>
<details>
<summary><?= esc($faq['q']) ?></summary>
<div class="answer"><p><?= esc($faq['a']) ?></p></div>
</details>
<?php endforeach ?>
</section>
+11
View File
@@ -0,0 +1,11 @@
<?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>
+11
View File
@@ -0,0 +1,11 @@
<?php /** Related tools grid. Vars: $tools, $title */ ?>
<?php if (! empty($tools)): ?>
<section class="block tight">
<h2 class="section-title"><?= esc($title ?? 'Related tools') ?><a class="see-all" href="/tools/a-z">All tools →</a></h2>
<div class="grid cols-4">
<?php foreach ($tools as $tool): ?>
<?= view('partials/tool_card', ['tool' => $tool]) ?>
<?php endforeach ?>
</div>
</section>
<?php endif ?>