{"id":376,"date":"2013-07-14T14:19:00","date_gmt":"2013-07-14T14:19:00","guid":{"rendered":"http:\/\/www.siriinnovations.com\/blog\/?p=376"},"modified":"2013-07-14T14:22:49","modified_gmt":"2013-07-14T14:22:49","slug":"what-is-yii","status":"publish","type":"post","link":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/","title":{"rendered":"What is Yii?"},"content":{"rendered":"<p>Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. The name Yii is an acronym for &#8220;<strong>Yes It Is<\/strong>!&#8221;.<\/p>\n<p>Is it fast? &#8230; Is it secure? &#8230; Is it professional? &#8230; Is it right for my next project? &#8230; <strong>Yes, it is<\/strong>!<\/p>\n<p>It is light-weight and equipped with sophisticated caching mechanisms, it is especially suited to high-traffic applications, such as portals, forums, content management systems, e-commerce systems, etc.<\/p>\n<p>YII is a free open source web application development frame work. It is developed in PHP5. It has the extremely optimized. It\u2019s high and impressive performance while comparing with other PHP-based frameworks.<\/p>\n<p><strong>Why YII?<\/strong><\/p>\n<p>YII has the below features:<\/p>\n<ol>\n<li>\u00a0MVC<\/li>\n<li>DAO\/ActiveRecord<\/li>\n<li>Caching<\/li>\n<li>Authentication<\/li>\n<li>Role-based access control<\/li>\n<li>Scaffolding<\/li>\n<li>Security<\/li>\n<\/ol>\n<p>It includes input validation, output filtering, SQL injection and Cross-site scripting prevention.<\/p>\n<p>YII is much faster because it is using lazy loading technique. It does not enable functionality until or unless that has been invoked for the first time. For example it does not create an object unless the object is called for the first time. Other frameworks suffer from the performance hit because they would enable functionality no matter it is used or not during a request.<\/p>\n<p><strong>1. Performance<\/strong><\/p>\n<p>YII has the high performance compared to other frame works. The YII team has generated a statistics for the performance of different frame works based on &#8220;request per second&#8221; which describes how many requests an application written in a framework can process per second. From the graph given below the RPS is for &#8220;request per second&#8221;. The higher number shows the higher performance level of the frame work. The performance is significantly high when we enable the PHP extension APC.<\/p>\n<p><strong>2. Security<\/strong><\/p>\n<p>Security measures like Cross-site Scripting Prevention, Cross-site Request Forgery Prevention and Cookie Attack Prevention are enabled. Also YII includes client side and server side validation. We can just enable or disable the validation rule. It is not required to write separate validation rule for the inputs like other frameworks. YII has built-in authentication support. It also supports authorization via hierarchical role-based access control.<\/p>\n<p><strong>3. Caching<\/strong><\/p>\n<p>YII provides various cache components to store cached data in different media. While comparing to other frame works YII has an excellent caching system. YII supports memcache, APC, XCache and DB based page and segment caching.<\/p>\n<p><strong>4. Friendly with third-party code<\/strong><\/p>\n<p>YII is also designed to work with third party codes. You can use code from PEAR or Zend Framework in your YII application.<\/p>\n<p><strong>5. Easy to extend \/ customize<\/strong><\/p>\n<p>It is very easy to edit or customize the YII based applications, since it has a very simple code structure. You can also use different kinds of extensions and widgets as per the requirements.<\/p>\n<p>YII is purely object oriented, architecturally clean and very simple to extend it. If you are not experienced with the PHP frame works and want to develop some simple applications, then maybe you should try an easier framework.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. The name Yii is an acronym for &#8220;Yes It Is!&#8221;. Is it fast? &#8230; Is it secure? &#8230; Is it professional? &#8230; Is it right for my next project? &#8230; Yes, it is! It is light-weight and equipped with sophisticated caching mechanisms, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,3,6],"tags":[56,55],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-development","category-technical","category-tutorials","tag-best-frameworks","tag-yii-framework"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Yii? - Siri Innovations<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Yii? - Siri Innovations\" \/>\n<meta property=\"og:description\" content=\"Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. The name Yii is an acronym for &#8220;Yes It Is!&#8221;. Is it fast? &#8230; Is it secure? &#8230; Is it professional? &#8230; Is it right for my next project? &#8230; Yes, it is! It is light-weight and equipped with sophisticated caching mechanisms, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\" \/>\n<meta property=\"og:site_name\" content=\"Siri Innovations\" \/>\n<meta property=\"article:published_time\" content=\"2013-07-14T14:19:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-14T14:22:49+00:00\" \/>\n<meta name=\"author\" content=\"Shilpa Buddha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shilpa Buddha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\"},\"author\":{\"name\":\"Shilpa Buddha\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/e8e1f72a882fe505ca12b49a7d1d8f5d\"},\"headline\":\"What is Yii?\",\"datePublished\":\"2013-07-14T14:19:00+00:00\",\"dateModified\":\"2013-07-14T14:22:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\"},\"wordCount\":484,\"commentCount\":0,\"keywords\":[\"best frameworks\",\"yii framework\"],\"articleSection\":[\"Development\",\"Technical\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\",\"url\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\",\"name\":\"What is Yii? - Siri Innovations\",\"isPartOf\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/#website\"},\"datePublished\":\"2013-07-14T14:19:00+00:00\",\"dateModified\":\"2013-07-14T14:22:49+00:00\",\"author\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/e8e1f72a882fe505ca12b49a7d1d8f5d\"},\"breadcrumb\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/siriinnovations.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is Yii?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#website\",\"url\":\"https:\/\/siriinnovations.com\/blog\/\",\"name\":\"Technical blog from Siri Innovations\",\"description\":\"Innovative like no other\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/siriinnovations.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/e8e1f72a882fe505ca12b49a7d1d8f5d\",\"name\":\"Shilpa Buddha\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c4d3d50337b9882c866fe638d3af530f0503e9e499ee77e4e53f9e34605abbe5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c4d3d50337b9882c866fe638d3af530f0503e9e499ee77e4e53f9e34605abbe5?s=96&d=mm&r=g\",\"caption\":\"Shilpa Buddha\"},\"url\":\"https:\/\/siriinnovations.com\/blog\/author\/shilpa-buddha\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Yii? - Siri Innovations","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:\/\/siriinnovations.com\/blog\/what-is-yii\/","og_locale":"en_US","og_type":"article","og_title":"What is Yii? - Siri Innovations","og_description":"Yii is a high-performance, component-based PHP framework for developing large-scale Web applications rapidly. The name Yii is an acronym for &#8220;Yes It Is!&#8221;. Is it fast? &#8230; Is it secure? &#8230; Is it professional? &#8230; Is it right for my next project? &#8230; Yes, it is! It is light-weight and equipped with sophisticated caching mechanisms, [&hellip;]","og_url":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/","og_site_name":"Siri Innovations","article_published_time":"2013-07-14T14:19:00+00:00","article_modified_time":"2013-07-14T14:22:49+00:00","author":"Shilpa Buddha","twitter_misc":{"Written by":"Shilpa Buddha","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#article","isPartOf":{"@id":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/"},"author":{"name":"Shilpa Buddha","@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/e8e1f72a882fe505ca12b49a7d1d8f5d"},"headline":"What is Yii?","datePublished":"2013-07-14T14:19:00+00:00","dateModified":"2013-07-14T14:22:49+00:00","mainEntityOfPage":{"@id":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/"},"wordCount":484,"commentCount":0,"keywords":["best frameworks","yii framework"],"articleSection":["Development","Technical","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/siriinnovations.com\/blog\/what-is-yii\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/","url":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/","name":"What is Yii? - Siri Innovations","isPartOf":{"@id":"https:\/\/siriinnovations.com\/blog\/#website"},"datePublished":"2013-07-14T14:19:00+00:00","dateModified":"2013-07-14T14:22:49+00:00","author":{"@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/e8e1f72a882fe505ca12b49a7d1d8f5d"},"breadcrumb":{"@id":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/siriinnovations.com\/blog\/what-is-yii\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/siriinnovations.com\/blog\/what-is-yii\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/siriinnovations.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What is Yii?"}]},{"@type":"WebSite","@id":"https:\/\/siriinnovations.com\/blog\/#website","url":"https:\/\/siriinnovations.com\/blog\/","name":"Technical blog from Siri Innovations","description":"Innovative like no other","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/siriinnovations.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/e8e1f72a882fe505ca12b49a7d1d8f5d","name":"Shilpa Buddha","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c4d3d50337b9882c866fe638d3af530f0503e9e499ee77e4e53f9e34605abbe5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c4d3d50337b9882c866fe638d3af530f0503e9e499ee77e4e53f9e34605abbe5?s=96&d=mm&r=g","caption":"Shilpa Buddha"},"url":"https:\/\/siriinnovations.com\/blog\/author\/shilpa-buddha\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/comments?post=376"}],"version-history":[{"count":5,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts\/376\/revisions"}],"predecessor-version":[{"id":461,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts\/376\/revisions\/461"}],"wp:attachment":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/categories?post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}