PHPackages                             shortcodes/annotation-generator - 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. [CLI &amp; Console](/categories/cli)
4. /
5. shortcodes/annotation-generator

ActiveLibrary[CLI &amp; Console](/categories/cli)

shortcodes/annotation-generator
===============================

Console command to generate annotations

1.2.1(4y ago)13.6kmitPHPPHP &gt;=7.0.0

Since Jun 13Pushed 4y agoCompare

[ Source](https://github.com/shortcodes/annotation-generator)[ Packagist](https://packagist.org/packages/shortcodes/annotation-generator)[ RSS](/packages/shortcodes-annotation-generator/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (9)DependenciesVersions (10)Used By (0)

Annotation Generator
====================

[](#annotation-generator)

Annotation generator is `php artisan `command used to generate annotation for Swagger 3.0 documentation

\#Install

```
composer require shortcodes/annotation-generator

```

Usage
=====

[](#usage)

Register command in `app/Console/Kernel.php`

```
protected $commands = [
    GenerateAnnotations::class
];

```

Then you can use command:

```
php artisan make:annotation Product --tag="product"

```

Option `--tag` is responsible for generation of annotation with correct Swagger 3.0 tag and it is mandatory

\###Output

Command creates in directory `app/Swagger/Actions` files `Index.php`, `Show.php`, `Store.php`, `Update.php` and `Delete.php` with Swagger 3.0 annotations and creates stub of model in `app/Swagger/Models` named `Product.php` with example property

It is possible to exclude creation of model using option `--nomodel`

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~112 days

Recently: every ~225 days

Total

9

Last Release

1674d ago

Major Versions

0.1.3 → 1.1.42019-06-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/30219536?v=4)[Roman Szymański](/maintainers/shortcodes)[@shortcodes](https://github.com/shortcodes)

---

Top Contributors

[![shortcodes](https://avatars.githubusercontent.com/u/30219536?v=4)](https://github.com/shortcodes "shortcodes (7 commits)")

### Embed Badge

![Health badge](/badges/shortcodes-annotation-generator/health.svg)

```
[![Health](https://phpackages.com/badges/shortcodes-annotation-generator/health.svg)](https://phpackages.com/packages/shortcodes-annotation-generator)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.3k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71464.1k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20718.9k21](/packages/winbox-args)

PHPackages © 2026

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