PHPackages                             skyraptor/densitywaves-php - 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. skyraptor/densitywaves-php

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

skyraptor/densitywaves-php
==========================

DensityWaves PHP - Generate star positions based on density wave theory.

0.0.1(4y ago)04BSD-2-ClausePHP

Since Mar 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/bumbummen99/densitywaves-php)[ Packagist](https://packagist.org/packages/skyraptor/densitywaves-php)[ RSS](/packages/skyraptor-densitywaves-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

DensityWaves PHP
================

[](#densitywaves-php)

From Wikipedia:

> "Density wave theory or the Lin–Shu density wave theory **is a theory proposed by C.C. Lin and Frank Shu in the mid-1960s to explain the spiral arm structure of spiral galaxies.**"

This is a re-implementation of the [beltoforion article &amp; project](https://github.com/beltoforion/Galaxy-Renderer).

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

[](#installation)

You can install this package using composer:

```
composer require skyraptor/densitywaves-php

```

Usage
-----

[](#usage)

Simply inizalize the `Galaxy` with the appropiate parameters. You can then age it as you desire and access the stars with `getStars()`.

Example:

```
use DensityWaves\Galaxy;

...

$radius = 1000;
$galaxy = new Galaxy($radius, round($radius * 0.25), 0.00015, 1.2, 1.02, 1, 40);
$galaxy->age();
```

You **will** have to play with the parameters to get good results. Check the browser version for an idea of how it does work: [Procedural generation of spiral Galaxies ](https://beltoforion.de/en/spiral_galaxy_renderer/spiral-galaxy-renderer.html)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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

1528d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/509a5baf8d7d8f7ae8c5b569ee81b1d04ed6af1af625696777e51e997ff9a685?d=identicon)[bumbummen99](/maintainers/bumbummen99)

---

Tags

phptheorywavedensitywavesdensity wave theory

### Embed Badge

![Health badge](/badges/skyraptor-densitywaves-php/health.svg)

```
[![Health](https://phpackages.com/badges/skyraptor-densitywaves-php/health.svg)](https://phpackages.com/packages/skyraptor-densitywaves-php)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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