Download the PHP package digitalcorehub/laravel-api-docx without Composer

On this page you can find all versions of the php package digitalcorehub/laravel-api-docx. 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 laravel-api-docx

Laravel API Docx

Latest Version on Packagist Total Downloads License PHP Version Laravel Version Tests

**Write code. Laravel API Docx writes the docs.** *AI-powered automatic API documentation generator for Laravel 12* [Features](#-features) • [Installation](#-installation) • [Usage](#-usage) • [Examples](#-examples) • [Configuration](#-configuration) • [Contributing](#-contributing)

🚀 Features

🤖 AI-Powered Intelligence

📝 Multiple Output Formats

🔍 Smart Route Analysis

Developer Experience

🎯 Laravel 12 Ready


📦 Installation

Via Composer

The package will automatically register itself with Laravel.

Publish Configuration

Environment Setup

Add your OpenAI API key to your .env file:


🎯 Usage

Quick Start

Generate documentation for all your API routes:

This creates:

Advanced Usage

Format Selection

AI-Enhanced Documentation

Watch Mode

Custom Output Paths


🔧 How It Works

Process Flow

  1. 🔍 Route Discovery: Scans all registered routes and filters API routes
  2. 📊 Controller Analysis: Extracts controller, method, and middleware information
  3. 📚 DocBlock Processing: Checks for existing documentation in controller methods
  4. 🤖 AI Enhancement: Generates descriptions, examples, and parameters using OpenAI
  5. 💾 Smart Caching: Stores AI results to avoid redundant API calls
  6. 📝 Documentation Generation: Creates comprehensive docs in multiple formats

📋 Examples

Markdown Output

json GET /api/users?page=1&per_page=20&search=john json { "data": [ { "id": 1, "name": "John Doe", "email": "[email protected]", "created_at": "2024-01-01T00:00:00Z" } ], "meta": { "current_page": 1, "per_page": 20, "total": 100 } } json { "id": 1, "name": "John Doe", "email": "[email protected]", "profile": { "avatar": "https://example.com/avatar.jpg", "bio": "Software Developer" }, "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z" }

OpenAPI 3.0 Output

Postman Collection


⚙️ Configuration

AI Settings

Output Paths

Caching

Advanced Options


🧪 Testing

Run Tests

Code Quality


🚀 Performance

Optimization Tips

  1. Enable Caching: Always enable caching in production
  2. Use Watch Mode: For development, use --watch to avoid manual regeneration
  3. Selective Generation: Use --format to generate only needed formats
  4. AI Optimization: Use gpt-4o-mini for faster AI responses

Benchmarks

Operation Time Memory
Route Collection ~50ms ~2MB
DocBlock Parsing ~100ms ~1MB
AI Generation (10 routes) ~2s ~5MB
Markdown Generation ~20ms ~1MB
OpenAPI Generation ~30ms ~2MB

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

Pull Request Process

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📊 Roadmap

Upcoming Features

Version History


🛡️ Security

Security Policy

We take security seriously. If you discover a security vulnerability, please:

  1. DO NOT create a public GitHub issue
  2. Email us at [email protected]
  3. Include detailed information about the vulnerability
  4. We'll respond within 24 hours

Security Features


📞 Support

Getting Help

Community


📄 License

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


🙏 Acknowledgments


**Made with ❤️ by [Digital Core Hub](https://digitalcorehub.com)** [Website](https://digitalcorehub.com) • [GitHub](https://github.com/digitalcorehub) • [Twitter](https://twitter.com/DigitalCoreHub) • [LinkedIn](https://linkedin.com/company/digital-core-hub) *If this project helps you, please give it a ⭐ on GitHub!*

All versions of laravel-api-docx with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0
illuminate/console Version ^12.0
illuminate/filesystem Version ^12.0
illuminate/routing Version ^12.0
guzzlehttp/guzzle Version ^7.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 digitalcorehub/laravel-api-docx contains the following files

Loading the files please wait ...