Zend framework quick guide

Quick overview on Zend Framework 3 with enough details.

  • Zend\EventManager component allows to send events and register listeners to react to them.

  • Zend\ModuleManager. In ZF3, every application consists of modules and this component contains module loading functionality.

  • Zend\ServiceManager. This is the centralized registry of all services available in the application, making it possible to access services from any point of the web site.

Solid principles

In object-oriented computer programming, SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable.


    S — Single responsibility principle.
    O — Open closed principle.
    L — Liskov substitution principle.
    I — Interface segregation principle.
    D — Dependency Inversion principle.

Nginx full configuration with best performance

NGINX Tuning For Best Performance

This post assume that you are linux user and logged as root user.

This post is written by margining many configuration files at once so you may find same configuration at nginx official websiteas well.

Nginx tune up are dived into two major part

  1. Nginx main configuration file called as nginx.conf
  2. Another one is called as virtual host file wich located in eather conf.d directory or sites-enable folder based on linux flavour.

Linux user permission right way

To solve linux user and group permission issue for any kind of project.

First of all find the right user and right group which is executing that process.

Silver bullet of linux user permission.

sudo lsof -iTCP -sTCP:LISTEN -Pn
export OWENRE=$(whoami)
export GROUP=$(whoami)