How to use Phalcon with Cassandra PDO?
At the moment Phalcon does not support Cassandra PDO - actually you are the first person to ever ask for it :)
You can however implement it yourself using these guides
http://docs.phalconphp.com/en/latest/reference/db.html#implementing-your-own-adapters
http://docs.phalconphp.com/en/latest/reference/db.html#implementing-your-own-dialects
Sample implementations can be found in our incubator repo here:
https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Db/Adapter
Related
Are there any advantages of using Phalcon's Framework PDO Adapter rather than the PHP's native PDO?
As there's seems to be a bit of advance functionality lacking in the Phalcon framework regarding PDO. Is it even worth it? Are there also dramatic performance differences that outweigh using PHP’s native PDO?
First of all, Databases adapters in Phalcon are created as a layer behind Phalcon\Mvc\Model. Thanks to this you have same interfaces for MySQL, Oracle or PosgreSQL Adapter.. Or for other adapter that you and me can create. That's why, as some kind of abstraction, Phalcon PDO is a little limited. It needs to share same logic with another types of RDBMS.
So if you don't want to use Models go with simple PHP PDO. But ask yourself where is the point of using MVC framework without Model layer :)
If you need more informations, follow this link: http://docs.phalconphp.com/pl/latest/reference/db.html
I am testing out PHP (Codeigniter) and Mongo (library by alexbilbie).
I a new to MongoDB so I got a few starting questions.
Is the library by Alex ready for production use? Can I use all mongodb features?
Is Alex library the best for Mongodb to Codeigniter use?
Do I have to use chained queries like this?
$this->mongo_db->where(array('firstname' => 'Michael'))->get('users');
I want each "part" on a separate row like this:
$this->mongo_db->select('*');
$this->mongo_db->from('users');
$this->mongo_db->where(array('firstname' => 'Michael'));
$query = $this->db->get();
Thank you!
$this->mongo_db->where(array('firstname' => 'Michael'))->get('users');
This is very similar to how the driver operates which is likely why it was chosen. The syntax you're looking for is basically an SQL variant. While possible, this is not generally how it's done with MongoDB as MongoDB doesn't use SQL.
Is the library by Alex ready for production use? Can I use all mongodb features?
In terms of production-readiness, you'll have to run your own sanity checks. MongoDB is backed by a well-funded company (10gen) and the PHP driver is maintained by them. So you should be good there.
For the library, all of the commits have been performed by one maintainer. It's probably in production being used by him, but the code has zero unit tests which is not a great sign.
The wiki would seem to imply that not all features are covered. He even has "maybe" written beside things like "add user".
Is Alex library the best for Mongodb to Codeigniter use?
This is very subjective, how many MongoDB+Codeigniter libraries have you found?
I am searching for DAL or ORM (Only ORM no MVC) Solution in PHP5 that can efficiently access SqlServer.
I am new to SqlServer. and I need to code a part of ASP.net website in PHP5.
I am currently Using QCodo However its codegenerator is making some problem with ASP's own tables (?? the ASP Guys told me that its for ASP's Membership Management. and these tables are handled internally).So I need some alternative solution that can work in this situation too !!
I've wrestled with this for quite a while and there are a few key points that you need to be aware of when it comes to SQL Server and PHP.
The driver of choice is currently the 2.0 release of the Microsoft Drivers for PHP for SQL Server. You can find more information about that driver here. I installed it using the Microsoft Web PI application.
As of this post, I know of only 1 ORM that supports this driver and that is Propel. That being said, Propel's generator has a dependancy upon Phing, which is best installed via PEAR. After wrestling with trying to get all of this working in Windows Server 2k8, I gave up and I'll just be writing my own wrapper or using the native PDO functions.
Several options, from more to less complex:
Doctrine
Propel
Zend_Db
The three of them support MSSQL through PDO's MSSQL Server extension.
I'm dealing with a client who has a legacy cPanel account where the php installation was not compiled with PDO nor Mysqli therefore my Zend_Db code is useless since it relies on either of those.
What library/class should I go with?
Depends what you're trying to achieve, it's possible to extend Zend Frameworks Zend_Db and add a mysql adapter. If this is too much trouble there are two library's that are probably worth looking at, the first depends on PEAR being installed and is MDB2 the other is ADOdb both offer OO DB abstraction and work with the mysql extension.
Meh - I just made my own class mimicking the exact methods and functionality of Zend_Db so I don't have to reprogram a lot of the code.
ezSQL (used by Wordpress)
Codeigniter database class
Is there any PHP web framework that works cleanly with the Firebird database?
By "cleanly", I mean out-of-the-box, no hacks/customization/self-made drivers.
So far, I've checked out frameworks like CodeIgniter & CakePHP, but their support for Firebird is vague or little at most.
The Zend Framework has a Firebird / Interbase DB adapter in incubation, so almost clean out of the box (and I've used it, and it worked like a charm for me). Mind you, there's an experimental PDO adapter for Firebird as well, and with that in place, any framework that use PDO is going to support it.
Zend Framework is working on Firebird-Interbase support. You can check out the progress here.
cake php supports it out of the box, http://mapopa.blogspot.com/2008/08/cakephp-tutorial-for-ubuntu-firebird.html
Zend Framework has support for Firebird and Interbase in the "Extras", you must download the "Full Package" instead of "Minimum Package".
I developed this Adapter, if you need some help, please subscribe and post in fw-db#lists.zend.com.
Instead of finding a framework that supports FireBird why not use a framework you are familiar with and use ADOBD lib for accessing a plethora of RBDMSs out of the box.
With Delphi for Php
or
TurboForPhp (OpenSource)
There is an YII framework out there
it's not completely out-of-the-box, but quite straight forward
https://github.com/robregonm/YiiFirebird - for Yii 1
https://github.com/edgardmessias/yii2-firebird - for Yii 2