PHP Classes

PHP Classes blog

Recommend this page to a friend!

Latest PHP Classes blog posts

  All package blogs All package blogs   Blog PHP Classes blog   Post article Post article  
  1994 - 1985   ...   394 - 385   384 - 375   374 - 365   364 - 355   354 - 345   344 - 335   334 - 325   324 - 315   314 - 305   304 - 295   294 - 285   284 - 275   ...   4 - 1  

308. How to Make Better Reuse of PHP Code using Traits Part 2: Advanced Traits Usage Explained

Updated on: 2015-08-19

Posted on:

In the first part of this article we learned how to use PHP traits to organize better functionality to be reused by multiple unrelated classes.

Read this article to learn more about advanced features of traits like solving conflicts when using traits that define the same properties, changing the visibility of a trait method in the class that uses it, reusing traits within traits, examples of packages that provide general purpose traits for use by many other packages.


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

307. Google and Intel to Help PHP 7 to Become Faster and More Secure - Lately in PHP podcast episode 62

Updated on: 2023-08-22

Posted on:

Recently researchers from Google and Intel have approached the PHP core developers to offer to contribute to PHP development by implementing features that will make PHP fast and more secure.

These Google and Intel researchers help offers and their first proposals was one the main topics commented by Manuel Lemos and Arturs Sosins in the episode 62 of the Lately in PHP podcast.

They also commented on a proposal for having type hinting in class variables in future PHP 7 versions, new reports that show how PHP 7 performance is improving on day by day basis, as well other PHP 7 feature proposals.

They also commented on the latest PHP tutorial articles and book reviews published in the last month.

Listen to the podcast, or watch the hangout video, or read the transcript to learn more about these interesting PHP topics.


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

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:

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.


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

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)

302. Top 10 PHP Tips Every Developer Should Know

Updated on: 2015-08-04

Posted on:

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).


Blog More ...   Post a comment Post a comment   See comments See comments (3)   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)

1. How to Render 3D Surfaces in PHP using 2D Contour Plots

Updated on: 2015-07-27

Posted on:

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.


Blog More ...   Post a comment Post a comment   See comments See comments (0)   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)

  1994 - 1985   ...   394 - 385   384 - 375   374 - 365   364 - 355   354 - 345   344 - 335   334 - 325   324 - 315   314 - 305   304 - 295   294 - 285   284 - 275   ...   4 - 1  
  All package blogs All package blogs   Blog PHP Classes blog   Post article Post article