/acc:no-framework-knowledgefrom acc
Guides building production-grade PHP applications without a full framework, covering PSR standards, DDD patterns, security (JWT, RBAC), event systems, queues, and infrastructure components.
Ships in acc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Quick reference for building framework-free PHP applications using PSR standards, standalone Composer packages, and Clean Architecture. Covers everything needed to run a production-grade project without Symfony, Laravel, or any full-stack framework.
| PSR | Purpose | Recommended Package |
|---|---|---|
| PSR-4 | Autoloading | Composer autoloader |
| PSR-7 | HTTP Messages | nyholm/psr7 or guzzlehttp/psr7 |
| PSR-11 | Container Interface | php-di/php-di or league/container |
| PSR-15 | HTTP Handlers & Middleware | relay/relay or custom pipeline |
| PSR-17 | HTTP Factories | nyholm/psr7 (includes factories) |
| PSR-3 | Logging | monolog/monolog |
| PSR-6/PSR-16 | Caching | symfony/cache (standalone) |
public/index.php (Front Controller) → Middleware Pipeline (PSR-15)
→ Presentation (Actions) → Application (Use Cases) → Domain (Entities/VOs)
→ Infrastructure (Repos/Adapters) ← Composer + PSR-4 Autoloading
declare(strict_types=1) in every fileuse statements (no Doctrine, no framework)public/index.php.env + vlucas/phpdotenvuse Illuminate\\ or use Symfony\\ in Domain or Application layers| Violation | Where to Look | Severity |
|---|---|---|
Missing declare(strict_types=1) | Any PHP file | Critical |
require / include instead of autoloading | Entry points, legacy files | Critical |
Global state ($_GET, $_POST, $_SESSION) | Presentation layer | Critical |
| Framework dependency in Domain | src/Domain/**/*.php | Critical |
| Custom ORM instead of using Doctrine/Cycle | src/Infrastructure/**/*.php | Warning |
No PSR-7 — raw echo / header() calls | public/index.php, controllers | Warning |
| Service Locator in Application layer | src/Application/**/*.php | Warning |
Missing DI container — manual new chains | Bootstrap files | Warning |
No middleware pipeline — logic in index.php | public/index.php | Info |
| JWT/session logic in Domain | src/Domain/**/*.php | Critical |
| Queue library in Domain | use Enqueue\\ or use PhpAmqpLib\\ in Domain | Critical |
| Cache/HTTP Client in Domain | CacheInterface or HttpClientInterface in Domain | Critical |
| Missing queue resilience | Workers without retry/error handling | Warning |
declare(strict_types=1);
namespace Infrastructure\Http\Middleware;
use Psr\Http\Message\{ResponseInterface, ServerRequestInterface};
use Psr\Http\Server\{MiddlewareInterface, RequestHandlerInterface};
final readonly class CorsMiddleware implements MiddlewareInterface
{
public function __construct(private string $allowedOrigin = '*') {}
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
return $handler->handle($request)
->withHeader('Access-Control-Allow-Origin', $this->allowedOrigin)
->withHeader('Access-Control-Allow-Methods', 'GET, POST, PUT, DELETE');
}
}
declare(strict_types=1);
namespace Application\Order\UseCase;
final readonly class PlaceOrderUseCase
{
public function __construct(
private OrderRepositoryInterface $orders,
private EventDispatcherInterface $events,
) {}
public function execute(PlaceOrderCommand $command): OrderId
{
$order = Order::create($command->customerId, $command->lines);
$this->orders->save($order);
foreach ($order->releaseEvents() as $event) {
$this->events->dispatch($event);
}
return $order->id();
}
}
declare(strict_types=1);
require dirname(__DIR__) . '/vendor/autoload.php';
Dotenv\Dotenv::createImmutable(dirname(__DIR__))->load();
$container = require dirname(__DIR__) . '/config/container.php';
$container->get(App::class)->run();
For detailed information, load these reference files:
references/architecture.md — Project structure, PSR-4 autoloading, bootstrap patternsreferences/ddd-integration.md — Pure Domain layer, Value Objects, Entities, Domain Eventsreferences/routing-http.md — PSR-7/PSR-15 HTTP, routing, middleware pipelinereferences/persistence.md — Doctrine/Cycle standalone, PDO repositories, migrationsreferences/dependency-injection.md — PHP-DI, League Container, PSR-11, compiled containersreferences/testing.md — PHPUnit standalone, mocking, HTTP testing, database testingreferences/antipatterns.md — Common no-framework mistakes with detection patternsreferences/security.md — JWT authentication (lcobucci/jwt), RBAC middleware, password hashing, CSRF, security headersreferences/event-system.md — PSR-14, league/event, custom dispatcher, domain events, async event processingreferences/queue.md — enqueue/enqueue, php-amqplib, workers, job dispatcher, supervisorreferences/infrastructure-components.md — Cache PSR-6/16, HTTP Client PSR-18, Mailer, Rate Limitingreferences/antipatterns.md (opens in a new tab)references/architecture.md (opens in a new tab)references/ddd-integration.md (opens in a new tab)references/dependency-injection.md (opens in a new tab)references/event-system.md (opens in a new tab)references/infrastructure-components.md (opens in a new tab)references/persistence.md (opens in a new tab)references/queue.md (opens in a new tab)references/routing-http.md (opens in a new tab)references/security.md (opens in a new tab)references/testing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
php-frameworkless, psr-standards, clean-architecture, ddd-php
npx claudepluginhub dykyi-roman/awesome-claude-code --plugin acc283 skills in this plugin
/access-control-knowledgeAccess Control knowledge base. Provides ACL, RBAC, ABAC, ReBAC models, multi-tenancy patterns, and PHP implementations (Symfony Voters, Laravel Gates) for security audits and generation./adr-knowledgeAction-Domain-Responder pattern knowledge base. Provides patterns, antipatterns, and PHP-specific guidelines for ADR (web-specific MVC alternative) audits./adr-templateGenerates Architecture Decision Records (ADR) for PHP projects. Creates structured decision documentation with context, decision, and consequences.Other plugins' skills for the same job