- 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
17 lines
451 B
PHP
17 lines
451 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Libraries\Pipeline;
|
|
|
|
/**
|
|
* A processing driver turns a job row into an output file.
|
|
* handle() receives the raw job, the registry tool and an update()
|
|
* callback for progress reporting (0-99 + stage label), and must
|
|
* return ['file' => basename, 'name' => download name, 'ext' => 'mp3'].
|
|
*/
|
|
interface DriverInterface
|
|
{
|
|
public function handle(array $job, array $tool, callable $update): array;
|
|
}
|