structuraphp/structura

Architectural testing for PHP

Maintainers

Package info

github.com/structuraphp/structura

pkg:composer/structuraphp/structura

Statistics

Installs: 548

Dependents: 1

Suggesters: 0

Stars: 13

Open Issues: 1

0.7.0 2026-03-22 16:42 UTC

README

License PHP from Packagist Packagist Downloads

About

Structura is an architectural testing tool for PHP, designed to help developers maintain a clean and consistent code structure.

📖 Documentation

Full documentation is available at structuraphp.github.io.

Quick Start

Installation

composer require --dev structuraphp/structura

Configuration

php structura init

Run

php bin/structura analyze

Requirements

PHP Version Structura 0.x
<= 8.1 ✗ Unsupported
8.2 / 8.3 / 8.4 / 8.5 ✓ Supported

With PHPUnit

Structura can integrate architecture testing with PHPUnit:

https://github.com/structuraphp/structura-phpunit

Inspiration

StructuraPHP is the result of current tools failing to meet, or only partially meeting, our needs as an architecture testing tool.

Our design and features are heavily inspired by the following tools: