88,190 Installs and Counting! Get Sparks Now!
Hey! Keep up to date with the project through its beta and public launch by following @getsparks.
Tweet
A Quick Looks At Sparks (EllisLab Official Post)
March 11, 2012
from: codeigniter.com
The Top Sparks of 2011
December 31, 2011
from: codefury.net
CodeIgniter Starter Project − A Starting Point for Any CI Dev
December 12, 2011
from: github.com
NetTuts+ Tutorial for GetSparks
November 24, 2011
from: net.tutsplus.com
A query builder library for interacting with MongoDB
| Contributor | : alexbilbie |
| : Log in to view | |
| Author Website | : http://www.httpster.org |
| Spark Website | : https://github.com/alexbilbie/codeigniter-mongodb-library |
| Repository Type | : git |
| Number of Installs | : 719 |
php tools/spark install -v0.5.2 mongodb
Or download this version manually:
Get mongodb-0.5.2.zip
This is an active record inspired CodeIgniter library to integrate a MongoDB database into your application.
You can now autoload the library or include it in one of your controllers at run time.
You can interact with the database using many of the active record functions that CodeIgniter provides.
$this->mongo_db
->where_gte('age', 18)
->where_in('country', array(
'England',
'Scotland',
'Wales',
'Ireland'
))
->where(array(
'likes_whisky' => TRUE
))
->get('people');
The result will be an object containing matching documents.
select Get select fields from returned documentswhere Where section of the querywhere_in Where something is in an array of somethingwhere_in_all Where something is in all of an array of * somethingwhere_not_in Where something is not in array of somethingwhere_gt Where something is greater than somethingwhere_gte Where something is greater than or equal to somethingwhere_lt Where something is less than somethingwhere_lte Where something is less than or equal to somethingwhere_not_equal Where something is not equal to somethingorder_by Order the resultslimit Limit the number of returned resultsinsert Insert a new document into a collectioninc Increments the value of a fielddec Decrements the value of a fieldset Sets a field to a valueunset_field Unsets a fieldaddtoset Adds a value to an array if doesn't existpush Pushes a value into an array fieldpop Pops a value from an array fieldpull Removes an array by the value of a fieldrename_field Rename a fieldupdate Update a single document in a collectionupdate_all Update all documents in a collectiondelete Delete a single document in a collectiondelete_all Delete all documents in a collectionset_index Creates a new indexdelete_index Deletes an indexdrop_db Drops a databaseswitch_db Switch to a different databasedrop_collection Drops a collection
php tools/spark install -v0.5.1 mongodb
Or download this version manually:
Get mongodb-0.5.1.zip
php tools/spark install -v0.4.8 mongodb
Or download this version manually:
Get mongodb-0.4.8.zip
php tools/spark install -v0.4.7 mongodb
Or download this version manually:
Get mongodb-0.4.7.zip