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

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

a1essandro/perlin-noise
=======================

Algorithm for generating heightmaps

v1.2.0(9y ago)125.6k—0%5[2 PRs](https://github.com/A1essandro/perlin-noise-generator/pulls)MITPHPPHP &gt;=5.3.0

Since Dec 20Pushed 2y ago2 watchersCompare

[ Source](https://github.com/A1essandro/perlin-noise-generator)[ Packagist](https://packagist.org/packages/a1essandro/perlin-noise)[ RSS](/packages/a1essandro-perlin-noise/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (5)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

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

3646d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f54bc66315e4f47b9b435c908356a913db282dd15994a049ac37e217703fdf3b?d=identicon)[A1essandro](/maintainers/A1essandro)

---

Top Contributors

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

---

Tags

algorithmheightmapheightmapsperlin-noise

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[websharks/html-compressor

Combines &amp; compresses CSS/JS/HTML code.

407.1k1](/packages/websharks-html-compressor)[limewell/laravel-make-extender

This package helps to generate and autoload custom helpers, It can generate multilevel helpers in the context of the directory.

366.8k](/packages/limewell-laravel-make-extender)[linkorb/autotune

Tune your autoloader

177.0k17](/packages/linkorb-autotune)[jayanka/patch-manager

A magento extension to maintain data patches

232.4k](/packages/jayanka-patch-manager)[tapp/filament-progress-bar-column

Add beautiful, color-coded progress bars to your Filament table columns. Perfect for inventory, tasks, storage, and any progress metrics without writing custom views.

124.5k](/packages/tapp-filament-progress-bar-column)

PHPackages © 2026

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