https://github.com/wundii/structron
A simple documentation that dto prepares as a structured md
https://github.com/wundii/structron
documentation dto markdown php
Last synced: 4 months ago
JSON representation
A simple documentation that dto prepares as a structured md
- Host: GitHub
- URL: https://github.com/wundii/structron
- Owner: wundii
- License: mit
- Created: 2025-06-21T18:56:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-16T19:59:16.000Z (4 months ago)
- Last Synced: 2026-02-17T02:19:15.336Z (4 months ago)
- Topics: documentation, dto, markdown, php
- Language: PHP
- Homepage:
- Size: 132 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/wundii/structron/actions/workflows/code_quality.yml)
[](https://phpstan.org/)

[](https://www.php.net/)
[](https://getrector.com)
[](https://tomasvotruba.com/blog/zen-config-in-ecs)
[](https://phpunit.org)
[](https://codecov.io/github/wundii/structron)
[](https://packagist.org/packages/wundii/structron)
A PHP library for generating human-readable documentation from structured data objects like DTOs, Entities, and Value Objects.
This is based on the data mapper.
## Installation
Require the bundle and its dependencies with composer:
> composer require wundii/afterbuy-sdk
Creating the config file
> vendor/bin/structron init
## Configuration
```php
use Wundii\Structron\Config\StructronConfig;
return static function (StructronConfig $structronConfig): void {
$structronConfig->docPath('your/docs/folder');
$structronConfig->paths(['your/dto/folder', 'your/other/dto/folder']);
/**
* Optional: The input in this example is the default value
*/
$structronConfig->phpExtension('php');
$structronConfig->skip([]);
$structronConfig->setIndentFileIteration();
/**
* Other possibilities for automated use
*/
$structronConfig->disableProcessBar();
$structronConfig->disableExitCode();
};
```
## Usage
> vendor/bin/structron