php frameworks

18
Introduction to PHP frameworks By Dumindu Pahalawatta

Upload: dumindu-pahalawatta

Post on 19-Feb-2017

494 views

Category:

Education


2 download

TRANSCRIPT

Page 1: PHP Frameworks

Introduction to PHP frameworks

By Dumindu Pahalawatta

Page 2: PHP Frameworks

IntroductionA framework is a structure that developers choose to build their

application. It determines the structure of the application and facilitates it to connect with many different API’s.

A proficient PHP framework enables developers to develop PHP application faster, efficiently and assist in building stable applications thereby reducing the amount of repetitive coding for PHP programmers.

Frameworks provide scaffolding features that facilitates the development team to build faster and cleaner application. They often provide toolsets for both the UI components and the database access.

Page 3: PHP Frameworks

Popular frameworks

Page 4: PHP Frameworks

Features of PHP frameworksMVC ArchitectureDatabase SupportCommunity & Documentation etc...

Page 5: PHP Frameworks

MVC Architecture

The framework should make use of Model View Controller (MVC) architecture.

Some of the best frameworks also provide libraries, plug-ins, helpers, and extensions to assist developers.

It would be smart and efficient to employ a framework that has at least two of these options.

Page 6: PHP Frameworks

Database Support

It is one of the most crucial aspects of every PHP development framework.

You need decide your framework depending on the database you are going to use for your web application.

For Example: ‘CodeIgniter’ supports MySQL, Oracle, and SQLite, whereas the ‘Kohana’ framework doesn’t.

Page 7: PHP Frameworks

Community & Documentation

:

The framework should be supported by a strong community, not just in terms of size but also in terms of activity and usefulness.

Even if it’s a small community, you should be able to get ample support from the community.

A PHP framework should also have good documentation. It should be comprehensive and up-to-date.

Page 8: PHP Frameworks

Commonly used PHP frameworks

CakePHP Sympony Codeignitor Zend Framework

Page 9: PHP Frameworks

Commonly used PHP frameworks

YII Kohana FuelPHP

Page 10: PHP Frameworks

CakePHP is a rapid development framework for PHP. It’s a foundational structure for programmers to create web applications.

CakePHP has an active developer team and community, bringing great value to the project. It is also the most preferred development framework.

CakePHP

Page 11: PHP Frameworks

Speed up the creation and maintenance of your PHP web applications. Replace the repetitive coding tasks by power, control and pleasure.

Symfony

Page 12: PHP Frameworks

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications.

CodeIgniter

Page 13: PHP Frameworks

It is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code and utilizes most of the new features of PHP 5.3, namely namespaces, late static binding, lambda functions and closures.

Zend Framework 2 evolved from Zend Framework 1, a successful PHP framework with over 15 million.

Zend Framework

Page 14: PHP Frameworks

Yii comes with rich features: MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc. It can reduce your development time significantly.

Yii Framework

Page 15: PHP Frameworks

An elegant HMVC (Hierarchical model–view–controller) PHP5 framework that provides a rich set of components for building web applications.

Kohana

Page 16: PHP Frameworks

It is a simple, flexible, community driven PHP 5.3+ framework, based on the best ideas of other frameworks.

FuelPHP

Page 17: PHP Frameworks

There are a number of PHP development frameworks in the market which enables the development team to do more with the programming language. Development frameworks makes coding for PHP more manageable and programmers can take its advantage by making use of a convenient development framework.

Page 18: PHP Frameworks

Source

An introduction to PHP Frameworks