dokapi/dokapi-rest
Laravel package to expose REST endpoints from your app with minimal setup. Helps scaffold controllers/routes, standardize request/response handling, and speed up building API resources for common CRUD operations.
dokapi/dokapi-rest package is a REST API documentation generator for Laravel/PHP, designed to auto-generate OpenAPI/Swagger documentation from route definitions, controllers, and annotations. It aligns well with:
#[OpenApi\Tag], #[OpenApi\RequestBody]).zircote/swagger-php) as a dependency.Route::get(), Route::apiResource(), and API middleware.#[OpenApi\Tag]). Legacy PHP 7.x would need a polyfill or alternative syntax.Route::middleware()-style docs to annotations (or use a hybrid approach).#[OpenApi\*] annotations, or require a migration path?pestphp/pest or laravel/pint for API contract testing.webonyx/graphql-php or laravel-graphql instead./users) to test annotation adoption and doc accuracy.routes/api.php) with #[OpenApi\*] attributes.#[OpenApi\Tag(name: "Users")]
#[OpenApi\Response(response: 200, description: "List of users")]
public function index() { ... }
dokapi/dokapi-rest in config/app.php and publish its config if needed.openapi-linter).darkaonline/l5-swagger).json and ctype extensions (standard in Laravel).@param annotations for clarity.#[OpenApi\SecurityScheme] to document auth requirements.apiResource but may need tweaks for nested resources.GET /users, POST /users).#[OpenApi\*] may clutter controllers.#[OpenApi\Response].php artisan dokapi:generate to inspect raw OpenAPI output.openapi-linter.storage/app/public/openapi.json.php artisan route:cache) to speed up doc generation.php -d memory_limit=512M if hitting limits during generation.How can I help you explore Laravel packages today?