{"id":29723,"date":"2022-11-25T18:26:56","date_gmt":"2022-11-25T12:56:56","guid":{"rendered":"https:\/\/blazeclan.com\/diving-deep-mongodb-install-integrate-popular-yii-framework\/"},"modified":"2023-03-10T14:46:53","modified_gmt":"2023-03-10T09:16:53","slug":"diving-deep-mongodb-install-integrate-popular-yii-framework","status":"publish","type":"post","link":"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/","title":{"rendered":"Diving Deep into MongoDB &#8211; How to Install and Integrate with the Popular YII Framework"},"content":{"rendered":" Courtesy: blog.linkbook.co\n<p>In my previous blog I gave a brief overview about what is MongoDB, its features and my experience with MongoDB. Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. <a title=\"Learn more about YII here\" href=\"https:\/\/www.yiiframework.com\/about\/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"broken_link\">Yii <\/a>and the steps for installing MongoDB on Amazon EC2 instance.<\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Installing repository for MongoDB<\/strong><\/h3>\n<p>We can install mongoDB in our system using the repositories available for mongoDB installation. Repositories are available for both 32 bit as well as 64 bit operating system.<\/p>\n<p>To install mongoDB first of all we need to create a configuration file using the following command:<\/p>\n<p><span><em>\/etc\/yum.repos.d\/mongodb.repo<\/em><\/span><\/p>\n<p><!--more-->There are different repositories available for 32 Bit and 64 bit operating system. Choose the repositories according to your operating system. The configurations for both type of operating system are as follows:<\/p>\n<p><b>Configuration for a 32-bit operating system<\/b><\/p>\n<p><span><em>[mongodb]<\/em><\/span><\/p>\n<p><span><em>name=MongoDB Repository<\/em><\/span><\/p>\n<p><span><em>baseurl=https:\/\/downloads-distro.mongodb.org\/repo\/redhat\/os\/i686\/<\/em><\/span><\/p>\n<p><span><em>gpgcheck=0<\/em><\/span><\/p>\n<p><span><em>enabled=1<\/em><\/span><\/p>\n<p><b>Configuration for a 64-bit operating system<\/b><\/p>\n<p><span><em>[mongodb]<\/em><\/span><\/p>\n<p><span><em>name=MongoDB Repository<\/em><\/span><\/p>\n<p><span><em>baseurl=https:\/\/downloads-distro.mongodb.org\/repo\/redhat\/os\/x86_64\/<\/em><\/span><\/p>\n<p><span><em>gpgcheck=0<\/em><\/span><\/p>\n<p><span><em>enabled=1<b>&nbsp;<\/b><\/em><\/span><\/p>\n<p><b>Installing MongoDB on centOS<\/b><\/p>\n<p>In order to install MongoDB on centOS 6 you need to simply run the command below as root user or with sudo:<\/p>\n<p><span><em>yum install mongo-10gen mongo-10gen-server<\/em><\/span><\/p>\n<p>Once the command execution is complete, MongoDB is installed successfully and is ready to be used.<\/p>\n<p>The configuration file is found under:<\/p>\n<p><span><em>\/etc\/mongod.conf<\/em><\/span><\/p>\n<p>If you make any changes in the mongod.conf file then you have to restart the service using the following command:<\/p>\n<p><span>\/etc\/init\/mongod restart<\/span><\/p>\n<p>You can also start mongoDB using service command which is:<\/p>\n<p><span><em>service mongod start<\/em><\/span><\/p>\n<p>Be sure that the service has been set to start automatically; you can do this by issuing command:<\/p>\n<p><span><em>chkconfig mongod on<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Setting Up Rockmongo for MongoDB administration<\/strong><\/h3>\n<p>If you are looking for a phpadmin like tool for mongoDB, RockMongo is your best bet. It is one of the best PHP MongoDB Administrator tools available today. It lets you create databases, collections and insert and fetch documents using a web interface. In this post I will also help you set up RockMongo.<\/p>\n<h4 style=\"text-align: center;\">[&nbsp;MongoDB on the Clouds \u2013 An Introduction to an Evolution from RDBMS ]<\/h4>\n<p>&nbsp;<\/p>\n<h4><strong>Install Rockmongo for MongoDB on CentOS, RHEL, Debian, Ubuntu<\/strong><\/h4>\n<p>The prerequisites to install Rockmongo include mongo-php-driver, so let us install that first using the following commands:<\/p>\n<p><b>On CentOS, RHEL<\/b><\/p>\n<p><span><em>&gt; yum install php-devel git httpsd<\/em><\/span><\/p>\n<p><b>On Debian, Ubuntu<\/b><\/p>\n<p><em><span>&gt; apt-get install php5-dev apache2 git<\/span><\/em><\/p>\n<p>To pull the mongo-php-driver from git, perform the following:<\/p>\n<p><em><span>&gt; git clone https:\/\/github.com\/mongodb\/mongo-php-driver.git<\/span><\/em><\/p>\n<p><em><span>&gt; cd mongo-php-driver\/<\/span><\/em><\/p>\n<p><em><span>&gt; phpize<\/span><\/em><\/p>\n<p><em><span>&gt; .\/configure<\/span><\/em><\/p>\n<p><em><span>&gt; make all<\/span><\/em><\/p>\n<p><em><span>&gt; make install<\/span><\/em><\/p>\n<p>If the system is unable to execute the make command then install development tools using the following command:<\/p>\n<p><em><span>yum groupinstall &#8220;Development Tools&#8221;<\/span><\/em><\/p>\n<p><span style=\"color: #333333;\">Open php.ini and add the mongo extension so that it gets loaded<\/span><\/p>\n<p><b>On CentOS\/RHEL<\/b><\/p>\n<p><em><span>&gt; vi \/etc\/php.ini<\/span><\/em><\/p>\n<p><b>On Debian, Ubuntu<\/b><\/p>\n<p><em><span>&gt; vi \/etc\/php5\/apache2\/php.ini<\/span><\/em><\/p>\n<p>Append the following to it:<\/p>\n<p><span><em>extension=mongo.so<\/em><\/span><\/p>\n<p>Then download the latest rockmongo zip file and unzip it into root directory of the web server.<\/p>\n<p><span><em>&gt; wget <\/em><\/span><\/p>\n<p><b>On CentOS\/RHEL<\/b><\/p>\n<p><span><em>&gt; mv rockmongo-1.1.5.zip \/var\/www\/html\/<\/em><\/span><\/p>\n<p><b>On Debian, Ubuntu<\/b><\/p>\n<p><em><span>&gt; mv rockmongo-1.1.5.zip \/var\/www\/<\/span><\/em><\/p>\n<p><b>Unzip the package<\/b><\/p>\n<p><em><span>&gt; unzip rockmongo-1.1.5.zip<\/span><\/em><\/p>\n<p><span><b><span style=\"color: #333333;\">Restart apache server<\/span><br \/>\n<\/b><\/span><\/p>\n<p><b>On CentOS, RHEL<\/b><\/p>\n<p><span style=\"color: #000080;\"><em><span>&gt; \/etc\/init.d\/httpsd restart<\/span><br \/>\n<\/em><\/span><\/p>\n<p><b>On Debian, Ubuntu<\/b><\/p>\n<p><span><em>&gt; \/etc\/init.d\/apache2 restart<\/em><\/span><\/p>\n<p><b>Open the web browser and point it to<\/b><\/p>\n<p><span><em>https:\/\/ipaddress-or-domainname\/rockmongo\/index.php<\/em><\/span><\/p>\n<p><b>Login using<\/b><\/p>\n<p><span><em>username: admin<\/em><\/span><\/p>\n<p><span><em>password: admin<\/em><\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>Integrating MongoDB with YII Framework<\/strong><\/h3>\n<p>Yii is a high performance PHP framework and is popularly used for developing large scale web applications. Yii framework is widely used with MYSQL as a database, but Yii has many extensions available for using MongoDB as a backend database. To name a few of the commonly used MongoDB extensions are as follows:<\/p>\n<ol>\n<li><a title=\"Check it out\" href=\"https:\/\/www.yiiframework.com\/extension\/yiimongodbsuite\/\" target=\"_blank\" rel=\"noopener noreferrer\">yiimongodbsuite<\/a><\/li>\n<li><a title=\"Check it out\" href=\"https:\/\/www.yiiframework.com\/extension\/directmongosuite\/\" target=\"_blank\" rel=\"noopener noreferrer\">directmongosuite<\/a><\/li>\n<li><a title=\"Check it out\" href=\"https:\/\/www.yiiframework.com\/extension\/mongoyii\/\" target=\"_blank\" rel=\"noopener noreferrer\">mongoyii<\/a><\/li>\n<\/ol>\n<p><span style=\"line-height: 18px;\">&nbsp;We will see how mongoYii is integrated with Yii Framework.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h4><strong>Setting up the extension<\/strong><\/h4>\n<p>Once your Yii application skeleton is ready you can download the source code of extension. After downloading the source code keep the extension in your application structure most probably in the extension folder.<\/p>\n<p><em><span>protected\/extensions\/MongoYii<\/span><\/em><\/p>\n<p>After you have added the source code in your application, you have to make changes in the configuration file. Open the protected\/config\/main.php and place the following lines in it:<\/p>\n<pre>'mongodb' =&gt; array(\n    'class' =&gt; 'EMongoClient',\n    'server' =&gt; 'mongodb:\/\/localhost:27017',\n    'db' =&gt; 'db_name'\n),<\/pre>\n<p>You have to modify the file based on your database connection string.<\/p>\n<p>The Next step is to import the MongoYii extension into your application, for that you need to add following lines in your application:<\/p>\n<pre>'application.extensions.MongoYii.*',\n'application.extensions.MongoYii.validators.*',\n'application.extensions.MongoYii.behaviors.*',\n'application.extensions.MongoYii.util.*'<\/pre>\n<p>These are the basic steps for integration MongoYii with Yii Framework.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>Using EMongoDocument for MongoDB Collection<\/strong><\/h4>\n<p>Just like we have CActiveRecord for models of MySQL tables, in the similar manner we have EMongoDocument for using as models for MongoDB Collections. It is similar to CActiveRecord in the terms of querying using models for getting data from the collection.<\/p>\n<pre>class Employee extends EMongoDocument{\n\n    public $employeeName;\n\n    public $location;\n\n    public $address = array();\n\n    function collectionName(){\n        return 'employees';\n    }\n\n    public static function model($className=__CLASS__){\n        return parent::model($className);\n    }\n}<\/pre>\n<p>In the above example you can see a model for a collection &#8220;employees&#8221;. All the attributes of the collection are declared as a variable in the EMongoDocument. This model works in a similar manner as a MySQL model works. It also has<strong> find()<\/strong>, <strong>findOne()<\/strong> and <strong>findBy_id()<\/strong> method for querying using model.<\/p>\n<pre>Example:\n\nEmployee::model-&gt;model()-&gt;findOne(array('username'=&gt; 'demo123));\n\nEmployee::model-&gt;model()-&gt;find(array('location'=&gt; 'pune'));<\/pre>\n<p>Now you must have got an idea of how to use MongoDB a popular database with the widely used Yii framework for creating a web application with MongoDB as its backend database. If you have any queries, do comment &amp; we will get back to you!<\/p>\n<p>&nbsp;<\/p>\n<h4><span>Some Interesting reads from the Cloud World :<\/span><\/h4>\n<p>1.&nbsp;Optimize Big Data Analytics with a Complete Guide to Amazon Cloud\u2019s EMR<br \/>\n2.&nbsp;AWS Cloud for Start-ups Jump Start Package at just $99.99<br \/>\n3.&nbsp;Why is Cloud Computing Big Data\u2019s Best Friend? Hadoop in the Clouds to Answer your Doubts!<br \/>\n4.&nbsp;Building a Live AWS Kinesis Application \u2013 The Producer Class, Put Constructor &amp; more\u2026<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: center;\">\n","protected":false},"excerpt":{"rendered":"<p>In my previous blog I gave a brief overview about what is MongoDB, its features and my experience with MongoDB. Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance. &nbsp; Installing repository for MongoDB [&hellip;]<\/p>\n","protected":false},"author":192,"featured_media":17049,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[914,2037,1949],"tags":[2820,2822,2825,2828],"class_list":["post-29723","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-news-more-india","category-tech-india","tag-emongodocument-for-mongodb-collection-india","tag-mongodb-integration-with-yii-framework-india","tag-steps-to-install-mongodb-india","tag-steps-to-install-yii-with-mongodb-india"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MongoDB - How to Install &amp; Integrate with the YII Framework<\/title>\n<meta name=\"description\" content=\"Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB - How to Install &amp; Integrate with the YII Framework\" \/>\n<meta property=\"og:description\" content=\"Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Blazeclan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/blazeclan.hq\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-25T12:56:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-10T09:16:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1650\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Team Blazeclan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@blazeclan_hq\" \/>\n<meta name=\"twitter:site\" content=\"@blazeclan_hq\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Blazeclan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\"},\"author\":{\"name\":\"Team Blazeclan\",\"@id\":\"https:\/\/blazeclan.com\/india\/#\/schema\/person\/779910eccddff4a1ea6663b6bfb271e8\"},\"headline\":\"Diving Deep into MongoDB &#8211; How to Install and Integrate with the Popular YII Framework\",\"datePublished\":\"2022-11-25T12:56:56+00:00\",\"dateModified\":\"2023-03-10T09:16:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\"},\"wordCount\":1018,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/blazeclan.com\/india\/#organization\"},\"image\":{\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png\",\"keywords\":[\"EMongoDocument for MongoDB Collection\",\"MongoDB Integration with YII Framework\",\"Steps to Install MongoDB\",\"steps to Install YII with MongoDB\"],\"articleSection\":[\"Cloud\",\"News &amp; More\",\"Tech\"],\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\",\"url\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\",\"name\":\"MongoDB - How to Install & Integrate with the YII Framework\",\"isPartOf\":{\"@id\":\"https:\/\/blazeclan.com\/india\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png\",\"datePublished\":\"2022-11-25T12:56:56+00:00\",\"dateModified\":\"2023-03-10T09:16:53+00:00\",\"description\":\"Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance.\",\"breadcrumb\":{\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage\",\"url\":\"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png\",\"contentUrl\":\"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png\",\"width\":1650,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blazeclan.com\/india\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Diving Deep into MongoDB &#8211; How to Install and Integrate with the Popular YII Framework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blazeclan.com\/india\/#website\",\"url\":\"https:\/\/blazeclan.com\/india\/\",\"name\":\"Blazeclan\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blazeclan.com\/india\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blazeclan.com\/india\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/blazeclan.com\/india\/#organization\",\"name\":\"Blazeclan\",\"url\":\"https:\/\/blazeclan.com\/india\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\/\/blazeclan.com\/india\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blazeclan.com\/wp-content\/uploads\/2024\/10\/ITCI-Blazeclan_logo.svg\",\"contentUrl\":\"https:\/\/blazeclan.com\/wp-content\/uploads\/2024\/10\/ITCI-Blazeclan_logo.svg\",\"caption\":\"Blazeclan\"},\"image\":{\"@id\":\"https:\/\/blazeclan.com\/india\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/blazeclan.hq\/\",\"https:\/\/x.com\/blazeclan_hq\",\"https:\/\/www.instagram.com\/blazeclantechnologies\/\",\"https:\/\/www.linkedin.com\/company\/blazeclan-technologies\/\",\"https:\/\/www.youtube.com\/channel\/UCCKF4Lcbtus-pUoZr7Lxrow\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/blazeclan.com\/india\/#\/schema\/person\/779910eccddff4a1ea6663b6bfb271e8\",\"name\":\"Team Blazeclan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\/\/blazeclan.com\/india\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a43c1fa01bb3c7e839254c9084bf11ed422d7e633231f9e935096045af416ba2?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a43c1fa01bb3c7e839254c9084bf11ed422d7e633231f9e935096045af416ba2?s=96&d=mm&r=g\",\"caption\":\"Team Blazeclan\"},\"sameAs\":[\"http:\/\/localhost\/ps-local-wp\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MongoDB - How to Install & Integrate with the YII Framework","description":"Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/","og_locale":"en_US","og_type":"article","og_title":"MongoDB - How to Install & Integrate with the YII Framework","og_description":"Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance.","og_url":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/","og_site_name":"Blazeclan","article_publisher":"https:\/\/www.facebook.com\/blazeclan.hq\/","article_published_time":"2022-11-25T12:56:56+00:00","article_modified_time":"2023-03-10T09:16:53+00:00","og_image":[{"width":1650,"height":680,"url":"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png","type":"image\/png"}],"author":"Team Blazeclan","twitter_card":"summary_large_image","twitter_creator":"@blazeclan_hq","twitter_site":"@blazeclan_hq","twitter_misc":{"Written by":"Team Blazeclan","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#article","isPartOf":{"@id":"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/"},"author":{"name":"Team Blazeclan","@id":"https:\/\/blazeclan.com\/india\/#\/schema\/person\/779910eccddff4a1ea6663b6bfb271e8"},"headline":"Diving Deep into MongoDB &#8211; How to Install and Integrate with the Popular YII Framework","datePublished":"2022-11-25T12:56:56+00:00","dateModified":"2023-03-10T09:16:53+00:00","mainEntityOfPage":{"@id":"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/"},"wordCount":1018,"commentCount":0,"publisher":{"@id":"https:\/\/blazeclan.com\/india\/#organization"},"image":{"@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png","keywords":["EMongoDocument for MongoDB Collection","MongoDB Integration with YII Framework","Steps to Install MongoDB","steps to Install YII with MongoDB"],"articleSection":["Cloud","News &amp; More","Tech"],"inLanguage":"en-IN","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blazeclan.com\/india\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/","url":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/","name":"MongoDB - How to Install & Integrate with the YII Framework","isPartOf":{"@id":"https:\/\/blazeclan.com\/india\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage"},"image":{"@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png","datePublished":"2022-11-25T12:56:56+00:00","dateModified":"2023-03-10T09:16:53+00:00","description":"Now is the time to take all of you through the MongoDB integration with the popular PHP framework i.e. Yii and the steps for installing MongoDB on Amazon EC2 instance.","breadcrumb":{"@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#primaryimage","url":"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png","contentUrl":"https:\/\/blazeclan.com\/wp-content\/uploads\/2014\/02\/Diving-Deep-into-MongoDB-\u2013-How-to-Install-and-Integrate-with-the-Popular-YII-Framework1.png","width":1650,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/blazeclan.com\/blog\/diving-deep-mongodb-install-integrate-popular-yii-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blazeclan.com\/india\/"},{"@type":"ListItem","position":2,"name":"Diving Deep into MongoDB &#8211; How to Install and Integrate with the Popular YII Framework"}]},{"@type":"WebSite","@id":"https:\/\/blazeclan.com\/india\/#website","url":"https:\/\/blazeclan.com\/india\/","name":"Blazeclan","description":"","publisher":{"@id":"https:\/\/blazeclan.com\/india\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blazeclan.com\/india\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/blazeclan.com\/india\/#organization","name":"Blazeclan","url":"https:\/\/blazeclan.com\/india\/","logo":{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/blazeclan.com\/india\/#\/schema\/logo\/image\/","url":"https:\/\/blazeclan.com\/wp-content\/uploads\/2024\/10\/ITCI-Blazeclan_logo.svg","contentUrl":"https:\/\/blazeclan.com\/wp-content\/uploads\/2024\/10\/ITCI-Blazeclan_logo.svg","caption":"Blazeclan"},"image":{"@id":"https:\/\/blazeclan.com\/india\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/blazeclan.hq\/","https:\/\/x.com\/blazeclan_hq","https:\/\/www.instagram.com\/blazeclantechnologies\/","https:\/\/www.linkedin.com\/company\/blazeclan-technologies\/","https:\/\/www.youtube.com\/channel\/UCCKF4Lcbtus-pUoZr7Lxrow"]},{"@type":"Person","@id":"https:\/\/blazeclan.com\/india\/#\/schema\/person\/779910eccddff4a1ea6663b6bfb271e8","name":"Team Blazeclan","image":{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/blazeclan.com\/india\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a43c1fa01bb3c7e839254c9084bf11ed422d7e633231f9e935096045af416ba2?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a43c1fa01bb3c7e839254c9084bf11ed422d7e633231f9e935096045af416ba2?s=96&d=mm&r=g","caption":"Team Blazeclan"},"sameAs":["http:\/\/localhost\/ps-local-wp"]}]}},"_links":{"self":[{"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/posts\/29723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/users\/192"}],"replies":[{"embeddable":true,"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/comments?post=29723"}],"version-history":[{"count":0,"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/posts\/29723\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/media\/17049"}],"wp:attachment":[{"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/media?parent=29723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/categories?post=29723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blazeclan.com\/india\/wp-json\/wp\/v2\/tags?post=29723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}