• How to install mongoDB on MAMP

    MAMP is a somewhat ambiguous term. In its general form, it means “Mac, Apache, MySQL, PHP/Perl/Python”. But it’s also used to reference a standalone package maintained by the folks at mamp.info[http://mamp.info]. For this install process, we won’t use the standalone mamp.info package. We’ll instead use the tools native to Mac OSX. This install process uses the Apache and PHP binaries already integrated into Mac OSX 10.7 Lion, 10.6 Snow Leopard and 10.5 Leopard.

    1. First of all, install XCode [http://developer.apple.com/xcode/] from the Apple app store. This installs the binaries needed for subsequent steps. Continue Reading →

  • Basic concepts of Object Relational Mapping (ORM)

    Most of the developers are aware of the term ORM and use it with different frameworks for web applications. The idea of ORM is to provide an easy access to data without accessing the database every time. If you are a developer, you can very well understand the value of ORM which helps in saving lots of time and code rewriting for your application. Moreover ORM is highly flexible and you can use this architecture with any framework of your choice (Doctrine, CakePHP, Propel, CoughPHP etc). This post is suitable for both who are trying to get their hands in ORM architecture. We are going to discuss the basic concept of ORM and different benefits of using ORM above any other architecture.

    One of the basic requirements in development of an application is to retain data with the help of a database. All major web applications as well as software requires databases for processing and storage of data. Structured Query Language (SQL) is the medium of accessing data and manipulates the relational database. Continue Reading →

  • Getting Started with ORM using PHP

    If you are a programmer, you must have heard of the term Object Relational Mapping or often called ORM. Object Relational Mapping is a design approach in database programming which makes it quite easy for handling complex database programs. ORM is used with a lot of PHP frameworks and some of the most important frameworks are Doctrine, CakePHP, Symphony, CoughPHP, and Propel. The main function of an ORM layer is to make available the objects as if they were real objects with programming perspective and that too without involving direct access to the database. Most of the advanced web developers understand the fact that removing the actual database access in a web application could result in more productive and reliable applications.

    Continue Reading →

  • How to Integrate Zend Framework and Doctrine in a project?

    Zend Framework is often known as an architecture that can be easily integrated with most of the other available framework. Zend Framework allows you to use its libraries and components with other frameworks like CodeIgniter and Doctrine. No other framework provides such great level of flexibility and you have to write your own libraries in other frameworks. We are going to discuss how to integrate Zend Framework with Doctrine so that you can use its components throughout your application. This tutorial is for the advanced level and I highly suggest that you should be acquainted with both of the software for this integration. Let us find out the integration process with a simple application developed with this integration.

    The first step is to prepare the default directory structure for our project and install all the important libraries that we are going to need in our application. All of these directories are associated with their particular functions and let us discuss these functions in detail. Continue Reading →

  • How to implement Zend Framework in CodeIgniter?

    Php is one of the most used platforms for developing web applications and if you are a web developer, you must have used Zend Framework and CodeIgniter. These are Open Source frameworks with excellent support for web applications. Both are having their own advantages and drawback. Well as a web developer, I prefer to use CodeIgniter instead of Zend Framework because of the ease of usability and easy API integration. But sometimes one may need to use some specific classes and features of Zend Framework. We are going to discuss how to use different components of Zend Framework in CodeIgniter.

    CodeIgniter is known for its lightweight and extraordinary features. Our aim is to use the desired components from Zend Framework without coupling the application with it. You might say that why don’t we use the available CodeIgniter libraries capable of performing some of the functions of Zend Framework. The major problem with these libraries is that they are aimed towards simple applications and it can get really messy to use them in complex web applications. Continue Reading →

  • Beginners Guide for Zend Framework 2.0

    When it comes to open source software and applications, Zend Framework is one of the most preferred platforms for web applications. Zend Framework 2.0 has been released to overcome the common issues of the previous version and provide an advanced framework for the development of web applications. You can expect a lot of new features including cloud computing, superior event management, and advanced features for event tracking. The Beginners Guide for Zend Framework 2.0 is a series which will help you in getting started with Zend Framework 2.0. We are going to discuss each and every aspect of ZF2.0 with practical example.

    Zend Framework 2.0 Guide

    Zend Framework 2.0 Guide

    What’s new in Zend Framework 2.0

    Before starting with ZF2.0, let us find out what’s new in this version

    •  New and refactored Autoloaders
    •  Improved Exception System
    •  Advance and refactored View Component
    •  New Cloud Infrastructure component
    •  New and advanced Event Manager component
    •  New Plugin Broker Strategy
    •  Rewritten Session Component
    •  New Dependency Injection Component Continue Reading →
  • Comparing Redis and MongoDB

    MongoDB
    Being a document oriented database, MongoDB has a rich query language and stores structured data. MongoDB offers superior and distinct insertion speed due to fast file extension and deferred writes with multiple files for every collection structure. It makes use of memory mapped files and typically takes nanoseconds to fix minor page faults to map file system cached pages into its memory space. MongoDB doesn’t compete with page cache as they’re same memory for read-only blocks.

    It is very easy for MongoDB to perform simple tricks such as copy, cat etc to get all the data loaded in page cache. In this case, MongoDB is like a Redis, which also performs really well on random reads.

    Continue Reading →

  • What’s new on Zend Framework 2.0?

    Zend framework is an open source development language for web based applications and implemented in PHP version PHP 5. Zend framework is licensed under the new BSD license. All the contributors who want to contribute to this open source development platform will essentially sign with Contributor License Agreement (CLA). Licensing and contribution policies were issued for commercial Zend Framework users.

    The major contributors of Zend are Zend technologies, founded by PHP cofounders. The technology partners of Zend framework including Google, Adobe, Microsoft, StrikeIron and IBM. O’Phinney announced the major road map and features which are covered under ZF new framework 2.0. Whether ZF2 will cover the features which were provided under ZF1 and what new features have been added, is the hot topic of the day. The new roadmap will offer Zend framework 2.0 to focus more on refactoring, performance and improved coding unification, but there will be less concern for new features to add.

    The main priority of Zend framework 2.0 is to make more consistent product with improved performance, developer productivity and well-documented. This news is especially useful for those contributors which are currently using framework 1.0. Instead of being in subversion, Zend framework major development will be in Git respiratory. So in addition to ZF2 Git respiratory, there will be existence of many mirrors on Github.

    The major reason of converting Zend framework to Git is to help contributors for submission and contribution of code easily. Git respiratory nature is easy submission of data and it will help the contributors of Zend. In some reviews and discussion even it was discussed about a formal community review team. These new accomplishments will be a happy call for developers’ assistance and support. Part of conversion to new Zend framework 2.0 using many additional features with PHP 5.3 and developers will need to jump in and out with help. Current conversion has been stated in a file README-DEV.txt in Git. Other changes updated for new ZF2 including design/architecture changes, plug-in architecture, MVC implementations and Zend controller.

  • Welcome to 2012!

    Hey there!!!

    I designed my web page last quarter of 2011 but I know that my blog was always empty :) Because, It was one of my goals for new year and I’ve just started writing some articles on it. They will be here soon!

    2012 started very productive and nice for me. We have so many cool projects on demand and it makes me really really excited. I will try to write almost everything whatever I experience about my job (which is software engineering) on this blog.

    Please enjoy your day and stay cool ;)

    Burak