Tagged articles

PHP

3051 articles · Page 17 of 31
php Courses
php Courses
Jan 9, 2024 · Databases

Efficiently Inserting 10 Million Records into MySQL with PHP

This tutorial explains how to use PHP and PDO to quickly insert ten million rows into a remote MySQL database by preparing the connection, employing batch inserts, managing transactions, tuning MySQL settings, and optionally using the LOAD DATA statement for optimal performance.

Bulk InsertMySQLPDO
0 likes · 6 min read
Efficiently Inserting 10 Million Records into MySQL with PHP
Open Source Tech Hub
Open Source Tech Hub
Jan 6, 2024 · Backend Development

Securely Implement Pusher Private Channels with PHP and JavaScript

This guide explains how to restrict access to Pusher channels using private channels, covering authentication flow, required server‑side PHP setup, client‑side JavaScript integration, and step‑by‑step code examples for publishing and receiving secure real‑time messages.

JavaScriptPHPPrivate Channels
0 likes · 5 min read
Securely Implement Pusher Private Channels with PHP and JavaScript
php Courses
php Courses
Jan 5, 2024 · Backend Development

Understanding PHP count() and sizeof() Functions: Differences, Usage, and Tips

This article explains the PHP count() and sizeof() functions, clarifying that they are aliases with identical behavior, showing basic usage examples, discussing when to prefer one over the other, and offering performance notes, recursive counting, and object handling tips for developers.

BackendPHPPerformance
0 likes · 4 min read
Understanding PHP count() and sizeof() Functions: Differences, Usage, and Tips
php Courses
php Courses
Jan 4, 2024 · Backend Development

Common PHP Functions for Searching and Filtering Data

This article introduces essential PHP functions such as strpos, strstr, in_array, array_search, htmlspecialchars, and filter_var, providing clear explanations and example code to help developers efficiently search, filter, and validate strings, arrays, and input data.

Data ValidationPHPString Functions
0 likes · 4 min read
Common PHP Functions for Searching and Filtering Data
php Courses
php Courses
Jan 4, 2024 · Backend Development

Five Lesser-Known Laravel Artisan Commands to Boost Development Efficiency

This article introduces five lesser‑known Laravel Artisan commands—event:generate, vendor:publish with assets tag, optimize, make:policy, and down with a custom message—explaining how each can streamline development, improve performance, and simplify maintenance tasks for developers.

ArtisanCLILaravel
0 likes · 6 min read
Five Lesser-Known Laravel Artisan Commands to Boost Development Efficiency
php Courses
php Courses
Jan 4, 2024 · Backend Development

Using Swoole Coroutines to Achieve High Concurrency in PHP Applications

This article explains how to boost PHP application performance by installing the Swoole extension and using its coroutine API to run concurrent tasks such as HTTP requests and database queries, providing code examples and configuration steps for effective backend concurrency.

CoroutinesPHPSwoole
0 likes · 4 min read
Using Swoole Coroutines to Achieve High Concurrency in PHP Applications
High Availability Architecture
High Availability Architecture
Jan 4, 2024 · Backend Development

Refactoring and Optimizing Tencent News Backend Service: Reducing Technical Debt, Improving Efficiency, and Enhancing Stability

This article details the challenges of Tencent News' legacy backend page service, including high code debt, low development efficiency, and poor stability, and describes the systematic refactoring, configuration-driven redesign, performance optimization, and tooling (xhprof, Xdebug, expr) employed to improve maintainability, scalability, and reliability.

BackendPHPconfiguration management
0 likes · 14 min read
Refactoring and Optimizing Tencent News Backend Service: Reducing Technical Debt, Improving Efficiency, and Enhancing Stability
php Courses
php Courses
Jan 3, 2024 · Backend Development

How to Strengthen Website Password Security Using PHP

This article explains how to enhance website password security in PHP by using hash functions, adding salts, employing password_hash and password_verify, enforcing strong password policies, scheduling regular password changes, and implementing measures against brute‑force attacks.

BackendPHPhashing
0 likes · 5 min read
How to Strengthen Website Password Security Using PHP
php Courses
php Courses
Jan 3, 2024 · Fundamentals

Adapter Design Pattern for Integrating Multiple E‑Commerce APIs in PHP

This article explains the Adapter design pattern, illustrates the challenges of aggregating product data from diverse e‑commerce APIs, and provides a complete PHP implementation—including interface definitions, adaptor classes for Shopify, BigCommerce, and WooCommerce, and a ProductFeed aggregator—to achieve a maintainable, extensible solution.

Adapter PatternBackend IntegrationDesign Patterns
0 likes · 9 min read
Adapter Design Pattern for Integrating Multiple E‑Commerce APIs in PHP
Open Source Tech Hub
Open Source Tech Hub
Jan 3, 2024 · Backend Development

