PHPackages                             meneguetti/viscle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. meneguetti/viscle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

meneguetti/viscle
=================

Viscle provides a visual lifecycle for PHP request.

1.2.0(7y ago)113MITPHPPHP ^7.1

Since Jul 9Pushed 7y agoCompare

[ Source](https://github.com/meneguetti/viscle)[ Packagist](https://packagist.org/packages/meneguetti/viscle)[ RSS](/packages/meneguetti-viscle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Viscle

[](#viscle)

Viscle (Visual Lifecycle) provides a visual lifecycle for PHP request.

Installation
------------

[](#installation)

```
composer require meneguetti/viscle
```

Usage
-----

[](#usage)

1. Include the following code where you want to start capturing the request lifecycle, it has to be somewhere after requiring 'vendor/autoload.php'.

```
\Viscle\Viscle::capture();
```

2. Include the following code where you want to stop capturing and render the visual lifecycle.

```
echo \Viscle\Viscle::render();
```

Examples
--------

[](#examples)

- Example 1 - Simple usage of a set of classes within example folder:

```
\Viscle\Viscle::capture();

$a = new \Viscle\Example\A;
$a->perform();

echo \Viscle\Viscle::render();
```

It will render like following:

[![Example 1](/example/image/1.png)](/example/image/1.png)

- Example 2 - Usage in a framework (Laravel):

```
//inside public/index.php
require __DIR__.'/../vendor/autoload.php';

$filter = new \Viscle\Filter\NamespaceWhitelist();
//We don't want our graph too long, right?! ;)
$filter->classes = [
    'App',
    'Viscle\Example' //it's just to include Viscle example in our graph
];

\Viscle\Viscle::capture($filter);

...

//inside your controller/action or route closure

//just an example to show in graph
$a = new \Viscle\Example\A;
$a->perform();

echo \Viscle\Viscle::render();
```

It will render like following:

[![Example 2](/example/image/2.png)](/example/image/2.png)

- Example 3 - Usage in a framework (Zend Framework 3):

```
//inside public/index.php
include __DIR__ . '/../vendor/autoload.php';

$filter = new \Viscle\Filter\NamespaceWhitelist();
$filter->classes = ['Application', 'Album', 'Viscle\Example'];

\Viscle\Viscle::capture($filter);

...

//inside your controller/action

//just an example to show in graph
$a = new \Viscle\Example\A;
$a->perform();

echo \Viscle\Viscle::render();
```

It will render like following:

[![Example 3](/example/image/3.png)](/example/image/3.png)

Requirements
------------

[](#requirements)

PHP &gt;= 7.1

Xdebug &gt;= php\_xdebug-2.7.0alpha1-7.1

License
-------

[](#license)

Viscle is released under the MIT Licence. Check out LICENSE file for more details.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

2906d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31214821?v=4)[Vitor Meneguetti](/maintainers/meneguetti)[@meneguetti](https://github.com/meneguetti)

---

Top Contributors

[![meneguetti](https://avatars.githubusercontent.com/u/31214821?v=4)](https://github.com/meneguetti "meneguetti (9 commits)")

---

Tags

life cyclelifecyclevisclevisual lilfecycle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/meneguetti-viscle/health.svg)

```
[![Health](https://phpackages.com/badges/meneguetti-viscle/health.svg)](https://phpackages.com/packages/meneguetti-viscle)
```

###  Alternatives

[raoul2000/yii-simple-workflow

A simple workflow engine for Yii 1

278.2k](/packages/raoul2000-yii-simple-workflow)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
