ddelrio1986/superheroes

Get superhero names

1.0.0 2016-01-26 17:48 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:04:39 UTC


README

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