How to Package Webman into a Standalone Linux Binary (x86_64)

This guide explains how to install Webman, configure the project, build a self‑contained binary for x86_64 Linux using PHP's phar mechanism, run and monitor the binary, and outlines important compatibility notes and alternative manual packaging methods.

BackendLinuxPHP
0 likes · 8 min read
How to Package Webman into a Standalone Linux Binary (x86_64)
Tencent Cloud Developer
Tencent Cloud Developer
Jan 2, 2024 · Backend Development

Tencent News Bottom Page Service Upgrade: Refactoring, Configuration, and Performance Optimization

Tencent News refactored its high‑traffic bottom‑page service—handling over 35 k QPS and a billion daily requests—by cleaning 100 k lines of PHP, adopting a JSON‑driven expr configuration layer, integrating profiling tools and CI/CD, which unified five entry scenarios, cut latency, boosted cache hits and raised stability dramatically.

MicroservicesPHPconfiguration management
0 likes · 14 min read
Tencent News Bottom Page Service Upgrade: Refactoring, Configuration, and Performance Optimization
php Courses
php Courses
Jan 2, 2024 · Backend Development

Best Practices for PHP Packaging and Automated Deployment

This article presents a practical, case‑based guide to PHP packaging and automated deployment, covering Composer‑based packaging, Git version control, and Capistrano‑driven deployment to improve development efficiency and project management for teams handling large‑scale web applications.

CapistranoComposerGit
0 likes · 5 min read
Best Practices for PHP Packaging and Automated Deployment
php Courses
php Courses
Jan 2, 2024 · Backend Development

PHP Function Overloading Analysis and Practical Pseudo‑Overloading Techniques

The article explains why PHP cannot support true function overloading due to its weak typing, then demonstrates three practical techniques—default parameters, using func_get_args with call_user_func_array, and the __call magic method—to achieve pseudo‑overloading with illustrative code examples.

Magic MethodPHPfunction overloading
0 likes · 4 min read
PHP Function Overloading Analysis and Practical Pseudo‑Overloading Techniques
php Courses
php Courses
Dec 29, 2023 · Backend Development

How to Traverse Directories and Retrieve File Information in PHP

This article explains how to use PHP functions such as opendir, readdir, is_dir, and scandir to open directories, read file names, perform recursive traversal of subfolders, and retrieve file information, providing clear code examples for each method.

PHPdirectory traversalopendir
0 likes · 5 min read
How to Traverse Directories and Retrieve File Information in PHP
php Courses
php Courses
Dec 29, 2023 · Backend Development

Understanding PHP Function Parameter Passing: Pass-by-Value, Pass-by-Reference, Default and Variable‑Length Arguments

This article explains PHP function parameter passing, covering pass‑by‑value versus pass‑by‑reference, how to define functions with multiple, default, and variable‑length arguments, and provides clear code examples illustrating each technique for backend developers.

Function ParametersPHPPass by Reference
0 likes · 4 min read
Understanding PHP Function Parameter Passing: Pass-by-Value, Pass-by-Reference, Default and Variable‑Length Arguments
php Courses
php Courses
Dec 28, 2023 · Backend Development

Using PHP mb_strlen() to Measure Multibyte String Length

This article explains how the PHP mb_strlen() function from the mbstring extension can accurately calculate the length of multibyte strings such as Chinese or Japanese, shows its syntax, optional encoding parameter, and provides practical code examples for length checking and validation.

BackendCodingPHP
0 likes · 5 min read
Using PHP mb_strlen() to Measure Multibyte String Length
php Courses
php Courses
Dec 28, 2023 · Backend Development

Using Traits to Reduce Code Duplication in PHP Object‑Oriented Programming

This article explains how PHP traits enable code reuse across multiple classes, illustrating the problem of duplicated methods in Person‑derived classes like Student, Guardian, and Teacher, and showing step‑by‑step refactoring to eliminate redundancy while maintaining clear inheritance structures.

Object-Oriented ProgrammingPHPTraits
0 likes · 6 min read
Using Traits to Reduce Code Duplication in PHP Object‑Oriented Programming
php Courses
php Courses
Dec 27, 2023 · Backend Development

Using PHP’s fsockopen() Function to Open Network Connections

This article explains the PHP fsockopen() function, detailing its syntax, parameters, return values, and provides a complete example that demonstrates opening a TCP connection, sending an HTTP request, handling errors, and reading the response, including notes on SSL connections.

BackendPHPSocket
0 likes · 4 min read
Using PHP’s fsockopen() Function to Open Network Connections
php Courses
php Courses
Dec 26, 2023 · Information Security

