Download the PHP package huy-tran/api-explorer-module without Composer

On this page you can find all versions of the php package huy-tran/api-explorer-module. 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 api-explorer-module

ApiExplorer Module

A self-hosted API explorer for local development in Laravel applications. Automatically scans and documents your API routes, actions, and DTOs.

Features

Tech Stack

Backend

Frontend

All frontend assets are loaded via CDN — no build step required.

Requirements

Installation

Install the module via Composer:

The module will be automatically registered via the service provider.

Configuration

Publish the configuration file:

This creates config/api-explorer.php:

Option Default Description
enabled true Enable or disable the module
cache true Cache scanned API data
cache_ttl 86400 Cache time-to-live in seconds
route_prefix dev/api-explorer URL prefix for the explorer routes
exclude_patterns [...] Route patterns to exclude from scanning

The module is disabled in production and only available in development environments.

Publishing Assets

To publish views for customization:

This publishes views to resources/views/vendor/api-explorer/.

Usage

Scan API Endpoints

Scan your application for API endpoints:

This command:

Clear Cache

Clear the API explorer cache:

Access the Explorer

Once enabled, visit your application's API explorer route to browse documented endpoints.

Architecture

The module uses several key components:

DTO Integration

Scalar and Enum Properties

Standard PHP types are automatically mapped to form fields:

PHP Type Input Type
string Text
int, float Number
bool Checkbox
array Repeatable text items
mixed Textarea
Carbon, DateTime Datetime picker
UploadedFile File upload
BackedEnum Select dropdown
Nested Data class Expandable group

Eloquent Model Properties

Eloquent model parameters in DTOs are automatically rendered as body ID fields using a convention-based key derived from the class name:

Model class Auto-derived key Input type
Client clientId number
ClientProject clientProjectId number
DocumentChunk documentChunkId number

No annotation is required for the common case:

Overriding with #[BodyField]

Use #[BodyField] when the default key or input type doesn't fit:

Parameters:

Parameter Type Default Description
$key string The field name sent in the request body
$inputType string 'number' Input type rendered in the UI. Use 'text' for UUID-keyed models

Environment Management

Store and switch between multiple API environments:

License

This module is licensed under the MIT License.

Author

Huy Tran - [email protected]


All versions of api-explorer-module with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-data Version ^3|^4
lorisleiva/laravel-actions Version ^2.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 huy-tran/api-explorer-module contains the following files

Loading the files please wait ...