j-arens / container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple PHP versions in CI

szepeviktor opened this issue · comments

Good idea, I'll get this setup. Probably gonna keep 7.1 though because I plan on using this in WordPress projects that likely won't be on the latest php yet.

:) Actually I'm currently trying to build it into WordPress.
Could you show me your implementation?

I'm not really doing anything special to integrate with WordPress, just wanted to have my own lightweight container 🤷‍♂️. This implementation is based loosely around Laravel's service container though, so it follows some of the same rules. I think the best public example I have would be in this older project. It's actually using this container but they are very similar.