Is it possible to use two frameworks in php?

2

I will create a stock system and would like to use a framework to ease the process. How to choose the ideal framework to work with? Does this depend on what my business is about? If I want features from two or more frameworks is it possible? Or is it necessary to use only one for my system? Could someone explain me ...?

For example:

  • CodeIgniter

  • Zend Framework

  • CakePHP

  • Symfony

asked by anonymous 10.07.2014 / 18:27

2 answers

5

Differences between frameworks are not just personal ones, , just go to this link below and see that there are yes, technical differences between them, differences, which may bring more application.

link

For example: CodeIgniter does not have native support for ajax, authentication modules, event-driven programming, and CakePhp has all this, but it does not have native templates.

These are technical differences, depending on your team or your knowledge, will make a difference during development, so you need to do a good survey of requirements for your project to make a good choice. >

In which case you can use 2 frameworks:

For example, you build an application, and want to give it another interface, such as REST, you could use one framework to manage the application's online site and another to give REST access, with totally different business rules, some frameworks can do everything, others do not.

But between us, what would be the benefit of this, considering that you will have to rewrite rules, validations, business models, to use a single database.

Cases in which it is useful and common to marry more than one framework: Different technologies

PHP Framework + Database abstraction, example: Doctrine.

PHP Framework + Frontend Framework, example: Bootstrap, foundation, 960gs, etc.

    
10.07.2014 / 20:51
1

Although most Frameworks use the MVC design pattern, it does not necessarily mean that they are written in the same way, but rather following the same line of reasoning.

As you mentioned yourself, you want to streamline the application development, for this, you should rather use a Framework, even if you do not use the dozens of modules, functions .. that exist in it, certainly the development time will be reduced, that is, it depends on your sensitivity in using, in other words, mastering.

I believe that it is not possible to use two (Server-side) Frameworks at the same time, as I mentioned at the beginning of the text, they are similar but not written in similarly, this can cause numerous conflicts.

But here's my tip when looking for a good framework, look for the one that:

  • Meet the system requirements (that meets your expectations)
  • Own active development community
  • Documentation (Development, Installation, and Configuration)
  • Possibility of modules and plugins

p>     

10.07.2014 / 20:55