ColorSpeaker was inspired by the article Tests and types [mirror] that was posted to /r/PHP two days ago.
Its aim is to be an easy-to-use converter for different types of color models (RGB, CSS hex codes, HSV, HSL, etc.). It is also meant to be a real-world example of the power of Data Transfer Objects (DTOs). I specifically created this for one of my apprentices whom I taught DTOs to the night before I read the above article, and thought this would be a perfect project for showcasing DTOs.
I developed it in three distinct iterations:
- [v0.25 tag]: A virtually literal implementation of the article's one color DTO (
RGBSpeaker
andRGBColor
). This is a great place to start learning about DTOs and is meant to be used in conjunction with the article that inspired it. - **[[v0.50](https://github.c