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

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

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

topology library for php fann

v1.0.0(9y ago)062[2 issues](https://github.com/24HOURSMEDIA/php-fann-topology-core/issues)PHPPHP &gt;=5.6

Since Dec 17Pushed 9y agoCompare

[ Source](https://github.com/24HOURSMEDIA/php-fann-topology-core)[ Packagist](https://packagist.org/packages/24hoursmedia/php-fann-topology-core)[ RSS](/packages/24hoursmedia-php-fann-topology-core/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

php-fann-topology-core
======================

[](#php-fann-topology-core)

[![Code Climate](https://camo.githubusercontent.com/8e460101c9fb8a9d2368e9be5fbd40573111139a64cde5883e6b6c0b03720cff/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f3234484f5552534d454449412f7068702d66616e6e2d746f706f6c6f67792d636f72652f6261646765732f6770612e737667)](https://codeclimate.com/github/24HOURSMEDIA/php-fann-topology-core)[![Test Coverage](https://camo.githubusercontent.com/8a53c6ec559a96e385ffd6464c6ffcc3be63f8b2c8201b32408e2547ff74cfcb/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f3234484f5552534d454449412f7068702d66616e6e2d746f706f6c6f67792d636f72652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/24HOURSMEDIA/php-fann-topology-core/coverage)

create a topological representation of the neurons and connections in a FANN network

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

[](#installation)

using composer:

```
composer require 24hoursmedia/php-fann-topology-core

```

Example
-------

[](#example)

```
require('vendor/autoload.php');
use T4\Fann\Topology\Core\Topology;
$ann = fann_create_standard(4, 2, 2, 5, 1);
fann_set_activation_function_hidden($ann, FANN_SIGMOID_SYMMETRIC);
fann_set_activation_function_output($ann, FANN_SIGMOID_SYMMETRIC);
$filename = dirname(__FILE__) . "/xor.data";
fann_train_on_file($ann, $filename, 100000, 0, 0.0001);

$topology = Topology::createFromFann($ann);
$inputLayer = $topology->getLayers()[0];
$firstInputNeuron = $inputLayer->getNeurons()[0];
$connections = $firstInputNeuron->getConnections();
foreach ($connections as $conn) {
    echo 'neuron ' . $conn->getFromNeuron()->getIndex() . ' is connected to neuron ' .
        $conn->getToNeuron()->getIndex() . ' with weight ' . $conn->getWeight() .
        PHP_EOL;
}
```

Output:

```
neuron 0 is connected to 3 with weight -0.77117919921875
neuron 0 is connected to 4 with weight -3.1356239318848

```

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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

Unknown

Total

1

Last Release

3527d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[ergebnis/agent-detector

Provides a detector for detecting the presence of an agent.

1712.5M9](/packages/ergebnis-agent-detector)

PHPackages © 2026

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