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 3d 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 59% 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

1628d 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

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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