Preventing Cross-Site Scripting (XSS) in PHP Using Data Filtering

This article explains the principles of XSS attacks and demonstrates how to prevent them in PHP by using htmlspecialchars for output escaping, mysqli or PDO prepared statements for database queries, and the filter_var function with appropriate filters, providing clear code examples for each method.

Data FilteringPHPPrepared Statements
0 likes · 5 min read
Preventing Cross-Site Scripting (XSS) in PHP Using Data Filtering
php Courses
php Courses
Dec 26, 2023 · Backend Development

Using PHP's urlencode Function for URL Encoding

URL encoding is essential for transmitting data safely on the internet, and this article explains PHP's built‑in urlencode function, demonstrates encoding of both ASCII and non‑ASCII strings with example code, and discusses handling spaces and the alternative rawurlencode function.

BackendPHPURL encoding
0 likes · 4 min read
Using PHP's urlencode Function for URL Encoding
php Courses
php Courses
Dec 26, 2023 · Backend Development

Using strtoupper() in PHP to Convert Strings to Uppercase

This article explains how to use PHP's strtoupper() function to convert strings to uppercase, covering its syntax, parameters, return values, and multiple code examples demonstrating handling of simple text, multi-word sentences, and strings containing numbers or special characters.

BackendPHPString Manipulation
0 likes · 4 min read
Using strtoupper() in PHP to Convert Strings to Uppercase
php Courses
php Courses
Dec 26, 2023 · Backend Development

Advanced Laravel Development: Best Practices and Common Pitfalls

This article guides developers on becoming advanced Laravel programmers by explaining the framework’s ecosystem, naming conventions, effective use of Eloquent ORM and relationships, applying the DRY principle, separating business logic, and offering optimization tips, all illustrated with correct and incorrect code examples.

EloquentLaravelMVC
0 likes · 9 min read
Advanced Laravel Development: Best Practices and Common Pitfalls
php Courses
php Courses
Dec 25, 2023 · Backend Development

Using PHP and SOAP Protocol to Implement Web Service Communication

This article explains how to use PHP's built‑in SOAP extension to create a SoapClient, invoke web service methods with simple and complex parameters, handle exceptions, and implement authentication via SoapHeader, providing complete code examples.

APIPHPSOAP
0 likes · 5 min read
Using PHP and SOAP Protocol to Implement Web Service Communication
php Courses
php Courses
Dec 25, 2023 · Backend Development

How to Randomly Shuffle Array Elements Using PHP's shuffle Function

This article explains how to use PHP's built-in shuffle() function to randomly reorder array elements, covering its syntax, return value, example code for indexed and associative arrays, handling of multidimensional arrays, and important considerations such as in‑place modification and preserving original data.

BackendPHPShuffle
0 likes · 3 min read
How to Randomly Shuffle Array Elements Using PHP's shuffle Function
php Courses
php Courses
Dec 25, 2023 · Backend Development

Top 10 Laravel Packages to Know in 2024

This article introduces the ten most noteworthy Laravel packages for 2024, covering authentication, markdown rendering, real‑time UI, image processing, debugging, search, Excel import/export, queue handling, localization, and automatic API generation, each with concise explanations and code examples.

APIAuthenticationLaravel
0 likes · 8 min read
Top 10 Laravel Packages to Know in 2024
php Courses
php Courses
Dec 23, 2023 · Backend Development

Implementing User Impersonation in Laravel with the Lab404 Impersonate Package

This guide explains how to add user impersonation to a Laravel application using the Lab404 Impersonate package, covering installation, service provider registration, session handling, helper functions, routing, and API methods for starting and ending impersonation sessions.

AuthenticationImpersonationLaravel
0 likes · 6 min read
Implementing User Impersonation in Laravel with the Lab404 Impersonate Package
php Courses
php Courses
Dec 22, 2023 · Backend Development

Using PHP str_word_count() Function to Count Words in a String

This article explains the PHP str_word_count() function, detailing its syntax, parameters, and return formats, and provides multiple code examples demonstrating how to count words, retrieve word lists, obtain word positions, and customize ignored characters for string processing.

Backend DevelopmentPHPString processing
0 likes · 4 min read
Using PHP str_word_count() Function to Count Words in a String
Open Source Tech Hub
Open Source Tech Hub
Dec 22, 2023 · Databases

Mastering RedisSearch: Build Fast Full-Text Search on Redis with PHP

This guide introduces RedisSearch, walks through installation, explains its rich feature set, details core concepts like data models and indexing, shows command‑line operations for creating indexes and querying, and provides a complete PHP example for integrating RedisSearch into applications.

