Introducing: Treb - A simple framework for PHP
I announced this on twitter yesterday, but figured I should blog about it a bit more today.
As of yesterday, I published a new PHP Framework on github: Treb
Yeah, I know, the world really doesn't need another PHP Framework, there are tons of them out there.A So why did I create this new one?A A Well honestly, I didn't set out to do so.A A You see at numerous previous jobs: Digg, TripAdvisor, HiiDef, mojoLive - I'd ended up building or extending custom frameworks for those specific applications.
In all of those cases, a a€˜stock' framework just didn't end up making sense.A They locked you into specific ways of doing things, which may not have been what you needed to do in order to scale.A While at the same time, while they provided a lot of structure, they didn't provide certain features that I felt were necessary (such as built-in write through data caching).
So in each case, something custom got built from scratch (or something existing got customized).A A After doing this essentially 4 times.A I was tired A A With mojoLive I got the ability to take the framework that I'd written for mojoLive, to scrub it of anything specific to mojoLive, and open source it.A So I did.
The moral of the story?A It's just that in the future now, when I need to start a new custom framework for another site, I don't have to start from scratch again.A I can start from Treb now that it's open sourced.A A Granted right now it's very rough as it was part of a bigger system and was just ripped out.A But it's a good starting point.
Will anyone else end up using it?A I dunno, and that wasn't the goal of releasing it.A I will say that of others that have used this, they enjoyed it, in it's simplicity.A And new coders to mojoLive were committing code against it on the first day.A So that's gotta say something.
If you'd like to know more, you can read up about it on Treb's home, and start reading it's documentation as well.
NOTE: I've already been called out for Treb not having tests.A No, it doesn't, I wouldn't argue if it began acquiring them, but it doesn't have tests written for it because it's a child of a rapid-startup-culture web application.A I plan on writing up another blog post about that soon.
Filed under: PHP, Tech, Treb Tagged: framework, PHP, Treb