Skip to content

ddelrio1986/superheroes

Repository files navigation

superheroes Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

Get superhero names

Packagist: ddelrio1986/superheroes

Installation

$ composer require ddelrio1986/superheroes

Example Usage

use DDelrio1986\Superheroes\Superheroes;

$superheroes = new Superheroes;

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

Quick API Reference

$superheroes->all

Type: array

Superhero names in alphabetical order.

$superheroes->random()

Type: function

Random superhero name.

CLI Usage

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

Running Unit Tests

phpunit

License

MIT © Daniel Del Rio

About

Get superhero names

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages