Posts

Showing posts with the label phongo

The Frills

I don't like ORMs . I really don't. It's not just because all of the ORM frameworks I've seen make mockery out of performance needs, but they also tend to be extremely over-engineered, which makes me want to cry. I'd wager that most people using ORMs are actually solving the wrong problem with the wrong solution, simply because there wasn't a better alternative for their data-modeling needs and the benefits of adopting an ORM outweighed its inherent problems. It's like driving a gasoline-hungry car. You say that you care about its MPG rating, but you are still wasting a lot of gas without ever looking back. It is just a cost of living. Or insurance: You know you can save 15% or more... but you don't. You've accepted that bi-annual rip-off as cost of living. Just like using an ORM, you have accepted the pain as cost of living. Well, I don't :) ODS - Object Document Serializer The new MongoDB PHP driver includes an experimental ODS inter...

Next Generation MongoDB Driver for PHP!

For the past few months I've been working on a "next-gen" MongoDB driver for PHP -- codename " phongo ". The aim was to build a new PHP extension ontop of the mongoc and libbson libraries to reduce maintenance of the extension itself and focus more on providing the ecosystem with improved support and libraries. The new driver is available on PECL (called "mongodb", surprisingly enough) . It doesn't include any of the bells and whistles found in the previous "mongo" driver. It doesn't include any `group` or `count` command helpers, and you won't find any Collection or Database objects; however, it really doesn't need any of these things. All it has is simplicity. You can execute a command of your choosing. You can execute a query . You can execute a write . That's really it (as with everything, there are certain exceptions). Oh, it is also very, very fast. What's the Point? Most developers interact with datab...