Questions tagged [zend-framework2]

Zend Framework 2 is a PHP 5.3+ 5.4 (for Zend Framework 2.4+) or 5.5+ (for Zend Framework 2.5.0+) MVC framework and component library.

Zend Framework 2 is an open source, object-oriented web application framework implemented in PHP 5.3 (PHP 5.5 for version 2.5+) and licensed under the new BSD license.

It is based on simplicity, object-oriented best practices, corporate friendly licensing, and a rigorously tested agile codebase with a main focus on building more secure, reliable, and modern Web 2.0 applications & web services.

The key differentiators from Zend Framework 1 are:

  • Use of PHP 5.3 namespaces
  • MVC is used EventManager to run bootstrap, dispatch and view processes
  • Dependency Injection Container
  • First class modules
  • Installation by Composer
  • Splitted into single components

Features Zend Framework features include:

  • All components are fully object-oriented PHP 5 and are E_STRICT compliant.
  • Use-at-will architecture with loosely coupled components and minimal interdependencies.
  • Extensible MVC implementation supporting layouts and PHP-based
    templates by default.
  • Support for multiple database systems and vendors, including MariaDB, MySQL, Oracle, IBM DB2, Microsoft SQL Server, PostgreSQL, SQLite, and Informix Dynamic Server.
  • Email composition and delivery, retrieval via mbox, Maildir, POP3 and IMAP4.
  • Flexible caching sub-system with support for many types of backends, such as memory or a file system.

Information:

If your question is about Zend Framework 1.x, please use instead.

Release:

As of August 3rd 2015, the latest stable release of Zend Framework 2 is version 2.5.2

Resources:

8670 questions
146
votes
11 answers

How to force composer to reinstall a library?

I'm using the ZF2 skeleton app and it has a .gitignore that prevents external libraries from being commited to git. While debugging I like to go and change stuff here and there in the libraries' source to learn how things work. If these were version…
Julian
  • 8,808
  • 8
  • 51
  • 90
127
votes
14 answers

You must enable the openssl extension to download files via https

I wanted to install Zend Framework 2. So I downloaded the skeleton application. As mentioned in the ZF2 manual, we have to issue the command php composer.phar install Inside the skeleton. But I'm getting an error You must enable the openssl…
Uttam Dutta
  • 5,250
  • 4
  • 18
  • 21
98
votes
5 answers

How to access route, post, get etc. parameters in Zend Framework 2

How can I get various parameters related to the page request in zf2? Like post/get parameters, the route being accessed, headers sent and files uploaded.
Matsemann
  • 21,083
  • 19
  • 56
  • 89
80
votes
9 answers

How to install PHP intl extension in Ubuntu 14.04

I have a hard time to find exact method to install PHP intl extension in Ubuntu 14.04. I tried with sudo apt-get install php5-intl but displays error Unable to locate package. I really need this extension for Zend Framework 2 , because of above…
Hiranya Sarma
  • 1,454
  • 4
  • 15
  • 25
67
votes
2 answers

Zend Framework 2 Doctrine 2 one-to-many checkbox hydration

I have a ManyToMany that I broke into OneToMany and ManyToOne relationship. I want to build a form that has checkboxes instead of collection, and I am using the 'DoctrineObject' hydrator, but it does not work and I don't know what is going wrong. I…
Mohammad ZeinEddin
  • 1,608
  • 14
  • 17
66
votes
1 answer

How to do left join in Doctrine?

This is my function where I'm trying to show the User history. For this I need to display the user's current credits along with his credit history. This is what I am trying to do: public function getHistory($users) { $qb =…
noobie-php
  • 6,817
  • 15
  • 54
  • 101
64
votes
1 answer

Zend Framework 1 vs Zend Framework 2 performance

Zend Framework 2 was just released and Zend offers support for ZF1 for only 18 months from now. I know they were working for new features in ZF2 and then they were going to do some major speed improvements to it since it was 5 times slower than…
tsergium
  • 1,176
  • 1
  • 14
  • 26
46
votes
16 answers

Could not open input file: composer.phar

I am trying to install zendframework using composer tool in wamp server. The following steps are done towards installation I downloaded the Composer-Setup.exe file from composer page and got successfully installed. I downloaded the zendframework…
Sundar
  • 4,580
  • 6
  • 35
  • 61
41
votes
2 answers

Zend Framework 2 + Doctrine 2

I would like to start developing with Zend Framework and I would like to use zf2. Since I use Doctrine 2, can you suggest some tutorials to help me to integrate it in zf2? Thanks!
flux
  • 526
  • 1
  • 7
  • 10
40
votes
2 answers

Zend Framework 2 for a Zend Framework Newbie

I'd like to use ZF2 for an upcoming project. However, I find it really hard to understand the few tutorials that I've found out there. Most of them just tell you to put stuff in files without really explaining what everything is or any other option…
user1336449
  • 439
  • 1
  • 5
  • 8
38
votes
8 answers

Access to module config in Zend Framework 2

How I can get access to my module config from the controller?
Dmitry
  • 816
  • 1
  • 9
  • 17
38
votes
8 answers

Install and configure mod_rewrite for Apache 2 on Mac OS X for Zend Framework 2

I getting started with zend framework 2 and they have a prerequisite of an installation and configuration of mod_rewrite for apache. Apache 2.2.22 came pre-installed on Mac OS X 10.8.2. Is there an easy way to install and configure mod_rewrite for…
brad.roush
  • 597
  • 1
  • 4
  • 9
36
votes
3 answers

ZF2 - Mocking service requested in Module.php

I am trying to test a controller of my ZF2 application. Suppose this controller is in my A module. In the onBootstrap method of the Module.php of the module A I am using the service manager to retrieve a service of another module, say B, that I am…
marcosh
  • 8,780
  • 5
  • 44
  • 74
33
votes
4 answers

How to use PHP Composer on HostGator

I recently decided to start a project in Zend Framework 2 and was having trouble getting it to run on a HostGator shared server. By default, HostGator's shared servers run in PHP 5.2.2 and if you upload the ZF2 Skeleton Application, it will not run…
Zach
  • 1,252
  • 2
  • 11
  • 17
31
votes
5 answers

ZF2 Optimize for high traffic

My ZF2 application seems to be extremely slow when more than 3 users are using it at the same time. I profile my code with xdebug and webgrind and non of my functions seems to be slow so it has to be an optimalisation issue within the zf2 it's…
directory
  • 3,093
  • 8
  • 45
  • 85
1
2 3
99 100