I’m considering Hanami for a new project. To avoid too much refactoring in the future, I’d like to use the repository pattern and keep it as close as possible to what it will be in version 2.2.
Check out these projects for current approaches to implementing persistence in Hanami: DecafSucks and Hemo.
I’ve written a three-part blog post explaining the approach used in DecafSucks, but it still needs error-checking and some polish. I’ll post back here when it’s published . . .