2017 © Pedro Peláez
 

library dont

A small set of traits that can be used to prevent misuse of your objects

image

roave/dont

A small set of traits that can be used to prevent misuse of your objects

  • Friday, January 13, 2017
  • by Ocramius
  • Repository
  • 11 Watchers
  • 30 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Don't

roave/dont is a small PHP package aimed at enforcing good practices when it comes to designing defensive code., (*1)

Infection MSI Packagist Packagist, (*2)

Installation

composer require roave/dont

Usage

The package currently provides the following traits:, (*3)

Usage is straightforward:, (*4)

use Dont\DontSerialise;

class MyClass
{
    use DontSerialise;
}

serialize(new MyClass); // will throw an exception

The Versions

13/01 2017

dev-master

9999999-dev https://github.com/Roave/Dont

A small set of traits that can be used to prevent misuse of your objects

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

defensive programming strictness