Package
Knuckleswtf Scribe
Generate API documentation for humans from your Laravel codebase.✍
Overview
What Knuckleswtf Scribe does
Scribe generates human-friendly API documentation directly from Laravel codebases, making it easier to communicate how an API works to developers and stakeholders alike.
The package automates the creation of clear, comprehensive API documentation by pulling information straight from the codebase. It outputs a single-page HTML document complete with descriptive text, code samples, and even an in-browser API testing feature. This real-time 'Try It Out' option lets users interact with the API directly from the documentation page, enhancing both accessibility and understanding.
Scribe's capabilities extend beyond simple documentation generation. It can automatically extract request parameter details from FormRequests or validation rules, and it safely calls API endpoints to capture sample responses. Sample responses can also be generated from Eloquent API Resources or Transformers, ensuring that the documentation reflects the real API behavior.
The package also provides flexibility in customization, allowing developers to adjust UI elements, reorder sections, or add custom strategies for data extraction. Extra endpoints or information that aren't inherently present in the codebase can also be statically defined, making the documentation comprehensive and adaptable to a team's needs.
Alongside the main outputs, Scribe generates Postman collections and OpenAPI specifications, supporting both versions 3.0.3 and 3.1.0. This ensures that documentation aligns with industry standards, useful for both internal use and public API sharing. As a tool, Scribe suits development teams looking to streamline their documentation process, particularly those who value up-to-date and interactive documentation systems.
This overview was generated by AI from the package README and may not reflect the latest release.
Read the full README →