wwwision/fusion-prototype-analyzer

Anaylze Neos Fusion prototypes and their usages by other prototypes

Maintainers

👁 bwaidelich

Package info

github.com/bwaidelich/Wwwision.FusionPrototypeAnalyzer

Type:neos-package

pkg:composer/wwwision/fusion-prototype-analyzer

Fund package maintenance!

bwaidelich

Paypal

Statistics

Installs: 5 177

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 4

1.3.0 2024-02-12 08:29 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 82155029081895b3e187937bcd6e2bee116446fb

This package is auto-updated.

Last update: 2026-06-12 13:31:31 UTC


README

Analyze Neos Fusion prototypes and their usages by other prototypes.

Installation

Install via composer:

composer require --dev wwwision/fusion-prototype-analyzer

Usage

This package comes with two CLI commands:

Find nested prototypes

Allows finding prototypes that are used by the specified prototype (recursively):

./flow prototype:findnested Some.Package:Some.Prototype

This might output something like:

The prototype Some.Package:Some.Prototype contains 6 other prototypes (for site package Some.Package):

Neos.Fusion (4)
 Tag
 DataStructure
 Component
 Case

Some.Package (2)
 Component.Atom.SomeComponent
 Component.Atom.SomeOtherComponent

Site package

In order for the right Fusion Object Tree to be loaded, the context site package key can be specified:

./flow prototype:findnested Some.Package:Some.Prototype --site-package Some.Other.Package

If it is omitted, the site package is extracted from the specified prototype name

Find prototype usages

Allows finding prototypes that use the specified prototype (recursively):

./flow prototype:findusages Some.Package:Some.Prototype

This might output something like:

The prototype Some.Package:Some.Prototype is used by 4 other prototypes (for site package Some.Package):

Some.Package (5)
 Component.Template.Component1
 Component.Template.Component2
 Document.SomeDocument
 Document.SomeOtherDocument

Site package

In order for the right Fusion Object Tree to be loaded, the context site package key can be specified:

./flow prototype:findusages Some.Package:Some.Prototype --site-package Some.Other.Package

If it is omitted, the site package is extracted from the specified prototype name

Find prototypes used by Node Type

Allows finding prototypes that are used by a specified Node Type (recursively):

./flow prototype:findbynodetype Some.Package:Some.NodeType

This might output something like:

The node type Some.Package:Some.NodeType uses 3 Fusion prototypes (for site package Some.Package):

Some.Package (5)
 Component.Template.Component1
 Component.Template.Component2
 Document.SomeDocument
 Document.SomeOtherDocument

Site package

In order for the right Fusion Object Tree to be loaded, the context site package key can be specified:

./flow prototype:findbynodetype Some.Package:Some.NodeType --site-package Some.Other.Package

If it is omitted, the site package is extracted from the specified node type name

Contribution

Contributions in the form of issues or pull requests are highly appreciated.

License

See LICENSE