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:
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Controllers;
|
||||
|
||||
/**
|
||||
* Legal / compliance pages.
|
||||
*/
|
||||
final class Pages extends BaseController
|
||||
{
|
||||
public function privacy(): string
|
||||
{
|
||||
return $this->page('privacy', 'Privacy Policy', 'What we store (very little), what we never store, and how temporary files are handled.');
|
||||
}
|
||||
|
||||
public function terms(): string
|
||||
{
|
||||
return $this->page('terms', 'Terms of Service', 'Acceptable use, content rights and platform rules for using Toolvana.');
|
||||
}
|
||||
|
||||
public function cookies(): string
|
||||
{
|
||||
return $this->page('cookies', 'Cookie Policy', 'The two cookies this site sets and what they do.');
|
||||
}
|
||||
|
||||
public function dmca(): string
|
||||
{
|
||||
return $this->page('dmca', 'DMCA & Copyright', 'How to submit a takedown or counter-notice, and our repeat-infringer policy.');
|
||||
}
|
||||
|
||||
public function contact(): string
|
||||
{
|
||||
return $this->page('contact', 'Contact', 'Reach the team: support, abuse reports, DMCA and API inquiries.');
|
||||
}
|
||||
|
||||
private function page(string $view, string $title, string $description): string
|
||||
{
|
||||
$this->seo->title($title . ' – ' . config('Site')->name)
|
||||
->description($description)
|
||||
->canonical('/' . $view)
|
||||
->breadcrumbs([['label' => $title]]);
|
||||
|
||||
return $this->render('static/' . $view);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user