Skip to content

Add RealWorld example for the State pattern #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

drissboumlik
Copy link
Contributor

@drissboumlik drissboumlik commented Jul 12, 2025

I'd like to share a real-world example of the State pattern in PHP.
While this isn't originally my experience, the implementation was inspired by Jake Bennett's talk "State Machines" from Laracon
Link : https://www.youtube.com/watch?v=1A1xFtlDyzU

@neochief
Copy link
Contributor

Hey Driss! Sorry for the late reply. Yeah, this is a great example, thanks for the PR!

@neochief neochief merged commit f27b3ec into RefactoringGuru:main Jul 26, 2025
@drissboumlik
Copy link
Contributor Author

Hey Alexander,

No worries. thank you for the reply. I'm glad to contribute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants