PHPackages                             aimuc/perlin-noise - 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. aimuc/perlin-noise

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

aimuc/perlin-noise
==================

Algorithm for generating heightmaps

06PHP

Since Nov 11Pushed 7mo agoCompare

[ Source](https://github.com/AiMuC/perlin-noise-generator)[ Packagist](https://packagist.org/packages/aimuc/perlin-noise)[ RSS](/packages/aimuc-perlin-noise/feed)WikiDiscussions master Synced today

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

perlin-noise-generator
======================

[](#perlin-noise-generator)

[![Build Status](https://camo.githubusercontent.com/278b0c7faf2167d06529012e886ed76026bde017c0558dcf271b3767cd937c65/68747470733a2f2f7472617669732d63692e6f72672f4131657373616e64726f2f7065726c696e2d6e6f6973652d67656e657261746f722e737667)](https://travis-ci.org/A1essandro/perlin-noise-generator) [![Coverage Status](https://camo.githubusercontent.com/af2763525ca5c0c352baf66f83d147fb1c1a7297f91bbb440db9bb52d3a7b892/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f4131657373616e64726f2f7065726c696e2d6e6f6973652d67656e657261746f722f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/A1essandro/perlin-noise-generator?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/6f676cc5ef10a91d321a2cf15e6ad6b11fe123279b0c4563f07fe1d0f2501ebd/68747470733a2f2f706f7365722e707567782e6f72672f6131657373616e64726f2f7065726c696e2d6e6f6973652f762f737461626c65)](https://packagist.org/packages/a1essandro/perlin-noise) [![Total Downloads](https://camo.githubusercontent.com/a6d084c21113aa06fae22fdf5020fd30a27d7ec08bd4deb37dec773cda63496e/68747470733a2f2f706f7365722e707567782e6f72672f6131657373616e64726f2f7065726c696e2d6e6f6973652f646f776e6c6f616473)](https://packagist.org/packages/a1essandro/perlin-noise) [![Latest Unstable Version](https://camo.githubusercontent.com/8745a6283b0b6f89ced2d60406fc2e33fe6d268287a0fd8236a3673adc0ae870/68747470733a2f2f706f7365722e707567782e6f72672f6131657373616e64726f2f7065726c696e2d6e6f6973652f762f756e737461626c65)](https://packagist.org/packages/a1essandro/perlin-noise) [![License](https://camo.githubusercontent.com/83d4569837dce1082da890cace0908a085049931bd5dfaa45ef7efb23eb903e8/68747470733a2f2f706f7365722e707567782e6f72672f6131657373616e64726f2f7065726c696e2d6e6f6973652f6c6963656e7365)](https://packagist.org/packages/a1essandro/perlin-noise)

Description
-----------

[](#description)

Heightmaps generator on PHP using perlin-noise algorithm.

See also [Diamond-Square algorithm](https://github.com/A1essandro/Diamond-And-Square) with the similar API.

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

[](#requirements)

This package is only supported on PHP 5.3 and above.

Installing
----------

[](#installing)

### Composer

[](#composer)

See more [getcomposer.org](http://getcomposer.org).

Execute command

```
composer require a1essandro/perlin-noise ~1.0

```

Usage
-----

[](#usage)

```
$generator = new MapGenerator\PerlinNoiseGenerator();
$generator->setSize(100); //heightmap size: 100x100
$generator->setPersistence(0.8); //map roughness
$generator->setMapSeed('value'); //optional
$map = $generator->generate();
```

#### or

[](#or)

```
$generator = new MapGenerator\PerlinNoiseGenerator();
$map = $generator->generate([
    PerlinNoiseGenerator::SIZE => 100,
    PerlinNoiseGenerator::PERSISTENCE => 0.8,
    PerlinNoiseGenerator::MAP_SEED => 'value'
]);
```

#### mixed:

[](#mixed)

```
$generator = new MapGenerator\PerlinNoiseGenerator();
$generator->setSize(100);
$map = $generator->generate([
    PerlinNoiseGenerator::PERSISTENCE => 0.8
]);
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 93.5% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31570354?v=4)[Z.](/maintainers/AiMuC)[@AiMuC](https://github.com/AiMuC)

---

Top Contributors

[![A1essandro](https://avatars.githubusercontent.com/u/4727083?v=4)](https://github.com/A1essandro "A1essandro (29 commits)")[![AiMuC](https://avatars.githubusercontent.com/u/31570354?v=4)](https://github.com/AiMuC "AiMuC (2 commits)")

### Embed Badge

![Health badge](/badges/aimuc-perlin-noise/health.svg)

```
[![Health](https://phpackages.com/badges/aimuc-perlin-noise/health.svg)](https://phpackages.com/packages/aimuc-perlin-noise)
```

###  Alternatives

[numphp/numphp

Mathematical PHP library for scientific computing

146114.0k1](/packages/numphp-numphp)

PHPackages © 2026

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