PHPEdit

 › Home  › Presentation  › Features  › Frameworks

Frameworks

PHP contains an impressive number of functions and classes ready to use, to make the developer's job easier. But after developing a few applications, it appears that many repetitive tasks are not available directly in PHP, and that they need to be implemented.

Instead of implementing these tasks from scratch, you can use a framework, which is a layer on top of PHP. This framework will provide many classes and functions to simplify even more your job, and will handle some tasks that are needed regularly in PHP projects.

Some of these tasks are:

  • User management;
  • Transparent handling of databases, with ORM;
  • Cache ;
  • Model-view-controller system ;
  • ...

These framworks are usually easily extensible, in a way that you can reuse the additions you've made.

These frameworks being written in PHP, PHPEdit supports them with minimal configuration.

Some of these frameworks have a customized support in PHPEdit, to maximize the efficiency of the development, by offering for each of them an advanced integration, appropriated to each framework's specificities.

List and comparision of PHP frameworks

Symfony

Symfony is a MVC framework developed by a french team, Sensio.

Symfony website

Presentation of Symfony's integration in PHPEdit

Prado

Prado is an atypical PHP framework, event driven.

Prado website

Presentation of the integration of Prado in PHPEdit

eZ publish

eZ publish is not a framework, but a CMS based on a framework, eZ components.

eZ publish website

Presentation of the integration of eZ publish in PHPEdit

Configuration of PHPEdit to use an other framework

Even if specific integration of other frameworks like Zend Framework, Cake PHP, Code Igniter, etc... don't exist (yet) in PHPEdit, is it still possible to develop with these frameworks in PHPEdit in good conditions.

By including the framework's files in the dependencies, PHPEdit will analyse their code, and will offer you automatically code assistance for these classes.

To configure PHPEdit to use your favorite framework, start by creating or opening your project in the project explorer:

Double-click on the node of your project to open the project summary page:

At the bottom page, click on the "Dependencies" tab:

The list of your project's dependencies is displayed:

Click on the "Add" button, then on "Browse to add a recursive path...":

Choose the path of your framework:

The framework's folder is added to the list of dependencies:

Select the framework in the list, then click on the "Parse files" button to have PHPEdit load the framework's files in memory (it will be done automatically the next times you open the project):

The classes and functions of the framework are now available in the Code Insight, Code Hint, etc...: