PHPackages                             firevel/api-resource-schema-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. [API Development](/categories/api)
4. /
5. firevel/api-resource-schema-generator

ActiveLibrary[API Development](/categories/api)

firevel/api-resource-schema-generator
=====================================

0.3.0(3d ago)01.9k↑206.7%MITPHPCI passing

Since Nov 7Pushed 3d agoCompare

[ Source](https://github.com/firevel/api-resource-schema-generator)[ Packagist](https://packagist.org/packages/firevel/api-resource-schema-generator)[ RSS](/packages/firevel-api-resource-schema-generator/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (15)Versions (27)Used By (0)

API Resource Schema Generator
=============================

[](#api-resource-schema-generator)

Generates JSON schema files for API resources using Firevel Generator.

Usage
-----

[](#usage)

**Single resource:**

```
php artisan firevel:generate api-resource-schema --json=resource.json
```

Output: `schemas/api-resources/{name}/schema.json`

**Multiple resources:**

```
php artisan firevel:generate api-resource-schemas --json=resources.json
```

Output: `schemas/app.json`

Schema → code in one step
-------------------------

[](#schema--code-in-one-step)

The pipelines above only produce schema JSON, which you then feed to the generator. The `*-from-schema` pipelines collapse both stages into a single command: they transform the prompt-style schema **and** generate the resource code (model, migration, transformer, controller, requests, factory, seeder, policy, route).

**Single resource** — bare `{ "name": ..., "fields": [...] }` input:

```
php artisan firevel:generate api-resource-from-schema --json=resource.json
```

**Multiple resources** — `{ "schemas": [ ... ] }` input (plus optional `seeders`):

```
php artisan firevel:generate api-resources-from-schema --json=resources.json
```

Both accept the standard flags (`--only`, `--dry-run`, `--skip-existing`). The intermediate generator-format descriptor is written to the system temp directory (the path is logged) for inspection — nothing is added under `schemas/`. Code generation runs the `api-resource` pipeline (resource files only); it does not run the app-level steps (routes consolidation, morph map, composer requires, `.env`).

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance99

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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 ~24 days

Recently: every ~9 days

Total

26

Last Release

3d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2696038?v=4)[Michael Slowik](/maintainers/sl0wik)[@sl0wik](https://github.com/sl0wik)

---

Top Contributors

[![sl0wik](https://avatars.githubusercontent.com/u/2696038?v=4)](https://github.com/sl0wik "sl0wik (67 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/firevel-api-resource-schema-generator/health.svg)

```
[![Health](https://phpackages.com/badges/firevel-api-resource-schema-generator/health.svg)](https://phpackages.com/packages/firevel-api-resource-schema-generator)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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