What is the difference between public, private, and protected?

When and why should I use public, private, and protected functions and variables inside a class? What is the difference between them? Outsider members cannot access those variables. “Outsiders” in the sense that they are not object instances of the declared class itself…. Source: http://stackoverflow.com/questions/4361553/what-is-the-difference-between-public-private-and-protected


The visibility of a property, a method or (as of PHP 7.1.0) a constant can be defined by prefixing the declaration with the keywords public, protected or private. Class members declared public can be accessed everywhere…. Source: http://php.net/manual/en/language.oop5.visibility.php

Laravel on GalliumOS

I have used Laravel on GalliumOS using Valet Linux, https://cpriego.github.io/valet-linux/. It’s similar to the official Laravel Valet (which is Mac only) but works on Linux…. Source: https://www.reddit.com/r/GalliumOS/comments/7wcsj2/laravel_on_galliumos/

A Crash-course in PHP Namespaces for WordPress Developers

Way back in 2009, PHP 5.3 was released to the world and with it brought support for PHP namespaces — a way of easily separating your code from other developers’ code, which has since become the de facto way of encapsulating functionality across the PHP ecosystem…. Source: https://stevegrunwell.com/blog/php-namespaces-wordpress/

Install PHP 7.1 with Nginx on an Ubuntu 16.04 VPS

PHP 7.1 comes with many new features and improvements and as a result of this many developers are using it for their projects. In this tutorial we are going to show you how to install PHP 7.1 with Nginx on an Ubuntu 16.04 VPS. This will also install the required dependencies too…. Source: https://www.rosehosting.com/blog/install-php-7-1-with-nginx-on-an-ubuntu-16-04-vps/

Running a PHP Web App in a Docker Container

If you’re familiar with the process for creating a simple website using PHP, then adding Docker to the mix should be relatively easy. The great thing about using Docker is that you have better portability over your code…. Source: https://www.shiphp.com/blog/2017/php-web-app-in-docker

A containerized Laravel application

Containerized PHP Application What is this? This is an example of how you can quickly get up and running with Docker to develop a PHP application. This is a companion to the ? Shipping Docker video series…. Source: https://github.com/shipping-docker/php-app

Server-Side Rendering With Laravel & Vue.js 2.5

Server-side rendering is great way to increase the perception of loading speed in your full-stack app. Users get a complete page with visible content when they load your site, as opposed to an empty page that doesn’t get populated until JavaScript runs…. Source: https://www.codementor.io/vuejsdevelopers/server-side-rendering-with-laravel-vue-js-2-5-dmcu63w2y

What is PHP Output Buffering?

tl;dr: Output buffering is a way to tell PHP to hold some data before it is sent to the browser. Then you can retrieve the data and put it in a variable, manipulate it, and send it to the browser once you’re finished…. Source: https://notlaura.com/output-buffering/