PHPRedisRedisSearch
0 likes · 9 min read
Mastering RedisSearch: Build Fast Full-Text Search on Redis with PHP
php Courses
php Courses
Dec 21, 2023 · Backend Development

Implementing a Data Search Feature with PHP and Vue

This article demonstrates how to build a simple data search feature by creating a PHP backend API using PDO for database queries and a Vue.js frontend that sends Ajax requests, processes the JSON response, and displays matching student records in a list.

Data SearchPDOPHP
0 likes · 6 min read
Implementing a Data Search Feature with PHP and Vue
php Courses
php Courses
Dec 21, 2023 · Backend Development

Accelerating Image Processing in PHP with GD, Caching, and Parallel Execution

This article explains how to speed up PHP image processing by using the GD library for resizing, implementing file‑based caching to avoid redundant work, and leveraging Swoole‑based parallel processing to handle multiple images concurrently, complete with practical code examples.

GDPHPimage processing
0 likes · 6 min read
Accelerating Image Processing in PHP with GD, Caching, and Parallel Execution
php Courses
php Courses
Dec 21, 2023 · Frontend Development

Implementing Image Lazy Loading in PHP: A Step‑by‑Step Guide

This article explains how to implement image lazy loading in PHP by extracting image URLs, generating placeholder tags with data-src attributes, monitoring scroll events via JavaScript, and applying CSS transitions, providing a step‑by‑step guide with complete code examples to improve page load performance.

Image OptimizationJavaScriptPHP
0 likes · 5 min read
Implementing Image Lazy Loading in PHP: A Step‑by‑Step Guide
php Courses
php Courses
Dec 19, 2023 · Backend Development

PHP Error Handling Functions and Examples

This article explains PHP error handling by describing common error types, introducing built‑in functions such as die(), error_get_last(), error_reporting(), set_error_handler(), and error_log(), and providing code examples that demonstrate how to capture, display, customize, and log errors in backend applications.

PHPerror handling
0 likes · 6 min read
PHP Error Handling Functions and Examples
php Courses
php Courses
Dec 19, 2023 · Backend Development

How to Build a Simple Online Translation Tool with PHP

This article guides readers through creating a simple online translation feature using PHP, covering prerequisite steps such as obtaining a translation API key, writing the core translation function, handling user input via an HTML form, and testing the implementation.

Google TranslatePHPTranslation API
0 likes · 4 min read
How to Build a Simple Online Translation Tool with PHP
php Courses
php Courses
Dec 19, 2023 · Backend Development

When and How to Use Static Methods in Laravel and PHP

This guide explains the appropriate scenarios for using static methods in Laravel/PHP, illustrates their implementation with practical code examples, highlights challenges such as dependency injection, testing, and calling other methods, and offers best‑practice recommendations for maintainable backend development.

LaravelPHPbest practices
0 likes · 11 min read
When and How to Use Static Methods in Laravel and PHP
Python Programming Learning Circle
Python Programming Learning Circle
Dec 18, 2023 · Backend Development

phpy – A PHP Extension for Seamless Integration with the Python Ecosystem

The article introduces phpy, an open‑source Swoole project that embeds the Python ecosystem into PHP, explains its features, provides detailed compilation and installation steps, demonstrates usage through code examples—including AI libraries, GUI creation, named arguments, and callbacks—and shares real‑world sample applications.

BackendExtensionInstallation
0 likes · 9 min read
phpy – A PHP Extension for Seamless Integration with the Python Ecosystem
php Courses
php Courses
Dec 18, 2023 · Backend Development

Using PHP rmdir() to Delete Empty Directories

This article explains the PHP rmdir() function, its syntax, parameters, return values, important usage notes, and provides a complete code example that checks for a directory's existence before safely removing an empty folder.

BackendFile SystemPHP
0 likes · 3 min read
Using PHP rmdir() to Delete Empty Directories
php Courses
php Courses
Dec 16, 2023 · Backend Development

Using PHP fwrite() to Write Data to Files

This article explains the PHP fwrite() function, its syntax, parameters, and provides clear examples for writing strings and serialized arrays to files, highlighting proper file opening modes and error handling.

BackendFile HandlingPHP
0 likes · 4 min read
Using PHP fwrite() to Write Data to Files
php Courses
php Courses
Dec 16, 2023 · Databases

Why EXISTS() Is More Efficient Than COUNT() in MySQL and Laravel

Using MySQL's EXISTS() function for existence checks is generally more efficient and readable than COUNT(), especially in large datasets, and Laravel provides convenient query builder methods to implement EXISTS() queries, offering performance gains over COUNT() in PHP applications.

COUNTLaravelMySQL
0 likes · 6 min read
Why EXISTS() Is More Efficient Than COUNT() in MySQL and Laravel
php Courses
php Courses
Dec 15, 2023 · Backend Development

