sayuprc / arch-scaffy
Scaffolding tool that generates boilerplate code for layered architecture projects from YAML configuration
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/sayuprc/arch-scaffy
Requires
- php: ^8.4
- cuyz/valinor: ^2.3
- nikic/php-parser: ^5.7
- php-di/php-di: ^7.1
- sayuprc/result-type: ^0.4.0
- symfony/console: ^8.0
- symfony/yaml: ^8.0
Requires (Dev)
- brianium/paratest: ^7.15
- mockery/mockery: ^1.6
- phpstan/phpstan: ^2.1
- symplify/easy-coding-standard: ^13.0
This package is auto-updated.
Last update: 2025-12-31 17:01:59 UTC
README
Arch Scaffy is a CLI tool that generates boilerplate code for PHP projects using recommended architectural structures.
You can quickly set up Layered Architecture, Clean Architecture, Domain-Driven Design (DDD), and more, with best practices out of the box.
Requirements
| name | version |
|---|---|
| PHP | ^8.4 |
Installation
composer require --dev sayuprc/arch-scaffy
Usage
Initialize
./vendor/bin/scaffy init
After running the init command, the directories scaffy.config.yaml and scaffy.blueprint.yaml will be generated.
Generate codes
./vendor/bin/scaffy generate
Configuration
If you are using VSCode, you can enable YAML autocompletion by adding the following settings to your .vscode/settings.json file:
{
"yaml.schemas": {
"./vendor/sayuprc/arch-scaffy/resources/schema/config.schema.json": "scaffy.config.yaml",
"./vendor/sayuprc/arch-scaffy/resources/schema/blueprint.schema.json": "scaffy.blueprint.yaml",
}
}
With this configuration, VSCode provides schema-based autocompletion and validation for YAML files.