PHPackages                             chevere/schwager-html - 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. chevere/schwager-html

ActiveLibrary[API Development](/categories/api)

chevere/schwager-html
=====================

Generates documentation for Schwager API

0.1.1(1y ago)11.2k[1 issues](https://github.com/chevere/schwager-html/issues)3Apache-2.0PHPPHP ^8.1CI failing

Since Oct 2Pushed 5mo agoCompare

[ Source](https://github.com/chevere/schwager-html)[ Packagist](https://packagist.org/packages/chevere/schwager-html)[ Docs](https://chevere.org)[ RSS](/packages/chevere-schwager-html/feed)WikiDiscussions 0.1 Synced 1w ago

READMEChangelog (2)Dependencies (10)Versions (5)Used By (3)

Schwager HTML
=============

[](#schwager-html)

[![Chevere](chevere.svg)](chevere.svg)

[![Build](https://camo.githubusercontent.com/1e010cc9a7cf57fbdd6fa8cd82333aa26b80a3a7444ef91296d323570d06c269/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636865766572652f73636877616765722d68746d6c2f746573742e796d6c3f6272616e63683d302e31267374796c653d666c61742d737175617265)](https://github.com/chevere/schwager-html/actions)[![Code size](https://camo.githubusercontent.com/0dd8858922808dcf488e727bfaf1e235def818e97237bbfaa18691faef866d0d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636865766572652f73636877616765722d68746d6c3f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/0dd8858922808dcf488e727bfaf1e235def818e97237bbfaa18691faef866d0d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f636865766572652f73636877616765722d68746d6c3f7374796c653d666c61742d737175617265)[![Apache-2.0](https://camo.githubusercontent.com/9a0636e7ade77e7bfbabdb6fa52a8fe7599f7a946acd06c4f5e341da9c2fd792/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636865766572652f73636877616765722d68746d6c3f7374796c653d666c61742d737175617265)](LICENSE)[![PHPStan](https://camo.githubusercontent.com/6016298b28550819030c76e9327f62501596a31fd76406695bae2f3d2a1f26a4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230392d626c756576696f6c65743f7374796c653d666c61742d737175617265)](https://phpstan.org/)[![Mutation testing badge](https://camo.githubusercontent.com/3e30bc53ffb06e63a2c24747f6dc9eeb16ebca449149d9e241f44a4fd2b7b090/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368657665726525324673636877616765722d68746d6c253246302e31)](https://dashboard.stryker-mutator.io/reports/github.com/chevere/schwager-html/0.1)

[![Quality Gate Status](https://camo.githubusercontent.com/bd38ba80401371c65e41687d71b08a8feb8e58f06ae0da86795cfe9a7268fe3a/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f73636877616765722d68746d6c266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chevere_schwager-html)[![Maintainability Rating](https://camo.githubusercontent.com/0a2320d748f31866c207fd1848b3073bea64936ee9cb55f7063f0688641fa165/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f73636877616765722d68746d6c266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chevere_schwager-html)[![Reliability Rating](https://camo.githubusercontent.com/71fe447fb275e9c9cde9a5cd3750e7cfd76a3ddb0f34c59b7b214c6ea0fb2a87/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f73636877616765722d68746d6c266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chevere_schwager-html)[![Security Rating](https://camo.githubusercontent.com/cda644d45d5191b422c798cf24d38d864a649bfa96b47b74d7098d9d30ed970c/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f73636877616765722d68746d6c266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chevere_schwager-html)[![Coverage](https://camo.githubusercontent.com/ea8c2b268e07018893dd12b6a5c7413f812c0626b87ce3afea9498fb5db448b2/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f73636877616765722d68746d6c266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chevere_schwager-html)[![Technical Debt](https://camo.githubusercontent.com/b47615a6fbbd531feb4be3a5764877c31e5727c96886635b8d35ba8fb16fa208/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d636865766572655f73636877616765722d68746d6c266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chevere_schwager-html)[![CodeFactor](https://camo.githubusercontent.com/a9caf5dbebd5afb9e486d940ffbbc2731b785a18015dfc7059112328285180f2/68747470733a2f2f7777772e636f6465666163746f722e696f2f7265706f7369746f72792f6769746875622f636865766572652f73636877616765722d68746d6c2f6261646765)](https://www.codefactor.io/repository/github/chevere/schwager-html)[![Codacy Badge](https://camo.githubusercontent.com/88528e464c451c89075251520482058dd9ce7673c879601a66f5f1f8bf0de4f1/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3761343639366562373439303464643462616362643133396532616464343765)](https://app.codacy.com/gh/chevere/schwager-html/dashboard)

Demo
----

[](#demo)

[![Schwager HTML light](demo/output/schwager-html-light.webp)](demo/output/schwager-html-light.webp)[![Schwager HTML dark](demo/output/schwager-html-dark.webp)](demo/output/schwager-html-dark.webp)

There's an [online demo](https://chevere.github.io/schwager-html/demo/output/schwager.html) you can checkout. This is generated from the script at [demo/demo.php](demo/demo.php)

Quick start
-----------

[](#quick-start)

- Install using [Composer](https://packagist.org/packages/chevere/schwager-html)

```
composer require chevere/schwager-html
```

- Generate HTML

```
use Chevere\Schwager\DocumentSchema;
use Chevere\Schwager\ServerSchema;
use Chevere\Schwager\Spec;
use Chevere\SchwagerHTML\Html;
use function Chevere\Router\router;

// Load your router
$routes = require 'routes.php';
$router = router($routes);
// Create document
$document = new DocumentSchema(
    api: 'schwager',
    name: '🐶 Schwager Petstore',
    version: '1.0.0'
);
// Create server
$testServer = new ServerSchema(
    url: 'demoServerUrl',
    description: 'This is a sample server Petstore API spec.'
);
// Create spec
$spec = new Spec($router, $document, $testServer);
// Create html
$html = new Html($spec);
// Read html as string
$html->__toString();
```

Documentation
-------------

[](#documentation)

Documentation is available at [chevere.org](https://chevere.org/packages/schwager.html).

License
-------

[](#license)

Copyright 2023 [Rodolfo Berrios A.](https://rodolfoberrios.com/)

Chevere is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full license text.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

30

—

LowBetter than 61% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

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

Total

4

Last Release

178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a87fbbcb1518fe64878bc53dedd9f61b81243cbb21b73c26f5e299d501375984?d=identicon)[rodolfo](/maintainers/rodolfo)

---

Top Contributors

[![rodber](https://avatars.githubusercontent.com/u/20590102?v=4)](https://github.com/rodber "rodber (49 commits)")

---

Tags

cheverephpphp-library

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chevere-schwager-html/health.svg)

```
[![Health](https://phpackages.com/badges/chevere-schwager-html/health.svg)](https://phpackages.com/packages/chevere-schwager-html)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M778](/packages/sylius-sylius)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

12017.1k](/packages/rcsofttech-audit-trail-bundle)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k70](/packages/friendsoftypo3-content-blocks)[chevere/workflow

Declarative workflow engine for PHP with automatic dependency resolution, sync/async job execution, and type-safe response chaining.

1722.2k2](/packages/chevere-workflow)

PHPackages © 2026

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