PHPackages                             ddelrio1986/superheroes - 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. ddelrio1986/superheroes

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

ddelrio1986/superheroes
=======================

Get superhero names

1.0.0(10y ago)2400MITPHPPHP &gt;=5.6.0

Since Jan 26Pushed 10y ago1 watchersCompare

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

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

superheroes [![Build Status](https://camo.githubusercontent.com/6c6125991de3907ee451747559dc6406e3f4f06c0de63f9ede61d547959defda/68747470733a2f2f7472617669732d63692e6f72672f6464656c72696f313938362f73757065726865726f65732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ddelrio1986/superheroes) [![Coverage Status](https://camo.githubusercontent.com/fd4ff5767026da4e837f6752015e8aa173b1a86ba6e361fd7077b5f16665fc45/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6464656c72696f313938362f73757065726865726f65732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ddelrio1986/superheroes?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/28f6b87dfc799052bfe5cc5acd762a299934c8fbfa523d11c89c07414c544891/68747470733a2f2f706f7365722e707567782e6f72672f6464656c72696f313938362f73757065726865726f65732f762f737461626c65)](https://packagist.org/packages/ddelrio1986/superheroes) [![Total Downloads](https://camo.githubusercontent.com/9e123122bed3f1e23c5a9e714383092186109bb4da1a057408fdb105af8405c2/68747470733a2f2f706f7365722e707567782e6f72672f6464656c72696f313938362f73757065726865726f65732f646f776e6c6f616473)](https://packagist.org/packages/ddelrio1986/superheroes) [![Latest Unstable Version](https://camo.githubusercontent.com/7656273e1647b098e4f77797e0c8abd8beb0079a9a4a5eee5d0d050f523937be/68747470733a2f2f706f7365722e707567782e6f72672f6464656c72696f313938362f73757065726865726f65732f762f756e737461626c65)](https://packagist.org/packages/ddelrio1986/superheroes) [![License](https://camo.githubusercontent.com/103bd15e40c5d4763ee94ea50e78bcaae9483a0083859f8578ca1457e3bc156c/68747470733a2f2f706f7365722e707567782e6f72672f6464656c72696f313938362f73757065726865726f65732f6c6963656e7365)](https://packagist.org/packages/ddelrio1986/superheroes)
==============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#superheroes------)

> Get superhero names

Packagist: [ddelrio1986/superheroes](https://packagist.org/packages/ddelrio1986/superheroes)

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

[](#installation)

```
$ composer require ddelrio1986/superheroes

```

Example Usage
-------------

[](#example-usage)

```
use DDelrio1986\Superheroes\Superheroes;

$superheroes = new Superheroes;

$superheroes->random();
//=> 'Spider-Ham'
```

Quick API Reference
-------------------

[](#quick-api-reference)

```
$superheroes->all
```

Type: `array`

Superhero names in alphabetical order.

```
$superheroes->random()
```

Type: `function`

Random superhero name.

CLI Usage
---------

[](#cli-usage)

```
$ ./bin/ddelrio1986-superheroes.php
Spider-Ham

```

```
$ ./bin/ddelrio1986-superheroes.php -a|--all
3-D Man
A-Bomb
...

```

Running Unit Tests
------------------

[](#running-unit-tests)

```
phpunit

```

License
-------

[](#license)

MIT © [Daniel Del Rio](http://github.com/ddelrio1986)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3756d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c23397ce964764e51a729ef04c924908ebdecb20fd7d030d4588e7a8cd339f8?d=identicon)[ddelrio1986](/maintainers/ddelrio1986)

---

Top Contributors

[![ddelrio1986](https://avatars.githubusercontent.com/u/58251?v=4)](https://github.com/ddelrio1986 "ddelrio1986 (37 commits)")

---

Tags

marvelnamessuperheros

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ddelrio1986-superheroes/health.svg)

```
[![Health](https://phpackages.com/badges/ddelrio1986-superheroes/health.svg)](https://phpackages.com/packages/ddelrio1986-superheroes)
```

###  Alternatives

[watson/nameable

Format names of users into full, familiar and abbreviated forms

299.7k](/packages/watson-nameable)[dragon-code/laravel-route-names

Automatic generation of route names

259.2k1](/packages/dragon-code-laravel-route-names)[mihanentalpo/fio-analyzer

Analyze user input string, and split it into Russian first name, second name and last name

1422.9k](/packages/mihanentalpo-fio-analyzer)[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)[laravel-frontend-presets/inertiajs

A Laravel frontend preset to get you up and running with Inertia.js

1464.5k](/packages/laravel-frontend-presets-inertiajs)[dominicwatts/faker

Console based fake data generator - just generate what you need

413.5k](/packages/dominicwatts-faker)

PHPackages © 2026

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