PHP Classes

PHP Tutorials

Recommend this page to a friend!

Articles to teach about PHP matters and related topics

  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Tutorials   Post article Post article  
  274 - 265   ...   124 - 115   114 - 105   104 - 95   94 - 85   84 - 75   74 - 65   64 - 55   54 - 45   44 - 35   34 - 25   24 - 15   14 - 5   4 - 1  

305. How to Make Better Reuse of PHP Code using Traits Part 1: Basic Code Reuse

Updated on: 2015-08-12

Posted on:

When you want to share common methods across multiple unrelated classes, in PHP, traits are the way to go.

They contain the power of an abstract class with the added ability to resolve conflicts which makes them the perfect place to store your favorite methods to quickly use in any project.

Read this article to learn what are traits using simple analogies and how you can use them to make better reuse of your code in multiple classes for very different purposes.


Blog More ...   Post a comment Post a comment   See comments See comments (11)   Trackbacks (0)

304. How to Create a PHP C Extension to Manipulate Arrays - Part 1: Basic Array Class Extension

Updated on: 2015-08-13

Posted on:

In PHP projects, arrays are used every where because they are useful and flexible to store all sorts of data structures.

However, when you need to maximize the performance the manipulation of arrays for specific purposes, you can achieve great gains if you implement a PHP extension written in the C language.

Read this tutorial to learn how to build your own basic array manipulation extension in C.


Blog More ...   Post a comment Post a comment   See comments See comments (3)   Trackbacks (0)

303. How to Create a Simple PHP Custom CMS Tutorial in 2019 Way with PHP SEO Friendly URL Generated HTML Links

Updated on: 2019-10-08

Posted on:

Nowadays search engines like Google value more and more the user experience provided by the sites to rank their site pages well. So, SEO (Search Engine Optimization) often means making the sites more user friendly.

One aspect that contributes to Web site pages being ranked well is to have friendly URLs that allow the user to know what pages are about just looking at the URLs.

Read this tutorial to learn how to create a simple content management system that uses user friendly URLs for the content pages, so you can implement in your own projects without having to use other large CMS systems.


Blog More ...   Post a comment Post a comment   See comments See comments (20)   Trackbacks (0)

301. What You Should Do Before Pushing PHP Code to your Production GIT Repository

Updated on: 2015-07-29

Posted on:

Every time you commit new code to a Git repository, there is a great chance that the code has problems that were not detected with your usual batch of tests.

Read this article to learn how to integrate PHP Code Sniffer with your project Git commit process to inspect your PHP code automatically and prevent that code with problems is committed.


Blog More ...   Post a comment Post a comment   See comments See comments (6)   Trackbacks (0)

300. Using PHP Object Interfaces

Updated on: 2015-07-22

Posted on:

When you are sharing code with closely related objects, you use class abstraction. When you want to provide class templates for broadly related objects, you use Object Interfaces.

Read this tutorial to learn the different ways to implement interfaces and set up interface dependencies in PHP.


Blog More ...   Post a comment Post a comment   See comments See comments (4)   Trackbacks (0)

297. Using the Gateway Pattern in PHP to Access Common Data From Anywhere in your Application

Updated on: 2015-07-20

Posted on:

All applications need to access common data from different parts of the code, like for instance configuration values, text translations, access databases, etc.. The Gateway pattern defines a clean approach for accessing application common data from anywhere in your code.

Read this article to learn more about the gateway pattern and how you implement it to access common methods and properties from any part of your PHP application code following the OOP principles, as well how it can be used to implement other well known design patterns.


Blog More ...   Post a comment Post a comment   See comments See comments (2)   Trackbacks (0)

296. Controlling Autonomous Hardware Devices Using PHP Software Agents

Updated on: 2015-07-13

Posted on:

Some hardware devices can perform useful actions autonomously by the means of software agents, like for instance monitoring objects in the space around an unmanned vehicle (robot).

Read this article to learn how to implement PHP software agents that can process actions using sequences of actions defined in JSON.


Blog More ...   Post a comment Post a comment   See comments See comments (10)   Trackbacks (0)

295. How to Use Vagrant to Improve Your Web Development Process

Updated on: 2015-07-08

Posted on:

A great part of the production Web sites are hosted on Linux based systems. However the vast majority of the Web developers run Windows or Mac OS X on their development machines.

Vagrant is an application that creates and configures virtual development environments. It can be used as a simpler wrapper solution around virtualization software such as VirtualBox, VMware, KVM and Linux Containers (LXC), and around configuration management software such as Ansible, Chef, Salt and Puppet.

Read this article learn how to use Vagrant to easily setup your Web applications development environment in a way that it is as close as possible to the Linux based environment that you have on your production server.


Blog More ...   Post a comment Post a comment   See comments See comments (2)   Trackbacks (0)

292. Tapping Into the Untapped User Experience: Combining User Analytics and Feedback In One Essential Tool

Updated on: 2015-06-24

Posted on:

With the speed at which technology is changing and advancing, it is disappointing that as developers and designers we still can’t get the big picture of our site’s user experience.

On the one hand, there are many great Web analytics tools out there today that measure user behavior. There are also many popular customer feedback tools that help to understand the voice of the customer. But fusing these two disparate pieces of information into one concise tool is a largely untapped area in our industry.

As a developer, more tools means more headaches and more overhead. As a designer, you need several key data points to create better sites and solutions around your users, but this data can be hard to find and take action on when you need to use a handful of independent tools and draw insights from them yourself.

Read this article to learn about a powerful new approach to understanding the whole user experience and how to improve it with Hotjar, an all-in-one analytics and feedback tool.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   Trackbacks (0)

290. Simplify Your PHP Applications Testing Using LXC in Your Development Environment

Updated on: 2015-06-18

Posted on:

LXC is a lightweight virtualization technology that runs on top of Linux to create application testing environments without having to install full virtual machines.

Read this article to learn how to setup LXC to test your PHP applications on your development environment without waste of resources of your machine and with great control of the software you use to test your PHP software with all other software packages and tools you need just like if you were running them on your production enviroment.


Blog More ...   Post a comment Post a comment   See comments See comments (6)   Trackbacks (0)

  274 - 265   ...   124 - 115   114 - 105   104 - 95   94 - 85   84 - 75   74 - 65   64 - 55   54 - 45   44 - 35   34 - 25   24 - 15   14 - 5   4 - 1  
  All package blogs All package blogs   Blog PHP Classes blog   Blog PHP Tutorials   Post article Post article