Download the PHP package ahmedtarboush/papyrus-docs without Composer

On this page you can find all versions of the php package ahmedtarboush/papyrus-docs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package papyrus-docs

¶ PAPYRUS DOCS

A Postman-like API documentation & testing client — natively inside Laravel.

Packagist Version PHP 8.1+ Laravel React License


What is Papyrus?

Papyrus Docs is an enterprise-grade API documentation and playground that lives inside your Laravel application. It automatically reads your FormRequest validation rules — including nested arrays, Enum options, file uploads, and conditional rules — and renders them as an interactive, Postman-like testing UI with zero configuration.

No OpenAPI YAML. No manual annotations. Just write your FormRequests, and Papyrus does the rest.

Why Papyrus?

Feature Postman Swagger UI Papyrus
Zero-config from FormRequest
Recursive nested objects/arrays Partial
Two-Way Visual ↔ JSON sync
Dynamic Enum / Select detection Manual
Inline key editing & type morphing
File upload + FormData auto-handling
Lives inside your Laravel app

Features at a Glance


Installation

1. Require the package

2. Run the install command (recommended)

This publishes both the config file and production assets in one step.

3. Or publish manually

4. Access the dashboard

Navigate to:

That's it. No annotations required. Papyrus automatically scans your routes and FormRequests.


Quick Start

Step 1: Create a FormRequest

Step 2: Type-hint it in your controller

Step 3: Open Papyrus

Visit /papyrus-docs in your browser. The endpoint above will appear with:


Documentation

Doc Description
Configuration Every config key explained
Validation Engine How FormRequest rules become UI components
Custom Directives DocBlock overrides & @papyrus-bodyParam
Smart UI Guide Two-Way Sync, Postman Checkbox, Inline Editor

Artisan Commands

papyrus:install

One-step installation that publishes both config and assets:

Equivalent to running:

papyrus:export

Export your API schema directly to a JSON file (uses config('papyrus.export_path')):


Exporters

OpenAPI 3.0 Export

Papyrus includes an OpenApiGenerator that converts your scanned routes into an OpenAPI 3.0 specification:

Configure the export via config/papyrus.php under the open_api key.

Postman Collection Export

The PostmanGenerator exports your API as a Postman Collection v2.1:

Import the resulting JSON directly into Postman to share with your team.


Debug Mode

Enable debug mode to get execution metadata in the schema API response headers:

The /papyrus-docs/api/schema endpoint will include:

Header Description
X-Papyrus-Debug-Time-Ms Schema generation time in milliseconds
X-Papyrus-Debug-Memory-Mb Memory consumed during generation
X-Papyrus-Debug-PHP PHP version
X-Papyrus-Debug-Laravel Laravel version

Authorization

By default, Papyrus is only accessible in local and testing environments via the viewPapyrusDocs gate.

The default gate definition:

To customize access, override the gate in your AuthServiceProvider:


Internal Routes

Papyrus registers these routes under the configured URL prefix:

Route Purpose
GET /papyrus-docs The SPA UI (gated by viewPapyrusDocs)
GET /papyrus-docs/api/schema JSON schema endpoint (used by the UI)
GET /papyrus-docs/assets/{path} Static asset serving (JS, CSS, fonts)
GET /papyrus-docs/favicon/{file?} Favicon serving

All routes respect the middlewares config and are prefixed with the url config value.


Disabling in Production

Set the environment variable:

This prevents all Papyrus routes from being registered. The ServiceProvider short-circuits entirely.


Requirements


Created By

Ahmed TarboushLinkedIn


License

Papyrus Docs is open-source software licensed under the MIT License.


All versions of papyrus-docs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/routing Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
phpdocumentor/reflection-docblock Version ^5.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ahmedtarboush/papyrus-docs contains the following files

Loading the files please wait ...