PHPackages                             soul-was-here/faker-planet - 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. soul-was-here/faker-planet

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

soul-was-here/faker-planet
==========================

Faker provider for generating fake Planets

1.0.0(2y ago)07WTFPLPHPPHP ^8.1

Since Aug 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/soul-was-here/faker-planet)[ Packagist](https://packagist.org/packages/soul-was-here/faker-planet)[ RSS](/packages/soul-was-here-faker-planet/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Planet Provider for Faker
-------------------------

[](#planet-provider-for-faker)

This package will allow [Faker](https://github.com/FakerPHP/Faker) to generate planet description including name, type, size, radius, gravity, temperature and water prevalence. There are also several planet templates. See the [Usage](#usage) section for examples.

This package ignores some realistic scientific details (such as scientific planet names) and used to create an interesting background for your story or game etc.

Install
-------

[](#install)

To install, use composer:

```
composer require soul-was-here/faker-planet
```

Usage
-----

[](#usage)

```
$faker = \Faker\Factory::create();
$faker->addProvider(new \Faker\Provider\Planet($faker));

/*
 * Generate planet name.
 */
echo $faker->planetName(); //Clenai

/*
 * Generate planet type.
 */
echo $faker->planetType(); //Gas Giant

/*
 * Generate planet size based on Earth's radius (R / R Earth).
 * Between 0.4x Earth radius and 15x Earth radius.
 */
echo $faker->planetSize(); //1.5

/*
 * Generate planet radius.
 * Between 0.4x Earth radius (2548 km) and 15x Earth radius (95565 km).
 */
echo $faker->planetRadius(); // 5885

/*
 * Generate planet gravity based on Earth's gravity (G / G Earth).
 * Between 0.5x Earth gravity and 400x Earth gravity.
 */
echo $faker->planetGravity(); // 1.8

/*
 * Generate planet average temperature.
 * Between -250°C and 1100°C
 */
echo $faker->planetTemperature(); // 230

/*
 * Generate prevalence of water in percent.
 * Between 0% and 100%
 */
echo $faker->planetWaterPrevalence(); // 25

/*
 * Generate an array representation of an Ice Giant planet.
 */
echo $faker->planetIceGiant();

//[
//    'planetType' => 'Ice Giant',
//    'planetSize' => 3.59,
//    'planetRadius' => 22871,
//    'planetGravity' => 201.04,
//    'planetTemperature' => 340,
//    'planetWaterPrevalence' => 9
//]

// You can choose any of these predefined planet types:

$faker->planetIceGiant();
$faker->planetDesert();
$faker->planetEarthLike();
$faker->planetGasGiant();
$faker->planetHumid();
$faker->planetIceGiant();
$faker->planetIce();
$faker->planetRockyExtremeTemperatures();
$faker->planetRockyNoAtmosphere();
$faker->planetRockyFurnace();
$faker->planetRocky();
$faker->planetToxic();
$faker->planetWaterWorld();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

998d ago

### Community

Maintainers

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

---

Top Contributors

[![soul-was-here](https://avatars.githubusercontent.com/u/17813262?v=4)](https://github.com/soul-was-here "soul-was-here (4 commits)")

---

Tags

fakerproviderplanet

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/soul-was-here-faker-planet/health.svg)

```
[![Health](https://phpackages.com/badges/soul-was-here-faker-planet/health.svg)](https://phpackages.com/packages/soul-was-here-faker-planet)
```

###  Alternatives

[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2138.6M24](/packages/mbezhanov-faker-provider-collection)[mmo/faker-images

Different images provider for Faker

59370.3k6](/packages/mmo-faker-images)[pelmered/fake-car

Fake-Car is a Faker provider that generates fake car data for you.

1271.2M2](/packages/pelmered-fake-car)[bluemmb/faker-picsum-photos-provider

picsum.photos provider for Faker

31225.7k1](/packages/bluemmb-faker-picsum-photos-provider)[aalaap/faker-youtube

Faker provider for generating fake YouTube video URLs

2288.6k](/packages/aalaap-faker-youtube)[smknstd/fakerphp-picsum-images

Alternative image provider for fakerphp using picsum.photos

45218.1k3](/packages/smknstd-fakerphp-picsum-images)

PHPackages © 2026

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