{"id":19,"date":"2007-05-18T14:05:50","date_gmt":"2007-05-18T08:35:50","guid":{"rendered":"http:\/\/www.bin-co.com\/blog\/2007\/05\/iframe-my-php-framework\/"},"modified":"2007-05-18T14:05:50","modified_gmt":"2007-05-18T08:35:50","slug":"iframe-my-php-framework","status":"publish","type":"post","link":"https:\/\/www.bin-co.com\/blog\/2007\/05\/iframe-my-php-framework\/","title":{"rendered":"iFrame &#8211; My PHP Framework"},"content":{"rendered":"<p><a href='http:\/\/www.bin-co.com\/blog\/2007\/05\/iframe-my-php-framework\/iframe-logo\/' rel='attachment wp-att-20' title='iFrame Logo'><img class=\"intro\" align=\"right\" src='http:\/\/www.bin-co.com\/blog\/wp-content\/uploads\/2007\/05\/iframe.png' alt='iFrame Logo' \/><\/a><\/p>\n<p class=\"intro\">I have created a number of Web Applications &#8211; <a href=\"http:\/\/www.bin-co.com\/blog\/2007\/04\/nexty-10-released\/\">Nexty<\/a> and <a href=\"http:\/\/www.bin-co.com\/blog\/2007\/05\/jus5-light-weight-cms\/\">Jus5<\/a> are just a few examples. I used a common code base when creating these sites &#8211; but I did not consider it a full fledged framework. However, now the code base has evolved enough to be called a framework. So, I called it a framework &#8211; <strong class=\"highlight\">the <a href=\"http:\/\/www.bin-co.com\/php\/scripts\/iframe\/\">iFrame<\/a> framework<\/strong>. I know, lame joke &#8211; geek humor \ud83d\ude09<\/p>\n<p>Before moving further, a word of warning &#8211; <strong class=\"highlight\">Do not use this framework<\/strong> for your project. There are plenty of great PHP frameworks out there &#8211; use one of those. For example&#8230;<\/p>\n<ul>\n<li><a href=\"http:\/\/www.cakephp.org\/\">CakePHP<\/a><\/li>\n<li><a href=\"http:\/\/codeigniter.com\/\">CodeIgniter<\/a><\/li>\n<li><a href=\"http:\/\/www.symfony-project.com\/\">Symfony<\/a><\/li>\n<li><a href=\"http:\/\/framework.zend.com\/\">ZendPHP<\/a><\/li>\n<\/ul>\n<p><strong class=\"highlight\">These are professional, enterprise level frameworks<\/strong>. They are secure, well designed and documented. Use any of those when creating your site &#8211; do not use mine. There are no legal restrictions &#8211; the code for iFrame is under BSD License. These are the reasons why you should not use my framework&#8230;<\/p>\n<h2>Disadvantages<\/h2>\n<dl>\n<dt>Documentation<\/dt>\n<dd>Many Users of frameworks complain that there is not enough documentation. My framework has no such problems &#8211; it has <strong>no documentation whatsoever <\/strong>. They only way to find what a function is supposed to do, is to read the code.<\/dd>\n<dt>Bugs<\/dt>\n<dd>This system is developed, used and tested by just one person &#8211; me. So, there are many yet undiscovered bugs.<\/dd>\n<dt>No <abbr title=\"Object Relation Mapping\">ORM<\/abbr><\/dt>\n<dd>Those who are in love with ORM will be disappointed when using iFrame &#8211; I have not implemented ORM.<\/dd>\n<dt>Currently, only MySQL is supported<\/dt>\n<dd>There is a database abstraction layer &#8211; but as of yet, only MySQL is supported.<\/dd>\n<dt>And a lot more other reasons<\/dt>\n<dd>The reasons why you should not use this framework is too numerous to list here.<\/dd>\n<\/dl>\n<h2>Advantages<\/h2>\n<p>Despite all the given disadvantages, I will use this framework &#8211; these are the reasons for that&#8230;<\/p>\n<dl>\n<dt>Lightweight<\/dt>\n<dd>This is the most lightweight framework that I have ever seen.<\/dd>\n<dt>Helpful functions that reduce coding time<\/dt>\n<dd>\n<p>All my PHP functions are available in the framework &#8211; If you know how to use them, these functions save a lot of time. For example&#8230;<\/p>\n<ul>\n<li><a href=\"http:\/\/www.bin-co.com\/php\/scripts\/upload_function\/\">upload()<\/a><\/li>\n<li><a href=\"http:\/\/www.bin-co.com\/php\/scripts\/dump\/\">dump()<\/a><\/li>\n<li><a href=\"http:\/\/www.bin-co.com\/php\/scripts\/xml2array\/\">xml2array()<\/a><\/li>\n<li><a href=\"http:\/\/www.bin-co.com\/php\/scripts\/array2json\/\">array2json()<\/a><\/li>\n<li>And more&#8230;<\/li>\n<\/ul>\n<\/dd>\n<dt>Encourages clean code<\/dt>\n<dd>iFrame is an MVC framework(although the &#8216;Model&#8217; is a bit limited for now). By default, each controller has its own folder and each action has its own file. This will greatly increase the number of files &#8211; but will reduce the number of lines in each file. Some might find it hard to use &#8211; but I find it more manageable this way.<\/dd>\n<dt>A lot of cool features<\/dt>\n<dd>I will talk about these &#8216;cool features&#8217; in the next post.<\/dd>\n<\/dl>\n<h2>Code<\/h2>\n<p>What good is a framework without the code&#8230;<\/p>\n<p><a href=\"http:\/\/www.bin-co.com\/php\/scripts\/iframe\/code\/\">View the iFrame code online<\/a><\/p>\n<p>You can get the code from my subversion server &#8211; use this command&#8230;<\/p>\n<p><code>svn checkout http:\/\/www.bin-co.com\/php\/scripts\/iframe\/code\/ iframe<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>I have created a number of Web Applications &#8211; Nexty and Jus5 are just a few examples. I used a common code base when creating <a class=\"mh-excerpt-more\" href=\"https:\/\/www.bin-co.com\/blog\/2007\/05\/iframe-my-php-framework\/\" title=\"iFrame &#8211; My PHP Framework\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,25,30],"tags":[80,119,143,144,210,245,300],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-php","category-scripts","category-web-development","tag-code","tag-framework","tag-iframe","tag-iis","tag-php","tag-script","tag-web-development"],"_links":{"self":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bin-co.com\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}