docuccino / attributes
Dependency-free PHP attribute classes for Docuccino.
Requires
- php: ^8.3
README
This repository is a read-only subtree split of docuccino/docuccino. Open issues and pull requests on the monorepo — commits pushed here are overwritten.
Dependency-free PHP attribute classes for Docuccino.
These attributes annotate controllers, actions and closure routes so the
Docuccino pipeline can patch or add documentation. The package has no
dependencies beyond PHP itself, so it is safe to require from library code that
wants to expose Docuccino annotations without pulling in the full toolchain.
docuccino/core requires it at runtime (core reflects these attributes off your
classes and enums), so it is versioned in lockstep with the rest of Docuccino.
Install
composer require docuccino/attributes
Usage
use Docuccino\Attributes\QueryParameter; final class FormController { #[QueryParameter(name: 'status', type: 'string', description: 'Filter by status')] public function index() { /* … */ } }
Documentation
Every attribute — with signatures and examples — is documented in the attributes reference at https://docs.docuccino.app.
License
MIT. See LICENSE.