2017 © Pedro Peláez
 

library angry

A collection of traits to defend classes from mis-use.

image

gianarb/angry

A collection of traits to defend classes from mis-use.

  • Tuesday, December 27, 2016
  • by GianArb
  • Repository
  • 1 Watchers
  • 5 Stars
  • 9,248 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 20 % Grown

The README.md

Angry

Build Status, (*1)

This library is a collection of traits to stop mis-use of your classes. Based on @ocramius talk "Defensive Programming"., (*2)

Installation

composer install gianarb/angry "^1.0"

Getting Started

  • Block clone of a class use GianArb\Angry\Unclonable trait.
  • Block invoking of a class e.g. $className(); use GianArb\Angry\Uninvokable trait.
  • Block serialization of a class use GianArb\Angry\Unserializable trait.
  • Block all of the above use GianArb\Angry\ClassDefence trait.

Remember: the best way to write code is be lazy! http://blogoscoped.com/archive/2005-08-24-n14.html., (*3)

The Versions

27/12 2016

dev-master

9999999-dev

A collection of traits to defend classes from mis-use.

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires

27/12 2016

0.1.1

0.1.1.0

A collection of traits to defend classes from mis-use.

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires

09/11 2016

0.1.0

0.1.0.0

A collection of traits to defend classes from mis-use.

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires

26/10 2016

dev-gianarb-patch-2

dev-gianarb-patch-2

A collection of traits to defend classes from mis-use.

  Sources   Download

MIT

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires

26/10 2016

dev-gianarb-patch-1

dev-gianarb-patch-1

A collection of traits to defend classes from mis-use.

  Sources   Download

The Requires

  • php ^5.4 || ^7.0

 

The Development Requires