Understanding and Using the PHP fseek() Function

The article explains the purpose and syntax of PHP's fseek() function, details its parameters—including file, offset, and whence options such as SEEK_SET, SEEK_CUR, and SEEK_END—provides a complete example demonstrating file opening, pointer positioning, reading, writing, and closing operations.

BackendFile HandlingPHP
0 likes · 4 min read
Understanding and Using the PHP fseek() Function
php Courses
php Courses
Dec 15, 2023 · Backend Development

Using PHP htmlspecialchars() to Escape Special Characters

This article explains the PHP htmlspecialchars() function, its syntax and parameters, demonstrates how to escape special characters, quotes, and specify encoding or disable double‑encoding, and shows how it helps prevent XSS attacks in web applications.

BackendPHPXSS
0 likes · 4 min read
Using PHP htmlspecialchars() to Escape Special Characters
php Courses
php Courses
Dec 14, 2023 · Backend Development

Optimizing PHP Performance with Faster Built-in Functions

This article explains how to boost PHP web application performance by replacing inefficient built-in functions such as count(), array_search(), preg_replace(), and mysqli_fetch_array() with faster alternatives like strlen(), in_array(), str_replace(), and mysqli_fetch_assoc(), and demonstrates memory release using unset() through clear code examples.

OptimizationPHP
0 likes · 6 min read
Optimizing PHP Performance with Faster Built-in Functions
php Courses
php Courses
Dec 14, 2023 · Fundamentals

Understanding Different Types of Value Objects and Their Implementation in PHP

This article explores simple, complex, and composite value objects in PHP, providing guidelines for their design, validation, immutability, string representation, equality checks, while also discussing alternative error handling approaches such as Either types and union types.

Domain-Driven DesignPHPValue Objects
0 likes · 16 min read
Understanding Different Types of Value Objects and Their Implementation in PHP
php Courses
php Courses
Dec 14, 2023 · Backend Development

Building a Simple Web Crawler with PHP on Linux

This article explains how to create a basic web crawler in a Linux environment using PHP, covering prerequisite installations, script development with cURL and DOMDocument, execution steps, and sample output while emphasizing legal and ethical considerations for web scraping.

DOMDocumentLinuxPHP
0 likes · 4 min read
Building a Simple Web Crawler with PHP on Linux
php Courses
php Courses
Dec 13, 2023 · Backend Development

Handling Cross-Origin Requests and Security Restrictions in PHP

This article explains how to use PHP functions such as header(), mysqli_real_escape_string(), and htmlspecialchars() to enable cross-origin resource sharing, handle preflight OPTIONS requests, and protect against SQL injection and XSS attacks, thereby improving web security and user experience.

CORSPHPXSS
0 likes · 4 min read
Handling Cross-Origin Requests and Security Restrictions in PHP
php Courses
php Courses
Dec 13, 2023 · Backend Development

Optimizing Web Page Encoding and Character Conversion with PHP

This article explains how to set the correct character encoding for web pages and demonstrates PHP functions such as meta charset, iconv, urlencode/urldecode, and mysqli_real_escape_string with practical code examples to ensure proper display and safe database insertion.

Character EncodingIConvMySQLi
0 likes · 5 min read
Optimizing Web Page Encoding and Character Conversion with PHP
php Courses
php Courses
Dec 13, 2023 · Fundamentals

Understanding Classes, Objects, and OOP Principles in PHP

This article introduces the core concepts of object‑oriented programming—classes, objects, abstraction, encapsulation, inheritance, and polymorphism—using clear explanations and practical PHP code examples that demonstrate class definitions, object instantiation, method calls, and inheritance hierarchies.

ClassesEncapsulationInheritance
0 likes · 9 min read
Understanding Classes, Objects, and OOP Principles in PHP
php Courses
php Courses
Dec 12, 2023 · Backend Development

Using PHP 8 Match Expression to Simplify Conditional Logic

The article introduces PHP 8’s Match expression, explains its syntax, and demonstrates through multiple code examples how it simplifies conditional logic compared to traditional if‑else and switch statements, improving readability and maintainability in backend development.

PHPconditional statementsmatch expression
0 likes · 4 min read
Using PHP 8 Match Expression to Simplify Conditional Logic
php Courses
php Courses
Dec 12, 2023 · Backend Development

Optimizing PHP Performance with Efficient Built-in Functions

This article explains how to improve PHP web application performance by replacing slower built‑in functions such as count(), array_search(), preg_replace(), and mysqli_fetch_array() with faster alternatives like strlen() with implode(), in_array(), str_replace(), and mysqli_fetch_assoc(), and also shows how to free memory using unset().

