Download the PHP package prooph/message-flow-analyzer without Composer

On this page you can find all versions of the php package prooph/message-flow-analyzer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package message-flow-analyzer

prooph message flow analyzer

A static code analyzer to extract message flow of a prooph project

Installation

Configuration

The analyzer can be configured using a json file. By default the analyzer uses a prooph_analyzer.json located in the current working directory. An example of a default config can be found in the test example project

Run

Why?

The prooph message flow analyzer scans your project for prooph messages and collects information how these messages flow through your project source code :)

The analysis contains information about:

The message flow is written to an output file (prooph_message_flow.json by default).

For now that's it. But imagine what you can do with this information! We'll add different output formatters to generate config for d3js or draw.io. The message flow analyzer will also be part of the upcoming event-store-mgmt-ui and will allow you to connect the message flow with your event streams for debugging and monitoring.

How?

The package uses the excellent libraries roave/better-reflection and nikic/php-parser (which is used by Roave/BetterReflection internally, too)

WIP

prooph/message-flow-analyzer and the event-store-mgmt-ui are work in progress. There is no roadmap defined yet. If you think your project could benefit from a stable version and you or your company would like to support development then get in touch.

Filters

You can add include and exclude filters for files and directories. prooph/message-flow-analyzer ships with some default filters. Check the linked example config above. The filter implementations can be found in the Filter dir

ClassVisitors

Class visitors are called for every php class found in the project and not excluded by a filter. They take a Roave\BetterReflection\Reflection\ReflectionClass and the Prooph\MessageFlowAnalyzer\MessageFlow as input and if a visitor finds something interesting in the class it can add this information to the MessageFlow.

Again prooph/message-flow-analyzer ships with default class visitors (see example config) which can be found in the Visitor dir.

Run it against proophessor-do

You can see prooph/message-flow-analyzer in action by running it against proophessor-do.

  1. Clone proophessor-do
  2. Add prooph/message-flow-analyzer: dev-master to the require-dev config of proophessor-do's composer.json
  3. Run composer install
  4. Copy prooph_analyzer.json into root dir of proophessor-do
  5. Copy ExcludeBlacklistedFiles.php into src/Infrastructure/ProophAnalyzer. This is needed because proophessor-do contains a prepared factory for mongodb connection but mongo is not installed by default so the mongo classes cannot be loaded.
  6. Add "Prooph\\ProophessorDo\\Infrastructure\\ProophAnalyzer\\ExcludeBlacklistedFiles" as last entry in the prooph_analyzer.json fileInfoFilters array.
  7. Run php vendor/bin/prooph-analyzer project:analyze and watch the generated output file prooph_message_flow.json

If this is too much work right now and you only want to see the result: prooph_message_flow.json


All versions of message-flow-analyzer with dependencies

PHP Build Version
Package Version
Requires roave/better-reflection Version ^2.0
nikic/php-parser Version ^3.1
symfony/console Version ^3.3 || ^4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package prooph/message-flow-analyzer contains the following files

Loading the files please wait ....