skill-php-files

Validate, sanitize, and store PHP file uploads outside the web root.

Updated Apr 11, 2026
One-click install
npx skills add https://github.com/claudioborja/biblioteca --skill skill-php-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-php-files
Source: https://github.com/claudioborja/biblioteca/tree/main/.agents/skills/skill-php-files
Command: npx skills add https://github.com/claudioborja/biblioteca --skill skill-php-files

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates secure file handling for library systems by validating uploads, sanitizing filenames, and storing files outside the web root; it also automates image processing, PDF generation, and controlled downloads to protect sensitive data.

Core Features & Use Cases

  • Secure uploads and validation: MIME type, size, and extension checks; EXIF stripping for privacy.
  • Image processing: resizing, thumbnailing, WebP conversion, and optional Imagick support.
  • PDF generation: receipts, membership cards, inventory reports using TCPDF or Dompdf.
  • Storage and access control: storing outside public directory; serve via controlled PHP controller with authentication and download handling.
  • Cleanup and lifecycle: deletion, temporary storage handling, and secure deletion.

Quick Start

Place a file in your configured upload area and trigger the service to validate, store, and generate accessible downloads.

Frequently Asked Questions about skill-php-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I securely handle file uploads in a PHP library system?

You can process uploaded images in PHP using GD for resizing, thumbnailing, and WebP conversion. The workflow also supports Imagick when available, and strips EXIF data from images for enhanced user privacy.

What's the best way to generate PDF receipts and reports in PHP?

Generating PDF receipts and inventory reports in PHP is handled through TCPDF or Dompdf integration, enabling automated creation of printable documents directly from validated library system data.

How do I serve controlled file downloads with authentication in PHP?

Controlled file downloads in PHP are served via an authenticated controller script, ensuring sensitive documents stored outside the public directory are only accessed by verified users during the download process.

Does this PHP file handling workflow support temporary storage and secure deletion?

The PHP storage workflow supports file lifecycle management including temporary storage handling and secure deletion, ensuring uploaded files are safely cleaned up when no longer needed by the library system.