306. How to Create a PHP C Extension to Manipulate Arrays Part 2: Adding ArrayAccess and Traversable interfaces
Updated on: 2016-06-22
Posted on: 2015-08-13
In the first part of this article we learned how to create an extension for PHP written in C to create a class that works like arrays. However, to make the class objects really behave as arrays you need to implement certain interfaces in the class.
Read this article to learn how to make a PHP class defined by a C extension implement ArrayAccess and Traversable interfaces, as well understand how to solve problems that you may encounter that can make your extension slower than you expect.
More ...
Post a comment
See comments (1) Trackbacks (0)
Read this article to learn how to make a PHP class defined by a C extension implement ArrayAccess and Traversable interfaces, as well understand how to solve problems that you may encounter that can make your extension slower than you expect.
305. How to Make Better Reuse of PHP Code using Traits Part 1: Basic Code Reuse
Updated on: 2015-08-12
Posted on: 2015-08-12
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.
More ...
Post a comment
See comments (11) Trackbacks (0)
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.
304. How to Create a PHP C Extension to Manipulate Arrays - Part 1: Basic Array Class Extension
Updated on: 2015-08-13
Posted on: 2015-08-11
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.
More ...
Post a comment
See comments (3) Trackbacks (0)
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.
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: 2015-08-06
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.
More ...
Post a comment
See comments (20) Trackbacks (0)
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.
302. Top 10 PHP Tips Every Developer Should Know
Updated on: 2015-08-04
Posted on: 2015-08-04
Being a good PHP developer means that you apply many good practices that show that you know what you are doing and that reflects in the quality of the PHP projects that you work on.
You may give more importance to some practices than others because your criteria may be different from other developers.
Read this article to learn and see an infographic about what are the top 10 good practices that every PHP developer should know (IMHO of course).
More ...
Post a comment
See comments (3) Trackbacks (0)
You may give more importance to some practices than others because your criteria may be different from other developers.
Read this article to learn and see an infographic about what are the top 10 good practices that every PHP developer should know (IMHO of course).
301. What You Should Do Before Pushing PHP Code to your Production GIT Repository
Updated on: 2015-07-29
Posted on: 2015-07-29
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.
More ...
Post a comment
See comments (6) Trackbacks (0)
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.
1. How to Render 3D Surfaces in PHP using 2D Contour Plots
Updated on: 2015-07-27
Posted on: 2015-07-27
Blog: PHP Contour Plot package blog
Package: PHP Contour Plot
Contour plots are graphics that render lines that connect points in a geographic region that have the same value, for instance points in a terrain with the same altitude. They are useful for instance to represent 3D features of a terrain in a 2D image.
Read this article to learn more about contour plots and how to render them using the PHP Contour Plot package.
More ...
Post a comment
See comments (0) Trackbacks (0)
Read this article to learn more about contour plots and how to render them using the PHP Contour Plot package.
300. Using PHP Object Interfaces
Updated on: 2015-07-22
Posted on: 2015-07-22
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.
More ...
Post a comment
See comments (4) Trackbacks (0)
Read this tutorial to learn the different ways to implement interfaces and set up interface dependencies in PHP.
299. Can PHP Run Faster as Module of NGINX? - Lately in PHP podcast episode 61
Updated on: 2015-08-16
Posted on: 2015-07-21
A recent article in the NGINX blog claims that its thread pools feature can enhance the performance by 9 times of that Web server.
PHP core developers have been debating the pros and cons of implementing a new SAPI to make PHP work as NGINX module and hopefully take advantage of the thread pools feature to enhance PHP request serving performance.
This was one the topics commented by Manuel Lemos and Arturs Sosins in the episode 61 of the Lately in PHP podcast.
They also commented on the latest PHP 7 alpha and beta versions, PHP 5.4 EOL and PHP 5.5 releases going into security fixes mode, the 20 years of PHP and 16 years of the PHP Classes site, and many interesting PHP articles and book reviews published recently.
Listen to the podcast, or watch the hangout video, or read the transcript to learn more about these interesting PHP topics.
More ...
Post a comment
See comments (0) Trackbacks (0)
PHP core developers have been debating the pros and cons of implementing a new SAPI to make PHP work as NGINX module and hopefully take advantage of the thread pools feature to enhance PHP request serving performance.
This was one the topics commented by Manuel Lemos and Arturs Sosins in the episode 61 of the Lately in PHP podcast.
They also commented on the latest PHP 7 alpha and beta versions, PHP 5.4 EOL and PHP 5.5 releases going into security fixes mode, the 20 years of PHP and 16 years of the PHP Classes site, and many interesting PHP articles and book reviews published recently.
Listen to the podcast, or watch the hangout video, or read the transcript to learn more about these interesting PHP topics.
2. Improving PHP Password Authentication Robustness of a PHP Framework
Updated on: 2015-07-20
Posted on: 2015-07-20
Blog: PHP User Credentials package blog
Package: PHP User Credentials
The PHP User Credentials package provides several means to make password generation and the user authentication process more robust, helping to prevent several types of security problems.
Read this article to learn how to use this class as a plugin to improve the security capabilities of a PHP framework, in this example the OpenBiz-Cubi Framework.
More ...
Post a comment
See comments (0) Trackbacks (0)
Read this article to learn how to use this class as a plugin to improve the security capabilities of a PHP framework, in this example the OpenBiz-Cubi Framework.