OptimizationPHPbuilt-in functions
0 likes · 6 min read
Optimizing PHP Performance with Efficient Built-in Functions
php Courses
php Courses
Dec 11, 2023 · Backend Development

How to Reduce Server Load Using PHP: Caching, Pagination, and Result Caching

This article explains how to lower server load in PHP applications by employing caching mechanisms such as Memcached or Redis, implementing pagination to limit data per request, and caching computational results, while providing concrete code examples for each technique.

PHPPerformance OptimizationServer Load
0 likes · 6 min read
How to Reduce Server Load Using PHP: Caching, Pagination, and Result Caching
php Courses
php Courses
Dec 11, 2023 · Backend Development

Using Memcache in PHP for Efficient Data Storage and Retrieval

This guide explains how to install, configure, and use Memcache in PHP for fast data storage, retrieval, and deletion, including connection setup, key‑value operations, cache miss handling, and optional advanced features to boost backend performance.

PHPmemcache
0 likes · 4 min read
Using Memcache in PHP for Efficient Data Storage and Retrieval
Open Source Tech Hub
Open Source Tech Hub
Dec 10, 2023 · Backend Development

Why WebSocket Heartbeat Is Essential and How to Implement It

This article explains why heartbeat detection is crucial for WebSocket connections, describes the underlying Ping/Pong mechanism, details server and client configuration parameters, and provides complete code examples for implementing reliable heartbeat and reconnection logic.

BackendPHPWebSocket
0 likes · 9 min read
Why WebSocket Heartbeat Is Essential and How to Implement It
21CTO
21CTO
Dec 10, 2023 · Backend Development

Why You Must Upgrade to PHP 8.3 Now: New Features, Security & Performance

The article explains PHP 8.0's end‑of‑life, presents usage statistics, highlights the risks of staying on older versions, and details the new features and improvements in PHP 8.3, urging developers to upgrade promptly for security, compatibility, and performance benefits.

Backend DevelopmentPHPPHP 8.3
0 likes · 5 min read
Why You Must Upgrade to PHP 8.3 Now: New Features, Security & Performance
Open Source Tech Hub
Open Source Tech Hub
Dec 10, 2023 · Backend Development

How to Persist WebSocket Messages with MySQL in a PHP Webman App

This guide explains how to implement server‑side WebSocket message persistence using MySQL, covering requirement analysis, database schema design, Think‑ORM integration, event handling code, testing scripts, and performance considerations for high‑concurrency scenarios.

MySQLPHPWebSocket
0 likes · 10 min read
How to Persist WebSocket Messages with MySQL in a PHP Webman App
Open Source Tech Hub
Open Source Tech Hub
Dec 9, 2023 · Backend Development

Build Real‑Time Group & Private Chat with WebSocket and PHP Validation

This guide explains how to design group and private chat messages, define a unified JSON protocol, validate payloads with a custom validator, and implement WebSocket callbacks (onWorkerStart, onWebSocketConnect, onMessage, onClose) using PHP and JavaScript client examples for both one‑to‑one and group conversations.

BackendPHPReal-time Chat
0 likes · 11 min read
Build Real‑Time Group & Private Chat with WebSocket and PHP Validation
php Courses
php Courses
Dec 9, 2023 · Backend Development

Using PHP str_replace() Function: Syntax, Examples, and Applications

This article explains the PHP str_replace() function, its syntax, parameter details, and provides multiple code examples demonstrating simple string replacement, array-based replacements, URL modification, and HTML tag transformation.

Backend DevelopmentCode ExamplesPHP
0 likes · 4 min read
Using PHP str_replace() Function: Syntax, Examples, and Applications
php Courses
php Courses
Dec 9, 2023 · Backend Development

How to Build a WebSocket Chat Server with PHP and Ratchet

This tutorial explains how to set up a real‑time chat application by installing the Ratchet library with Composer, creating a PHP WebSocket server, launching it, and building a simple HTML/JavaScript client that connects to ws://localhost:8080 to exchange messages instantly.

PHPReal-time ChatWebSocket
0 likes · 5 min read
How to Build a WebSocket Chat Server with PHP and Ratchet
php Courses
php Courses
Dec 9, 2023 · Backend Development

Using Value Objects in PHP 8.1/8.2 to Improve Code Quality

The article explains how the Value Object pattern, combined with PHP 8.1/8.2 features like readonly properties and named arguments, can eliminate primitive‑type validation duplication, prevent parameter‑order mistakes, and ensure immutability, thereby making PHP code more robust, maintainable, and self‑documenting.

Design PatternImmutablePHP
0 likes · 12 min read
Using Value Objects in PHP 8.1/8.2 to Improve Code Quality
php Courses
php Courses
Dec 8, 2023 · Backend Development

