1 / 23

Php Framework

CNC WEB WORLD provides professional PHP course by qualified experts faculties at Navi Mumbai area.<br>PHP is a server-side scripting language designed primarily for web development <br>but also used as a general-purpose programming language. It can be embedded into HTML.<br>To learn PHP it is essential to have the knowledge about JAVA script. <br>The advance course of PHP requires the basic knowledge of PHP, SQL, and HTML.<br>We deliver high quality PHP Training by real-time web developers staff.<br>Our faculties are with 5 years enriched experience in the IT industry.

cncwebworld
Download Presentation

Php Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. What is Framework? Framework provide scaffolding that can allow you to develop faster/more cleanly structure. This Framework helpful to provide you with a lot of reusable codes. Some notable frameworks for PHP.

  2. What is a PHP Framework? • PHP Framework is the most popular scripting language for many different reasons. Flexibility ,ease of use. Its basic platform that allows us to develop web application. • It is provide the structure. • You will end up saving loads of time, stopping the need to produce repetitive code.

  3. Principles Of MVC for PHP Developers MVC stands for model view controller. It is good way to clean, scalable, powerful and fast application. Model Model is the name given to the component that will communicate with the database to manipulate the data. It acts as a bridge between the View component and the Controller component in the overall architecture

  4. The running first_model.php is: code snippet for <?php class Model { public $string; public function __construct() { $this->string = “ Let’ s start php with MVC” ; } } ?>

  5. View : The View requests for data from the Model component and then its final output is determined. View interacts with the user, and then transfers the user’ s reaction to the Controller component to respond accordingly.

  6. To run first_view.php, type: <?php class View { private $model; private $controller; public function __construct($controller,$model) { $this->controller = $controller; $this->model = $model; } public function output() { return “ <p>”. $this->model->string . “ </p>” ; } } ?>

  7. Controller The Controller’ s job is to handle data that the user inputs or submits through the forms, and then Model updates this accordingly in the database. The code snippet for running first_controller.php is: <?php class Controller { private $model; public function __construct($model) { $this->model = $model; } } ?>

  8. Model of MVC:

  9. Working: The workings of a PHP framework is referred as Model View Controller(MVC). MVC is programming that isolates business logic from the UI, allowing one to be modified separately from the other (also known as separation of concerns). With MVC, Model refers to data, View refers to the presentation layer, and Controller to the application or business logic. MVC break up the process of development of an application, so you can work on individual elements while others are unaffected. Essentially, this makes coding in PHP faster and less complicated. an architectural pattern in

  10. Why framework? Some features are given below, 1. Clean Urls ( SEO friendly Urls ) 2. We can standardization! 3 .Security 4. Extensibility 5. Fast Loading 6. Reusable of code 7. increase flexibility

  11. When to use a PHP Framework? A framework will provide more simplicity module as well stability in coding so it may be a good idea to use PHP frameworks whenever possible. It will reduce time or eliminate bad coding and speed up the build process. PHP programmers see frameworks as tools for “weak” programmers that don’t understand how to write good, clean code. Whether this is true or not is up for debate, but the fact of the matter is that PHP frameworks are a tool that can be used to save time and tighten up one’s coding.

  12. Benefits of using MVC  User interface components:  Multiple simultaneous views of the same model  Synchronized views  Easier user interface changes  Easier testing  Substitutable user interface  Reduces the amount of repetitive coding

  13. Disadvantages of using MVC  More complexity  Potensial for excessive updates  Close coupling between view and controllers

  14. Top 10 frameworks are available:  Code Igniter  Yii  Cake PHP  Zend  Symfony  PHP DevShell

  15.  Prado  Akelos  Zoop  QPHP

  16. 1. Codelgniter: It is well-known for its ease-of-use, performance and speed. It offers simple solutions, and has an extensive library of video tutorials, forums, a user guide and wiki available for support. Beginners should consider using Codelgniter. 2. Yii: Yii is an open source, object-oriented, component-based MVC PHP web application framework.

  17. 3. CakePHP: CakePHP is open source web framework. To make developing, deploying and maintaining application. It is base on MVC model. 4. Zend : Zend Framework is the open source, object oriented web application framework for PHP 5. Zend Framework is often called a 'component library', because it has many loosely coupled components that you can use more or less independently.

  18. 5. Symfony : Symfony is a PHP web application framework and a set of reusable PHP components/libraries. The leading PHP framework to create websites and web applications. Built on top of the Symfony Components. 6.PhpDevShel: PHPDevShell is an Open Source PHP framework for the development of admin-based applications. It is fast, stable and secure, could be also described as a Rapid Application Development freamework use in php.

  19. 7. Prado: The Prado framework is an open source programming framework for creating professional web applications. PRADO means PHP Rapid Application Development Object-oriented. It is component-based and allows event- driven programming 8.Akelos : Akelos PHP Framework is a web application development platform that is entirely based on the MVC (Model View Controller) design pattern. It speeds up the creation of complex web applications writing less code. Most of all it is very prominent for creating and maintaining applications with data and views in different and multiple languages at the same time.

  20. 9. Zoop : Zoop is an object oriented framework. Zoop framework development is scalable, fast, efficient, clean, stable and portable of course. This framework can be selected to include only the required functionality and this is even extendable. 10. QPHP: It is event driven( EDP),component based web Fremework similar as architecture toASP.NET.This is a tool which will help you to build any Php based website in very easy, fast, reliable,safe way.

  21. Comparison of framework:

  22. • Resourses: CakePHP official site CodeIgniter Site http://codeigniter.com PHP frameworks lists https://phpframework.com/ • • • • •

More Related