Skip to content

andysnell/embracing-enums

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Embracing Enums

In January 2020, I delivered a conference talk titled "Enums: The Missing Data Type", which ended on a sour note: PHP probably would not have a native type for handling enumerations any time soon. To my surprise and delight, PHP 8.1 would release with a new "Enum" type less than two years later. Now we can really explore enumerations: both the theory behind them and the current PHP implementation. We’ll cover how representing things like statuses with enums improves immutability, readability, and type safety; the different types of enums available to us; and address the most common questions around the current limitations of enums.

Latest Slides

Embracing Enums Slide Deck Link: https://wkdb.yt/embracing-enums-slides

Note: For resources related to the original "Enum: PHP's Missing Data Type", see https://github.com/andysnell/enums-phps-missing-data-type

Resources

About

Links and Resources for "Embracing Enums" Talk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published