PHPackages                             guljahang/swaglite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. guljahang/swaglite

ActiveLibrary[API Development](/categories/api)

guljahang/swaglite
==================

Lightweight Swagger alternative for Laravel

00JavaScript

Since Jun 23Pushed todayCompare

[ Source](https://github.com/GuljahanG/swaglite)[ Packagist](https://packagist.org/packages/guljahang/swaglite)[ RSS](/packages/guljahang-swaglite/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

SwagLite
========

[](#swaglite)

Lightweight API documentation for Laravel.

Features
--------

[](#features)

- Interactive API documentation
- Execute API requests directly from the browser
- Path parameters (`/users/{id}`)
- JSON request bodies
- GET, POST, PUT, PATCH and DELETE support
- Search endpoints instantly
- Dark mode support
- Attribute-based documentation
- Lightweight and zero external dependencies

Installation
------------

[](#installation)

```
composer require guljahang/swaglite
```

Publish the package assets:

```
php artisan vendor:publish --tag=swaglite-assets
```

Access the Documentation
------------------------

[](#access-the-documentation)

### After installing the package, start your Laravel application and open:

[](#after-installing-the-package-start-your-laravel-application-and-open)

```
http://localhost:8000/swaglite
```

Usage
-----

[](#usage)

### Response Documentation

[](#response-documentation)

```
#[SwagResponse(
    status: 200,
    description: 'Success'
)]
public function index()
{
    return User::all();
}
```

### Path Parameters

[](#path-parameters)

```
#[SwagParameter(
    name: 'id',
    in: 'path',
    required: true,
    example: 1
)]
public function show($id)
{
    return User::findOrFail($id);
}
```

### Request Body

[](#request-body)

```
#[SwagParameter(
    name: 'name',
    in: 'body',
    required: true
)]
#[SwagParameter(
    name: 'email',
    in: 'body',
    required: true
)]
public function store(Request $request)
{
    return $request->all();
}
```

Supported Methods
-----------------

[](#supported-methods)

- GET
- POST
- PUT
- PATCH
- DELETE

Screenshots
-----------

[](#screenshots)

### Light Mode

[](#light-mode)

[![SwagLite Light Mode](docs/images/lightmode.png)](docs/images/lightmode.png)

### Dark Mode

[](#dark-mode)

[![SwagLite Dark Mode](docs/images/darkmode.png)](docs/images/darkmode.png)

License
-------

[](#license)

MIT

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance65

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/63462303?v=4)[Guljahan Ilmedova](/maintainers/GuljahanG)[@GuljahanG](https://github.com/GuljahanG)

---

Top Contributors

[![GuljahanG](https://avatars.githubusercontent.com/u/63462303?v=4)](https://github.com/GuljahanG "GuljahanG (8 commits)")

### Embed Badge

![Health badge](/badges/guljahang-swaglite/health.svg)

```
[![Health](https://phpackages.com/badges/guljahang-swaglite/health.svg)](https://phpackages.com/packages/guljahang-swaglite)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
