Hacker News new | past | comments | ask | show | jobs | submit login

It's great to see so many simple libraries taking advantage of closures in PHP cropping up. For comparison, here's my take on collections in PHP, inspired originally as much by Underscore.js as it was by Doctrine's version: https://github.com/xi-project/xi-collections

Unfortunately, there's not much in the way of documentation as of now, but a look at the API should prove illuminating. For starters, the API is meant to be inherently both chainable and extensible with room for implementations based on eg. SPL classes. The idea is for the collections not to be throwaways for intermediate processing but to instead grow into a part of your application's internal API. Although the code should be in perfect working order (we're using it in one production system currently), the concept is a bit experimental at this stage. I'd very much appreciate any comments you have.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: