Download the PHP package quatrebarbes/larchiclass without Composer
On this page you can find all versions of the php package quatrebarbes/larchiclass. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download quatrebarbes/larchiclass
More information about quatrebarbes/larchiclass
Files in quatrebarbes/larchiclass
Package larchiclass
Short Description Some architecture-related commands for Laravel developers
License MIT
Homepage https://github.com/quatrebarbes/larchiclass
Informations about the package larchiclass
LarchiClass 😎
Some architecture-related commands for Laravel developers
PHP 8.1+ · Laravel 10 / 11 · install as --dev
Generate PlantUML class diagrams from your Laravel namespaces.
LarchiClass inspects your PHP classes produces a .puml file ready to render with PlantUML. The larchi:class command covers all PHP types (classes, interfaces, traits, enums), while larchi:model enriches the diagram with Eloquent properties and model relationships.
Installation
Commands
| Command | Description |
|---|---|
larchi:caller |
Analyze all the function callers leading to a method & shdescribe the flow into a diagram. |
larchi:class |
General-purpose diagram — classes, interfaces, traits, enums. Dependencies resolved from type hints. |
larchi:model |
Eloquent diagram — $fillable, $casts, $hidden properties and relationships (hasMany, belongsTo, morphTo…). |
Examples of using larchi:caller
Examples of using larchi:class
Example of using larchi:model
The
.pumlfile can be rendered with PlantUML, the VS Code PlantUML extension, or any compatible tool. The diagram is left-to-right by default.
What the diagram includes
larchi:caller
- All functions/methods that call the target method directly or not
- The complete chain of callers up to http routes & artisan commands
larchi:class
- All classes, interfaces, traits, and enums in the target namespace
- Properties with type, visibility (
+#-), and{static}modifier - Methods with visibility,
{abstract}, and{static}modifiers - Inheritance arrows (
<|--), implementation arrows (<|..), trait usage (<..), and dependency arrows (..>) - Stubs for classes referenced outside the scope (with
--with-related)
larchi:model (everything from larchi:class, plus…)
- Properties sourced from
$fillable,$hidden,$casts,$dates, and$appends - Computed visibility: a field present in both
$fillableand$hiddenis rendered asprivate - Types resolved from
$casts:decimal:2→decimal,AsCollection::class→AsCollection - Eloquent relationships:
hasOne,hasMany,belongsTo,belongsToMany,hasManyThrough,hasOneThrough,morphOne,morphMany,morphTo,morphToMany,morphedByMany - Automatic cardinality (
"1" -- "*","*" -- "*", etc.) - Reciprocal pairs merged into a single arrow annotated with both method names
- Stereotypes
<<model>>,<<vendor>>,<<trait>>