Skip to content
/ Dont Public

🚫 Small set of defensive programming utilities/traits for PHP

License

Notifications You must be signed in to change notification settings

Roave/Dont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

41d5916 Â· Jul 11, 2023
Dec 19, 2022
Dec 22, 2021
Feb 9, 2021
Feb 9, 2021
Dec 7, 2020
Oct 11, 2016
Feb 9, 2021
Apr 14, 2023
Jul 11, 2023
Oct 25, 2018
Dec 7, 2020
Oct 31, 2022

Repository files navigation

Don't

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

Infection MSI Packagist Packagist

Installation

composer require roave/dont

Usage

The package currently provides the following traits:

Usage is straightforward:

use Dont\DontSerialise;

class MyClass
{
    use DontSerialise;
}

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