PHPackages                             24hoursmedia/php-fann-topology-visualization - 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. 24hoursmedia/php-fann-topology-visualization

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

24hoursmedia/php-fann-topology-visualization
============================================

visualizations for a FANN topology

019

Since Dec 17Compare

[ Source](https://github.com/24HOURSMEDIA/php-fann-topology-visualization)[ Packagist](https://packagist.org/packages/24hoursmedia/php-fann-topology-visualization)[ RSS](/packages/24hoursmedia-php-fann-topology-visualization/feed)WikiDiscussions Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

FANN neural network visualizations
==================================

[](#fann-neural-network-visualizations)

[![Code Climate](https://camo.githubusercontent.com/2e0a8a05ab61c4ad4cfc347140838523723258e0fc5375362bcdc1edfc95baec/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f3234484f5552534d454449412f7068702d66616e6e2d746f706f6c6f67792d76697375616c697a6174696f6e2f6261646765732f6770612e737667)](https://codeclimate.com/github/24HOURSMEDIA/php-fann-topology-visualization)[![Test Coverage](https://camo.githubusercontent.com/7c1cdee1c9b406db4974d16e00e44dcf7ff584401af2a3a51560edd1fc9ae7d9/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f3234484f5552534d454449412f7068702d66616e6e2d746f706f6c6f67792d76697375616c697a6174696f6e2f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/24HOURSMEDIA/php-fann-topology-visualization/coverage)

This component visualizes a FANN neural network using D3JS. The visualization shows nodes and their connections to eachother.

Negative connections are shown in red, positive in green. The thickness and brightness of the connection is an indicator of it's strength.

To create a visualization, you can configure a visitor that can visit the FANN topology:

```
use T4\Fann\Topology\Core\Topology;
use T4\Fann\Topology\Core\Neuron;
use T4\Fann\Topology\Visualization\D3J\D3JsNeuronVisitor;

$ann = ....; // your fann neural network resource
$topology = Topology::createFromFann($ann);

$visitor = D3JsNeuronVisitor();

// configure visitor here; here the node is given a name
$visitor->setNamingCallback(function(Neuron $n) {
    return 'node #' . $n;
});

// visit and get the collected data for configuring d3js
foreach ($topology->getNeurons() as $k => $neuron) {
    $neuron->accept($visitor);
}
$data = $visitor->getJsonData();

// @TODO: include in a template
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4735950?v=4)[24HOURSMEDIA](/maintainers/24HOURSMEDIA)[@24HOURSMEDIA](https://github.com/24HOURSMEDIA)

### Embed Badge

![Health badge](/badges/24hoursmedia-php-fann-topology-visualization/health.svg)

```
[![Health](https://phpackages.com/badges/24hoursmedia-php-fann-topology-visualization/health.svg)](https://phpackages.com/packages/24hoursmedia-php-fann-topology-visualization)
```

###  Alternatives

[sebdesign/laravel-sri

Subresource Integrity (SRI) package for Laravel

2339.7k](/packages/sebdesign-laravel-sri)

PHPackages © 2026

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