Download the PHP package ug-code/laranova without Composer
On this page you can find all versions of the php package ug-code/laranova. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laranova
Laranova
Postman-like API test interface, directly inside your Laravel application.
Zero configuration, local-only, session-backed, and fully extensible.
Why Laranova?
You're debugging an API endpoint, testing validation rules, or inspecting a third-party integration. Normally you'd switch to Postman, Insomnia, or cURL — copy URLs, manage tokens, keep windows in sync.
Laranova lives inside your Laravel app. It scans all your routes, auto-detects validation rules, generates fake data via Faker, and lets you send requests — all from a single-page interface served at /laranova.
Features
| Feature | Description |
|---|---|
| Route Scanner | Lists every route in your app, grouped by controller. Shows middleware, validation rules, path parameters, and file upload fields at a glance. |
| Request Builder | Method, URL, headers, query params, and body — with environment variable replacement ({{baseUrl}}). |
| Header Toggle | Enable or disable individual headers on the fly without removing them. |
| Query Param Toggle | Same per-param enable/disable control, with a reset-to-defaults button. |
| Faker Tag Engine | Use {{ @faker:name }}, {{ @faker:email }}, {{ @faker:int }}, and 20+ other tags inside URLs, headers, query params, and body. Values are generated fresh on each request. |
| Pre-scripts (Postman Compat) | Run JavaScript before each request using the pm.* API — pm.variables.set(), pm.environment.get(), pm.sendRequest(). |
| Session-Backed History | Last 100 requests stored in session. Click to restore method + URL. |
| Route Info Panel | Select a route from the sidebar to see its controller, middleware stack, validation rules, and path parameters at a glance. |
| cURL Export | One-click copy as cURL command with resolved faker values. |
| Postman Export | Export the current request as a Postman Collection v2.1. |
| Variables Panel | Define reusable environment variables (baseUrl, bearerToken, etc.) with config defaults and localStorage persistence. |
| Auto Security Headers | Automatically pre-populates Authorization: Bearer {{bearerToken}} based on security config. |
| File Upload Support | Auto-detects file/image validation rules and renders file inputs. |
Installation
Laranova uses package auto-discovery. No manual service provider registration needed.
Quick Start
Navigate to /laranova in your browser. That's it.
The interface only loads in local environment. If you need to test in other environments:
Then set APP_ENV=local or temporarily remove the environment check from the provider.
Usage
Sending a Request
- Select an HTTP method from the dropdown.
- Enter the full URL (or use
{{baseUrl}}/api/endpoint). - Add headers, query params, and body as needed.
- Optionally write pre-scripts.
- Click Send Request.
Selecting Routes from the Sidebar
The left panel lists all application routes (excluding debug/telescope paths). Routes are grouped by controller. Click a route to auto-fill method, URL, query parameters, and body — including validation-rule-aware faker values.
Using Faker Tags
Any text field supports faker tag replacement. Tags are resolved fresh on each request:
| Tag | Faker Method | Example Output |
|---|---|---|
{{ @faker:name }} |
name() |
Dr. Zachary Brown |
{{ @faker:firstName }} |
firstName() |
John |
{{ @faker:lastName }} |
lastName() |
Smith |
{{ @faker:fullName }} |
name() |
Prof. Jane Doe |
{{ @faker:email }} |
email() |
[email protected] |
{{ @faker:safeEmail }} |
safeEmail() |
[email protected] |
{{ @faker:phone }} |
phoneNumber() |
+1-555-123-4567 |
{{ @faker:phoneNumber }} |
phoneNumber() |
555.123.4567 |
{{ @faker:address }} |
address() |
123 Main St, New York, NY 10001 |
{{ @faker:streetAddress }} |
streetAddress() |
456 Elm Street |
{{ @faker:city }} |
city() |
New York |
{{ @faker:country }} |
country() |
United States |
{{ @faker:postcode }} |
postcode() |
10001 |
{{ @faker:text }} |
text() |
Lorem ipsum dolor sit amet, consectetur adipiscing elit... |
{{ @faker:sentence }} |
sentence() |
The quick brown fox jumps over the lazy dog. |
{{ @faker:paragraph }} |
paragraph() |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore. |
{{ @faker:number }} |
randomNumber() |
83742 |
{{ @faker:randomDigit }} |
randomDigit() |
7 |
{{ @faker:int }} |
randomNumber() |
58392 |
{{ @faker:uuid }} |
uuid() |
550e8400-e29b-41d4-a716-446655440000 |
{{ @faker:url }} |
url() |
https://www.example.com |
{{ @faker:date }} |
date() |
2024-03-15 |
{{ @faker:dateTime }} |
dateTime() |
2024-03-15 14:30:00 |
{{ @faker:dateFrom }} |
dateTimeBetween(-10y, now) |
2019-07-22 |
{{ @faker:dateTo }} |
dateTimeBetween(now, +10y) |
2028-11-03 |
{{ @faker:company }} |
company() |
Acme Corporation |
{{ @faker:boolean }} |
boolean() |
true |
{{ @faker:word }} |
word() |
synergize |
{{ @faker:title }} |
title() |
Prof. |
Unknown tag types fall back to word.
Configuration
Publish the config file:
Publishing Views
This publishes the Blade SPA to resources/views/vendor/laranova/. You can customize the UI directly. The frontend uses Tailwind CSS and Alpine.js 3.x from CDN — no npm build step required.
Environment Variables
| Variable | Default | Description |
|---|---|---|
LARANOVA_FAKER_LOCALE |
en_US |
Faker locale for generated data |
LARANOVA_HTTP_TIMEOUT |
30 |
HTTP client timeout (seconds) |
LARANOVA_HTTP_CONNECT_TIMEOUT |
10 |
HTTP connection timeout (seconds) |
LARANOVA_HISTORY_MAX |
100 |
Max history items stored in session |
LARANOVA_SECURITY_TYPE |
bearer |
Default auth scheme (bearer, basic, apikey, or empty) |
LARANOVA_DEFAULT_BASE_URL |
http://pinsever.test |
Default {{baseUrl}} variable value |
Architecture
Routes
All routes are prefixed with /laranova and use the web middleware:
| Method | URI | Action |
|---|---|---|
| GET | /laranova/ |
Returns the SPA view |
| POST | /laranova/resolve |
Resolves faker tags & returns parsed request |
| GET | /laranova/history |
Returns session history as JSON |
| POST | /laranova/history |
Stores a history entry |
| DELETE | /laranova/history |
Clears all history |
| GET | /laranova/routes |
Returns all scanned routes as JSON |
Route names are prefixed with laranova.* (e.g., laranova.index, laranova.resolve).
Pre-scripts API
Laranova implements a subset of the Postman pm.* API:
Development
No build step. The frontend uses Tailwind CSS and Alpine.js from CDN.
License
MIT © ug-code