2. How to Limit the Number of Class Objects using PHP Singleton and Multiton Design Patterns
Updated on: 2021-04-29
Posted on: 2021-04-29
Blog: TonTon PHP Singleton Trait New Generation package blog
Package: TonTon PHP Singleton Trait New Generation
These design patterns are very useful for PHP developers in certain circumstances.
Read this article to learn why the singleton and multiton can be useful in PHP projects and how you can use them in general purpose project and in particular in WordPress projects.
More ... Post a comment See comments (1) Trackbacks (0)
1. How to Use a PHP Error Bag to Organize Better the Messages that Applications Generate
Updated on: 2021-04-27
Posted on: 2021-04-27
Blog: PHP Message Container package blog
Package: PHP Message Container
This approach allows a better organization of the way messages may be stored by applications.
This package provides a PHP implementation of the message bag storage approach.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement a Fast PHP Message Queue System to Scale Applications Running Long Tasks in the Background
Updated on: 2021-04-26
Posted on: 2021-04-26
Blog: MesQ PHP Queue Management System package blog
Package: MesQ PHP Queue Management System
There are many message queuing solution types. Some rely on having a specific message queuing server software.
This package provides a simple solution that relies only local files to store messages in a queue.
More ... Post a comment See comments (0) Trackbacks (0)
1. How Can a PHP Functional Programming Library Be Used to Process Sequences of Actions in a Simpler Way
Updated on: 2021-04-23
Posted on: 2021-04-23
Blog: Either package blog
Package: Either
Using the traditional if and else code structures may become confusing when there is a long sequence of actions that can be executed conditionally.
Read this article to learn how to use a functional programming approach with the Either package to avoid using the if and else statements to make the code less confusing.
Exception handling as a form of code micromanagement
We introduce a structure called Either. It's used on the functional world with programming languages like Haskell ad Scala. After I started using it, I appreciate the way it turns my PHP code more clear.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Use PHP Singleton Trait Variants to Limit the Number of Class Instances that Can Be Created to More Than One Object
Updated on: 2021-04-22
Posted on: 2021-04-22
Blog: TonTon PHP Singleton Trait New Generation package blog
Package: TonTon PHP Singleton Trait New Generation
Multiton is a variant of the singleton design pattern that allows more than one instance of a class to exist up to a given limit.
This package provides a solution to implement singleton or multiton classes that can have its variable values be saved to a MemCached container, so the objects can be loaded with the same class values in other times that a script is run after the original script that has set the class variable has ended.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Use a Simple Database Connection Class
Updated on: 2021-04-20
Posted on: 2021-04-20
Blog: PHP MySQL Database package blog
Package: PHP MySQL Database
There are many classes to connect to a database. The best and the ones that are simple and easy to understand, so everybody can use them with a good sense of what is going on in the class.
Read this short tutorial article to learn how you can use the PHP MySQL Database class to perform all database query functions with the least complexity.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Implement PHP Full Text Search without Database to Search for Project Files
Updated on: 2021-04-20
Posted on: 2021-04-20
Blog: Website PHP Full Text Search package blog
Package: Website PHP Full Text Search
This package provides a solution for finding the information they need with support to filter the section to text that may be in the files in sections delimited by certain start and end text marks.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Create PHP Site from Scratch Very Quickly
Updated on: 2021-04-19
Posted on: 2021-04-19
Blog: Update Site package blog
Package: Update Site
Often WordPress is a choice of many developers but it is already too powerful and complex to setup and configure so quickly.
Read this article to learn how to use a simple Update Site class to create a new and simple PHP site made of articles from scratch very quickly.
More ... Post a comment See comments (0) Trackbacks (0)
1. How to Access Databases from PHP using Less Code with the Cursor Class Similar to Android Cursor
Updated on: 2021-04-16
Posted on: 2021-04-16
Blog: PHP SQL Cursor package blog
Package: PHP SQL Cursor
Read this article to learn how to access databases using the Cursor class to reduce the amount of code that you need to write to implement your PHP applications.
More ... Post a comment See comments (1) Trackbacks (0)
1. How to Use a Laravel Theme Package to Customize the Presentation of a PHP Web Application
Updated on: 2021-04-15
Posted on: 2021-04-15
Blog: PHP Theme For Website package blog
Package: PHP Theme For Website
Laravel make it easier for developers to define many aspects of an application including the way the applications are presented to their users by the means of HTML templates, images, CSS and JavaScript files. These files can be combined to form a presentation theme.
This package allows to pack all theme files into a compressed archive. This way, a theme can be easily installed or distributed.
More ... Post a comment See comments (0) Trackbacks (0)