PHP & Nginx & Apache

Nginx Nginx works differently than Apache, mainly with regard to how it handles threads. Nginx does not create new processes for each web request, instead the administrator configures how many worker processes to create for the main Nginx process. (One rule of thumb is to have one worker process for each CPU.) Each of these …

Continue reading

Laravel Interview Questions

1- What is Laravel Framework? Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern. 2- What are the main differences between Laravel 4 and Laravel 5.x? Summarizing Laravel 5.0 Release notes from the above article: 1. The old …

Continue reading

Master Javascript Interview

Topics: What is  a Promise ? What is the Difference Between Class & Prototypal Inheritance ? What is a Closure ? What is Functional Programming ? What is Function Composition ? What is a pure Function ? Interview Questions    

Continue reading

Hacking with PHP

Don’t think that using references will lower your RAM usage Objects are always copied by reference in PHP 5, which means that copying even the most complex object is instantaneous and essentially free in terms of memory usage. Furthermore, PHP makes extensive use of “copy-on-write”, which means taking ten copies of the same array is …

Continue reading

Secure Your REST API

API Key Mechanism The SERVER and CLIENT share 2 values: a public and private key. The public key can be known by more people, that’s fine. The private key CANNOT. It must only be known by the server and the client. When the client makes a request to the server, it sends along 2 important …

Continue reading

Tour of The Backend Development Skill Set

Mobile Responsive and Mobile Friendly Mobile Responsive When viewed on mobile devices versus desktop clients, responsive email uses “media queries” to adjust the layout of the email message, font sizes, images, and buttons; in some cases, they can even be used hide or swap content. This means, in effect, there are two versions of the …

Continue reading

The PHP Future – PSR-7, Interoperability & Middleware

PSR-7 HTTP Message Interfaces HTTP messages are the foundation of web development. Web browsers and HTTP clients such as cURL create HTTP request messages that are sent to a web server, which provides an HTTP response message. Server-side code receives an HTTP request message, and returns an HTTP response message. HTTP messages are typically abstracted …

Continue reading

Understanding Dependency Injection

Dependency injection and dependency injection containers are different things: dependency injection is a method for writing better code a container is a tool to help injecting dependencies You don’t need a container to do dependency injection. However a container can help you. PHP-DI is about this: making dependency injection more practical.   The theory Classic …

Continue reading