PHPackages                             ryanhs/simple-genetic-algorithm - 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. ryanhs/simple-genetic-algorithm

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

ryanhs/simple-genetic-algorithm
===============================

simple genetic algorithm in PHP

1.0.3(11y ago)81513[1 issues](https://github.com/ryanhs/simple-genetic-algorithm/issues)MIT LicensePHP

Since Jan 8Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ryanhs/simple-genetic-algorithm)[ Packagist](https://packagist.org/packages/ryanhs/simple-genetic-algorithm)[ RSS](/packages/ryanhs-simple-genetic-algorithm/feed)WikiDiscussions master Synced 1mo ago

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

SimpleGeneticAlgorithm
======================

[](#simplegeneticalgorithm)

simple genetic algorithm in php, this package i create just for example how we can implement Genetic Algorithm in PHP if you inteserted just email me at  :-)

see interface/GeneticAlgorithm.php

Installation
============

[](#installation)

you can download this with composer (packagist)

```
composer require ryanhs/simple-genetic-algorithm
```

Example
=======

[](#example)

in example dir you can see:
---------------------------

[](#in-example-dir-you-can-see)

- example1.php
- example2.php
- example3.php

#### example 1

[](#example-1)

```

require '/vendor/autoload.php'; // composer autoload

$ga = new \SimpleGeneticAlgorithm\SimpleGeneticAlgorithm(array(
	'mutation' => 25, // 25%
	'goal' => 'Astari Ghaniarti',

	'delay' => 50, // ms, if debug is false, then delay forced to 0
	'debug' => true,
));

$ga->run(); // just run because debug is true

```

License
=======

[](#license)

MIT License

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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 ~0 days

Total

4

Last Release

4148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/997494249252a55820a37685bbbf51402f8582ade5bd73ce5c8776a08761eb67?d=identicon)[dr.web123](/maintainers/dr.web123)

---

Top Contributors

[![ryanhs](https://avatars.githubusercontent.com/u/7413776?v=4)](https://github.com/ryanhs "ryanhs (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ryanhs-simple-genetic-algorithm/health.svg)

```
[![Health](https://phpackages.com/badges/ryanhs-simple-genetic-algorithm/health.svg)](https://phpackages.com/packages/ryanhs-simple-genetic-algorithm)
```

###  Alternatives

[richjenks/stats

Statistics library for non-statistical people

23149.0k1](/packages/richjenks-stats)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)[joelwmale/livewire-quill

Easily add QuillJS with image support to any Laravel Livewire component.

1314.0k](/packages/joelwmale-livewire-quill)

PHPackages © 2026

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