Tag: Php
-
Repository in PHP -- Design pattern with examples
Posted on April 6, 2020, Level beginner Resource Length medium
The Repository pattern is used to create a middle layer between a data layer (which can be a database, a file, a CSV, etc) and your controllers. It is mainly used on large scale application, where there will be dozens of reference to a single data layer. It gives the ability to change the data layer without affecting any code in your controller. By Anastasio Nico.
Tags php web-development programming open-source
-
Zero downtime Laravel deployments with Laravel Deployer and Github Actions
Posted on March 23, 2020, Level intermediate Resource Length medium
Michael Brooks is author of this blog post about Github actions and how they can automate your entire workflow. From building your assets to running your testing and deployment strategies.
Tags php devops web-development cicd
-
What is the Visitor Design Pattern?
Posted on December 8, 2019, Level intermediate Resource Length medium
An article by Jakub Kapuscik about the visitor design pattern. The idea behind the visitor design pattern is to put parts of the code that have specific responsibilities outside of the class.
Tags programming oop php web-development
-
Build a Laravel 6 CRUD app with authentication
Posted on October 2, 2019, Level intermediate Resource Length medium
Learn how to build and secure a travel manager CRUD application with Laravel 6.0. Author will walk through every step of building the application and then add authentication using Auth0. By Holly Lloyd, R&D Content Engineer.
Tags php web-development programming infosec
-
7 continuous integration tools for PHP Laravel developers
Posted on May 10, 2019, Level intermediate Resource Length long
Tomas Fernandez created an article so you can learn about 7 tools that you can use to set up a rock-solid continuous integration (CI) process for your PHP project. Together, these tools increase code quality, reduce development time, easily reveal errors and will generally make your life easier.
Tags php cicd web-development
-
Laravel OOP principles for writing better code explained
Posted on February 20, 2019, Level intermediate Resource Length medium
An blog post by Peter Matisko about PHP framework Laravel and how to use Object Oriented Programming (OOP) for writing better code.
Tags php programming web-development oop
-
How to make WordPress page cache plugins fly with NGINX
Posted on December 30, 2018, Level intermediate Resource Length medium
Ashley Rich posted an article about improving WordPress performance uisng NGINX caching. There are a ton of WordPress page caching plugins available, but limiting yourself to cache plugins alone means leaving significant performance improvements on the table.
Tags nginx web-development php programming
-
PHP encryption methods for passwords and other sensitive data
Posted on October 7, 2018, Level intermediate Resource Length long
Ashley Rich published this article about various methods of protecting sensitive data in PHP. There is a range of different encryption methods in use today, the most common being hashing, secret key encryption and public key encryption. Also in PHP 7.2+ you have cryptography extension Sodium which should simplify vastly complicated cryptography landscape.
Tags php infosec crypto
-
What, why and how of PHP Composer
Posted on July 5, 2018, Level intermediate Resource Length medium
Introduction in packaging tool for PHP -- Composer. Article by Gaurav Makhecha from laravelfactory.com in which he tries to demystify the package manager Laravel and other frameworks use. Composer is a dependency manager and autoloading expert for PHP.
Tags programming php
-
Creating multiple authentication in Laravel 5.5 using middleware
Posted on April 27, 2018, Level intermediate Resource Length medium
An article by Cloudways in which they deal with different roles and permissions in typical web application. To verify the users, applications need to have an authentication module or functionality. Using Middleware, you can easily implement multiple authentication in Laravel.
Tags web-development programming php
-
How to build multilingual app (PHP and Gettext)
Posted on November 16, 2017, Level intermediate Resource Length long
Igor Santos article on challenges of building multilingual applications. Whether you are building a website or a full-fledged web application, making it accessible to a wider audience often requires it to be available in different languages and locales.
Tags programming php
-
Data access object pattern in microservice architecture
Posted on October 17, 2017, Level intermediate Resource Length medium
Everett Griffiths is author of the blog post which focuses on the Data Access Object design pattern and how it can be used to communicate with multiple data sources. The article will demonstrate a solution using PHP and dependency injection to straddle multiple data sources in a scalable and testable way. Similar results can be obtained in other languages or using different organizational approaches.
Tags software-architecture programming php microservices