How to Create and Publish a Composer Package for PHP

This step‑by‑step guide shows how to set up a Composer package directory, write the package code, configure autoloading, add tests, publish the package to Packagist, and integrate it locally into a Laravel project, complete with all necessary commands and code examples.

ComposerLaravelPHP
0 likes · 5 min read
How to Create and Publish a Composer Package for PHP
php Courses
php Courses
Dec 7, 2023 · Backend Development

Improving Website Response Speed by Optimizing PHP Functions

This article explains how to boost website response speed by reducing PHP function calls, leveraging built-in functions, caching results, and employing asynchronous processing, providing clear code examples for each optimization technique in PHP.

PHPPerformance Optimizationasynchronous-processing
0 likes · 5 min read
Improving Website Response Speed by Optimizing PHP Functions
php Courses
php Courses
Dec 7, 2023 · Backend Development

Building a Native Desktop Application with NativePHP, Laravel, and Electron

This guide explains how to package a Laravel‑based PHP application into a standalone desktop app using NativePHP and Electron, covering installation, development workflow, adding native features like notifications, and creating production builds for Windows, macOS, and Linux.

DesktopAppElectronLaravel
0 likes · 7 min read
Building a Native Desktop Application with NativePHP, Laravel, and Electron
php Courses
php Courses
Dec 6, 2023 · Backend Development

Using PHP's array() Function to Create Indexed and Associative Arrays

This article explains PHP's built‑in array() function, demonstrating how to create both indexed and associative arrays with clear examples, code snippets, and important usage notes for developers. It also covers mixed and nested arrays, parameter rules, and common pitfalls to help you write robust PHP code.

BackendPHPTutorial
0 likes · 6 min read
Using PHP's array() Function to Create Indexed and Associative Arrays
Open Source Tech Hub
Open Source Tech Hub
Dec 6, 2023 · Backend Development

How to Install and Use PHPY: Bridge PHP with Python Libraries on Ubuntu

This guide walks you through installing PHPY on Ubuntu, covering the required environment setup, building PHP 8.3 from source, installing Anaconda and a Python 3.10 environment, compiling the PHPY extension, configuring php.ini, verifying the installation, and running a sample script that accesses Python's os module from PHP.

InstallationPHPPython
0 likes · 13 min read
How to Install and Use PHPY: Bridge PHP with Python Libraries on Ubuntu
php Courses
php Courses
Dec 5, 2023 · Backend Development

Using PHP file_put_contents() to Write Data to Files

This article explains the PHP file_put_contents() function, covering its syntax, parameters, return values, and multiple usage examples such as writing strings, appending data, handling arrays, and using callbacks, while also offering tips for efficient file operations in backend development.

Backend DevelopmentCode ExamplesFile Handling
0 likes · 5 min read
Using PHP file_put_contents() to Write Data to Files
php Courses
php Courses
Dec 5, 2023 · Backend Development

Understanding and Using PHP's in_array() Function

This article explains PHP's in_array() function, detailing its syntax, parameters, and return values, and provides multiple code examples demonstrating basic usage, strict type comparison, and practical tips for efficiently checking the presence of values in arrays.

BackendPHPTutorial
0 likes · 5 min read
Understanding and Using PHP's in_array() Function
21CTO
21CTO
Dec 4, 2023 · Backend Development

Unlock Python in PHP: Install and Use the phpy Extension

This article introduces phpy, a PHP‑Python bridge library from Swoole, explains its purpose of filling gaps in the PHP ecosystem, provides step‑by‑step compilation and installation instructions, and demonstrates how to call Python packages, handle callbacks, and build GUI or AI applications from PHP code.

ExtensionInteropPHP
0 likes · 12 min read
Unlock Python in PHP: Install and Use the phpy Extension
php Courses
php Courses
Dec 4, 2023 · Backend Development

Using PHP str_word_count() Function to Count Words in a String

This article explains the PHP str_word_count() function, its syntax, parameters, and provides multiple code examples showing how to count words, retrieve word arrays, obtain word positions, customize ignored characters, and use regular expressions for word matching.

BackendPHPString processing
0 likes · 5 min read
Using PHP str_word_count() Function to Count Words in a String
php Courses
php Courses
Dec 4, 2023 · Backend Development

Comparative Evaluation of Popular PHP Frameworks

This article provides a comprehensive comparison and evaluation of five major PHP frameworks—Laravel, Symfony, CodeIgniter, Phalcon, and Yii—highlighting their key features, performance characteristics, learning curves, and suitable project scenarios to help developers choose the most appropriate framework for their needs.

