New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

code-orange/jot

Laravel package that generates RESTful API documentation in Markdown based on PHPDoc.
9,355 7

Larablocks Analysis

code-orange/jot works with Laravel 7 and 8 (latest release v2.0, Feb 11, 2021), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.

Laravel 5 and 6 in earlier releases.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 7 and 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Feb 11, 2021)
  • 13 downloads a month (needs 10,000)
  • 7 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Feb 11, 2021.
  • No releases in the last 12 months.
  • First released: Jul 29, 2017.
  • Monthly downloads: 13, up 550% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require code-orange/jot
Latest Version:v2.0
PHP:>=5.6.4
Laravel:7 · 8
Older releases:5 · 6
License:Apache-2.0
Last Updated:Feb 11, 2021
Links: GitHub  ·  Packagist
Maintainer: timvdalen

jot

Jot is a Laravel package that generates RESTful API documentation in Markdown based on PHPDoc.

Installation

To install jot with composer:

composer require code-orange/jot

Laravel 5.5+

If you're using Laravel 5.5 or above, the package will automatically register the Jot provider.

Laravel 5.4

Add CodeOrange\Jot\JotServiceProvider::class to the providers array in config/app.php.

Configuration

You can use php artisan vendor:publish to publish the jot configuration to your application:

php artisan vendor:publish --provider=CodeOrange\\Jot\\JotServiceProvider

Then, update config/jot.php.

Usage

Generating documentation

First, document your controller actions with PHPDoc.

class MyController {
	/**
	 * Returns a value
	 *
	 * This method returns a cool value.
	 *
	 * @param mixed $b Some value
	 * @return JsonResponse {
	 *                          "a": 1,
	 *                          "b": "Example"
	 *                      }
	 */
	public function myAction(Request $r) {
		return response()->json([
			'a' => 1,
			'b' => $r->get('b')
		]);
	}
}

Then, run php artisan jot:generate. Markdown documenting your API will be printed to your console.

## Returns a value

This method returns a cool value.

`GET /example`

### Parameters

| Name | Located in | Description | Type |
| ---- | ---------- | ----------- | ---- |
|b|request|Some value|mixed|
|account|path|||

```json
{
    "a": 1,
    "b": "Example"
}
```

You can then add this Markdown to whatever you use to publish your docs. That can just be a Markdown file on GitHub, a wiki, or a self-hosted documentation site.

The Markdown is compatible with lord/slate, which is what we're using at Odyssey to publish our documentation.

Checking documentation coverage

Jot can also check if all of your public API methods are properly documented, for instance as part of your CI test pipeline.

php artisan jot:coverage

will exit with an error status code if there is a method in your API that is not documented.

Optionally, you can use --return to force all methods to have a documented return type/example.

Motivation

This project is heavily inspired by f2m2/apidocs. While that project generates excellent documentation, I didn't like the idea of a Laravel app hosting its own documentation (something that can be done statically and that probably has much different access patterns).

Jot allows you to separate generation and publication of your API docs.

Read more about building Jot in this blogpost.

Related Packages

ssddanbrown/bookstack

BookStack documentation platform

1,824 19,162
docit/core

Laravel 5 Documentation Platform

35 0
dedoc/scramble

Automatic generation of API documentation for Laravel applications.

23,193,454 2,239
knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

19,669,360 2,340
mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3,199,689 3,440

Version History

Version Released PHP Laravel License
v2.0 >=5.6.4 ^7|^8 Apache-2.0
v1.8 >=5.6.4 ~7.0|~8.0 Apache-2.0
v1.7 >=5.6.4 ~7.0 Apache-2.0
1.6.1 >=5.6.4 ~6.0 Apache-2.0
v1.6 >=5.6.4 ~6.0 Apache-2.0