Browsed by
Tag: php

Zend Opcache improves page load speed

Zend Opcache improves page load speed

Zend Opcache in PHP improves your page speed by compiling code into machine code and storing the byte code in RAM. With each subsequent hit to a resource code is served from memory rather than being compiled again. PHP is an interpreted language. What this means is the unlike languages like C / C++, PHP is not compiled once to machine code and then executed from the binary each time. With PHP, each time a page is viewed on your…

Read More Read More

PHP Namespaces

PHP Namespaces

PHP namespaces allow you to namespace your functions! Ok, so I know that’s circular reasoning. Let’s see what that means. We’re all familiar with the way that files and folders work on our PCs. If you have two files with the same name, then they cannot exist in the same folder. So, if I have a file called notes.txt with all my work related notes, then I can’t also have a file called notes.txt with all my personal related notes…

Read More Read More

PHP: Create an installer with composer

PHP: Create an installer with composer

Composer is the current most popular package management system for PHP. Composer is used to manage package dependencies and chances are good that you’ve used it to install software before. In this article we’ll look at creating your own installer with composer for your PHP projects. Using PHP’s dependency manager, Composer you list your project’s dependencies in a composer.json file and, with a few simple commands, Composer will automatically download your project’s dependencies and set up autoloading. You can think…

Read More Read More