a_bertrand Posted March 27, 2011 Share Posted March 27, 2011 Since a couple of month I'm annoying everyone in the chat with LINQ. LINQ is a "language" or basically a library which allows to queries data from difference sources (memory, XML, DB) all the same way or nearly. LINQ is normally a .NET specific thing and, I must say one of the most incredible feature I ever saw in a language. Yet why do I dare to post such thing in a PHP section? Easy, I was wondering how cool / doable would it be to have the same kind of feature yet for PHP, and guess what? I'm not the only one out there to think that LINQ is so cool that it should exists inside PHP as well: http://blog.maartenballiauw.be/post/2009/01/29/PHPLinq-040-released-on-CodePlex!.aspx and http://www.phplinq.net Now what is it exactly? Well it's a library for PHP which allows you to query data from within array, XML files or database tables all the same way, and directly retrieve PHP objects which allow you to then modify the object / insert new data / delete them as it works with the Zend_Db_Table under for tables. Yet, let me clarify a few points: - I never tested the library myself. No clues how good it works. - It has certainly quiet an high impact on speed as PHP is not compiled and even on C# it has some impact even if it's very small then compared to the slow down due to the database itself. - It's cool, it's fun, yet I'm not 100% convinced I would use that for any real life project. I would however check it. To see how others C# / PHP developers react to it: http://www.mikeborozdin.com/post/Is-PHPLinq-As-Cool-As-Real-LINQ.aspx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.