Download the PHP package provydon/docs-generate without Composer

On this page you can find all versions of the php package provydon/docs-generate. 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 docs-generate

# ๐Ÿš€ Docs Generate **Automatic API documentation for your Laravel app โ€” no annotations or doc blocks needed, OpenAPI 3.0 JSON & Swagger UI.** [![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/) [![Laravel](https://img.shields.io/badge/Laravel-9--13-red.svg)](https://laravel.com) [![PHP](https://img.shields.io/badge/PHP-8.1%2B-blue.svg)](https://php.net) *Generate beautiful API documentation automatically from your existing Laravel code* โ˜• Buy me a coffee


โœจ Why Docs Generate?

Stop writing documentation manually! This package automatically generates beautiful Swagger/OpenAPI documentation from your existing Laravel codeโ€”no annotations, no code pollution, no maintenance headaches.

๐ŸŽฏ Perfect For:


๐Ÿš€ Quick Start

Get documented instantly:

That's it! ๐ŸŽ‰ Your API is now fully documented.

๐Ÿ”— Use with Any API Client

The generated JSON is compatible with all major API clients:

Import into your favorite tools:

Code changes โ†’ run command โ†’ docs automatically reflect changes

๐Ÿ”„ Documentation Stays in Sync

The best part? Your documentation automatically stays up-to-date with your code:

  1. Make code changes โ†’ Add new routes, update controllers, modify validation
  2. Run php artisan docs:generate โ†’ Regenerates the documentation
  3. Deploy your code โ†’ Documentation file goes with your code
  4. Documentation is always current โ†’ No manual updates needed!

The docs.json file lives in your public/ folder, so it's part of your project and gets deployed with every code update. Your API documentation will always reflect your latest code changes.

๐Ÿงฑ Always Auto Update Your Documentation

Add php artisan docs:generate to your deployment script or build pipeline so every release ships with freshly generated docs:

You can even surface the progress logs in your CI/CD output:


โœจ What You Get

| Before | After | |--------|-------| | โŒ No documentation
โŒ Manual maintenance
โŒ Outdated docs | โœ… Beautiful Swagger UI
โœ… Auto-generated from code
โœ… Always up-to-date |

๐ŸŽจ Beautiful Swagger UI

๐Ÿ”„ Zero Maintenance

๐Ÿ›ก๏ธ Production Ready


๐ŸŽฏ Key Features

| Feature | Description | |---------|-------------| | ๐Ÿšซ **Zero Annotations** | No code pollutionโ€”works with existing code | | ๐Ÿ” **Smart Detection** | Auto-detects routes, validation, and auth | | ๐Ÿ“ **Inline Validation** | Supports `$request->validate()` calls | | ๐ŸŽจ **Beautiful UI** | Modern Swagger UI with "Try it out" | | ๐Ÿ”’ **Auth Ready** | Built-in authentication support | | โš™๏ธ **Fully Configurable** | Customize everything via config | | ๐Ÿš€ **Laravel Native** | Uses Laravel conventions and patterns |

๐Ÿ“‹ Requirements


๐Ÿ› ๏ธ Installation

Step 1: Install via Composer

Step 2: Publish Configuration

This creates:

Step 3: Generate Documentation

Step 4: View Your Documentation

Navigate to: http://your-app-url/docs


๐ŸŽจ Authentication

Documentation Access Control

Control who can access your API documentation:

API Authentication Detection

The package automatically detects authentication requirements by checking for these middleware:


โš™๏ธ Configuration

Route Configuration

Customize your documentation routes:

API Information

Edit config/docs-generate.php:


๐Ÿ“ Output File

The generated API documentation is saved as public/docs.json in your Laravel project. This approach offers several benefits:

Direct Access:

Via Route (with error handling):


๐Ÿ”ง How It Works

1. Route Analysis

Scans all Laravel routes with the api/ prefix and extracts:

2. Validation Extraction

For each route, it inspects the controller method:

3. Smart Type Detection

Based on field names and validation rules, it automatically detects:

4. Authentication Detection

Automatically adds security requirements if route has:


๐Ÿ“š Examples

Example 1: FormRequest Validation

Laravel Code:

Generated Swagger:

Example 2: Inline Validation

Laravel Code:

Generated Swagger:


๐Ÿš€ Commands

Generate Documentation

Generates fresh API documentation from your current routes and controllers.


๐Ÿ› ๏ธ Troubleshooting

Documentation not showing?

Make sure you've run:

Routes not appearing?

Check that routes have the api/ prefix:

404 on /docs?

Clear route cache:


๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


โ˜• Support

If this package helped you, consider buying me a coffee to support development!


**Made with โค๏ธ by [Provydon](https://github.com/provydon)** [โญ Star on GitHub](https://github.com/provydon/docs-generate) โ€ข [๐Ÿ› Report Bug](https://github.com/provydon/docs-generate/issues) โ€ข [๐Ÿ’ก Request Feature](https://github.com/provydon/docs-generate/issues)

All versions of docs-generate with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/console Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
illuminate/validation Version ^9.0|^10.0|^11.0|^12.0|^13.0
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 provydon/docs-generate contains the following files

Loading the files please wait ...