CodeIgniterFrameworksLaravel
0 likes · 4 min read
Comparative Evaluation of Popular PHP Frameworks
Open Source Tech Hub
Open Source Tech Hub
Dec 3, 2023 · Backend Development

Standardizing API Response Formats and Error Handling in PHP

This guide outlines a unified JSON response structure, defines standard HTTP status codes, presents common data payload formats, provides reusable PHP functions for broadcasting messages, and demonstrates custom error handling within a WebSocket gateway to improve backend consistency and robustness.

APIPHPWebSocket
0 likes · 6 min read
Standardizing API Response Formats and Error Handling in PHP
Open Source Tech Hub
Open Source Tech Hub
Dec 2, 2023 · Backend Development

Mastering WebSocket with Webman: From Handshake to Real‑Time Messaging

This guide explains WebSocket fundamentals, shows the HTTP handshake process, provides JavaScript client examples, and walks through a full server‑side implementation using the high‑performance PHP Webman framework with the GatewayWorker plugin, including installation, configuration, and advanced message handling.

GatewayWorkerPHPReal-time messaging
0 likes · 8 min read
Mastering WebSocket with Webman: From Handshake to Real‑Time Messaging
php Courses
php Courses
Dec 2, 2023 · Databases

Index Optimization Techniques for PHP and MySQL Multi‑Table Queries

Effective index design, including single‑table, foreign‑key, composite, and covering indexes, along with optimizer hints, can dramatically improve the performance of multi‑table queries in PHP‑MySQL applications, and the article provides practical examples and SQL statements for each technique.

Index OptimizationMySQLPHP
0 likes · 4 min read
Index Optimization Techniques for PHP and MySQL Multi‑Table Queries
php Courses
php Courses
Dec 2, 2023 · Backend Development

Using PHP strtr() Function for String Replacement

This article explains the PHP strtr() function, detailing its syntax and demonstrating four usage patterns—simple character replacement, multiple replacements, sequence replacements, and partial replacements—through clear code examples that illustrate how to substitute or remove substrings efficiently.

PHPstrtr
0 likes · 4 min read
Using PHP strtr() Function for String Replacement
php Courses
php Courses
Dec 2, 2023 · Backend Development

Using PHP file_exists() to Check File and Directory Existence

This article explains how the PHP file_exists() function works, its syntax, return values, usage examples for local and remote files as well as directories, and important considerations when employing it in backend development.

BackendPHPfile-existence
0 likes · 3 min read
Using PHP file_exists() to Check File and Directory Existence
php Courses
php Courses
Dec 1, 2023 · Backend Development

Using the ceil() Function in PHP to Round Numbers Upward

This article explains PHP's ceil() function, detailing its syntax, parameters, and behavior for rounding numbers upward, and provides three clear code examples demonstrating its use with positive, negative, and integer values, along with the expected output for each case.

BackendMathPHP
0 likes · 3 min read
Using the ceil() Function in PHP to Round Numbers Upward
php Courses
php Courses
Dec 1, 2023 · Backend Development

Implement Debounce and Duplicate Submission Prevention in PHP

This article explains how to implement debounce to limit frequent event triggers and prevent duplicate form submissions in PHP by using session storage and token validation, providing step‑by‑step instructions and complete code examples.

Duplicate SubmissionPHPSession
0 likes · 4 min read
Implement Debounce and Duplicate Submission Prevention in PHP
php Courses
php Courses
Nov 30, 2023 · Backend Development

Using PHP's is_callable() to Check Callable Functions and Methods

This article explains PHP's is_callable() function, describing its purpose, parameter options, and how to use it to verify the callability of functions and class methods, accompanied by clear code examples and a discussion of its benefits for robust, maintainable code.

BackendFunctionPHP
0 likes · 5 min read
Using PHP's is_callable() to Check Callable Functions and Methods
php Courses
php Courses
Nov 30, 2023 · Backend Development

Best Practices and Performance Optimization for the Singleton Pattern in PHP

This article explains the Singleton design pattern in PHP, covering best‑practice guidelines such as a private constructor, static accessor methods, and static instance storage, and presents performance‑enhancing techniques like lazy instantiation and safe serialization/deserialization with illustrative code examples.

Design PatternPHPbest practices
0 likes · 5 min read
Best Practices and Performance Optimization for the Singleton Pattern in PHP
php Courses
php Courses
Nov 29, 2023 · Backend Development

Comprehensive Guide to PHP Framework Development

This article provides a comprehensive guide to PHP framework development, covering core principles and architecture, routing and URL handling, database operations, authentication and authorization, template engine usage, caching mechanisms, as well as optimization and debugging techniques to improve development efficiency and code quality.

MVCPHPframework
0 likes · 5 min read
Comprehensive Guide to PHP Framework Development