PHP frameworks have enormous capabilities and
unique ecosystems that will suit a huge number of tasks. They are able to
create better-formed, secure and understandable applications / websites in
shorter periods of time.

Why use php frameworks?

 Developers choose frameworks because they
speed up development, have security out of the box, and can scale quite easily.
Choosing the right framework to work according to your needs can be a daunting
task. Below are the TOP 5 most popular frameworks.

Laravel

pros

  • Superior IoC (Management Inversion)
  • Convenient migration system
  • Integrated Unit Testing System
  • Built-in Blade Template Engine
  • Very flexible route generation
  • Very flexible REST API writing capabilities
  • Very fast developing
  • Sea of documentation on any topic
  • Popular in the West
  • Out of the box debug console with call
    stack
  • RBAC
  • ACL plugins

Minuses

  • Great functionality works through facades,
    and IDE systems do not see methods and properties in some classes, showing
    warnings
  • Studied a little harder Yii2
  • No built-in interface generators

Phalcon

pros

  • High performance
  • Rich functionality
  • Good for highload
  • It is located in RAM
  • Requires minimum file operations
  • Low resource consumption
  • You can use your own base and its
    individual elements
  • According to ORM technologies, interaction
    with databases takes place, which results in very high performance
  • All processes occur quite quickly, thanks
    to the direct appeal of the framework to the internal structures of PHP
  • You can use your own base and its
    individual elementsbuilt-in interface generators

Minuses

  • C source code
  • So far, insufficient popularity
  • Is extension (and this means that on shared
    hosting you can just not run the application)
  • Many still have no idea about the existence
    of Phalcon

Symfony

pros

  • Refers to the same extent to Yii. In
    addition, Symfony documentation insists that this is not an MVC framework.
  • Built-in Codeception support allows you to
    write functional and acceptance tests
  • YAML as a plus of the framework
  • Some of the Symfony2 components are now
    implemented in large projects such as Drupal and PhpBB
  • Large community of developers
  • A lot of ready-made modules (bundles)
  • Detailed and clear documentation
  • Fairly high core speed

Minuses

  • Symfony uses a terrible and powerful ORM,
    very resource-intensive
  • High entry threshold
  • Oversaturation of all sorts of entities
  • Integrated Annotation SyntaxLow component connective

Zend framework

pros

  • Class inheritance
  • Object oriented entity
  • Has a turnkey solution for many tasks
  • Integrate anything with everything we wish
  • Application Internationalization
  • Developer Community Support
  • High quality of documentation

Minuses

  • Not suitable for rapid development.
  • Slower than some other frameworks (but fast
    enough for 90% of sites, the database is almost always a bottleneck).
  • It takes a long time to study.

Yii2 framework

pros

  • Visual code generator
  • The most intuitive MVC architecture.
    Especially from scratch it’s nice to learn it
  • Uses standard methods for solving problems,
    which reduces or eliminates code obfuscation
  • Facilitates code support using common
    architecture and methods
  • Has an active community of developers who
    support the framework, generic tasks, and new features.
  • Reduces time spent on routine tasks such as
    form validation and security
  • Easy to tune for better performance.
  • Not demanding on resources
  • Various caching options
  • Easy integration of third-party libraries
    and classes
  • Quality Security Tools
  • Behaviors, helpers, the ability to expand
    the basic functionality, etc.
  • Suitable for projects of any complexity and
    scale.

Minuses

  • Not very flexible routing
  • Too bonded libraries for frontend with
    backend