2017 © Pedro Peláez
 

library kapow

simple base for customizing exceptions

image

siwayll/kapow

simple base for customizing exceptions

  • Thursday, February 22, 2018
  • by Siwayll
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Kapow !

FOSSA Status Build Status Coverage Status, (*1)

Simple exception with variables in it., (*2)

Quick examples

Create an Exception, (*3)

use Siwayll\Kapow\Exception as Kapow;
use Siwayll\Kapow\Level;
...

class DodgeSpecialAttack extends Kapow
{
    protected $superVillain;

    protected $superHero;

    protected $specialAttack;

    /**
     * Message of the exception
     */
    public $message = 'The super villain {superVillain} has dodge {superHero} super hero special attack {specialAttack}';

    public $code = Level::CRITICAL;

    public function __construct(Mutant $superVillain, Mutant $superHero, string $specialAttack)
    {
        $this->superVillain = $superVillain->getName();
        $this->superHero = $superHero->getName();
        $this->specialAttack = $specialAttack;
    }
}

Throw it !, (*4)

throw new DodgeSpecialAttack($villan, $hero, 'ultra smash 2');

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request

Running the tests

make install
./bin/atoum

License

MIT, (*5)

FOSSA Status, (*6)

The Versions

22/02 2018

dev-master

9999999-dev

simple base for customizing exceptions

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Siwayll

28/12 2017

1.2

1.2.0.0

simple base for customizing exceptions

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Siwayll

28/12 2017

1.1

1.1.0.0

simple base for customizing exceptions

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Siwayll

26/12 2017

1.0.2

1.0.2.0

simple base for customizing exceptions

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Siwayll

26/12 2017

1.0.1

1.0.1.0

simple base for customizing exceptions

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Siwayll

26/12 2017

1.0

1.0.0.0

simple base for customizing exceptions

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Avatar Siwayll