skill-php-puro

Create zero-framework PHP MVC apps with PSR-4 routing and repositories.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building robust PHP apps often forces developers to adopt a framework or heavy boilerplate. This Skill provides a zero-framework, PSR-4 compliant architecture that enables clean separation of concerns and maintainable code without relying on Composer.

Core Features & Use Cases

  • Zero mandatory dependencies and a single entry point for requests.
  • PSR-4 compliant autoloading (manual where desired), a lightweight router, a basic DI container, a template engine, middleware pipeline, and a repository pattern with PDO.
  • Use Case: quickly assemble small to mid-size PHP apps that require MVC, routing, templating, and secure error handling without a framework.

Quick Start

Initialize a new project following the structure described in this Skill and start coding a pure PHP MVC app.

Frequently Asked Questions about skill-php-puro

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

FAQPage Schema
How do I build a PHP application with MVC routing without using a framework?

You can build a zero-framework PHP application with MVC routing by using a single entry point, manual PSR-4 autoloading, a lightweight router, and clean separation of concerns to assemble maintainable code without relying on Composer.

What is the best way to structure a small PHP project without Composer dependencies?

The best way to structure a small PHP project without Composer is adopting a PSR-4 compliant architecture that implements a basic DI container, repository pattern with PDO, and a template engine to ensure robust error handling.

Can I implement a middleware pipeline and manual dependency injection in pure PHP?

Yes, you can implement a middleware pipeline and manual dependency injection in pure PHP by setting up a basic DI container and a lightweight router that processes requests through a single entry point.

Does a zero-framework PHP architecture support PSR-4 autoloading and the repository pattern?

A zero-framework PHP architecture supports PSR-4 autoloading and the repository pattern by manually configuring class mapping and utilizing PDO for database interactions within a clean MVC structure.

When should I avoid using a PHP framework and build a pure PHP architecture instead?

You should avoid using a PHP framework and build a pure PHP architecture instead when working on small to mid-size projects that need MVC routing, templating, and repositories without the overhead of heavy boilerplate or Composer dependencies.

Why does my pure PHP application need a single entry point for handling requests?

Your pure PHP application needs a single entry point for handling requests to centralize routing, process the middleware pipeline uniformly, and maintain clean separation of concerns across the MVC architecture.