Tagged articles
3002 articles
Page 16 of 31
php Courses
php Courses
Jan 30, 2024 · Backend Development

Guide to Configuring a PHP gRPC Client with Docker and Composer

This tutorial provides a step‑by‑step guide to configuring a PHP gRPC client using proto files, Composer, Docker, and Docker‑Compose, covering project structure, code generation, autoload setup, Dockerfile creation, and client execution in a containerized environment.

BackendComposerMicroservices
0 likes · 9 min read
Guide to Configuring a PHP gRPC Client with Docker and Composer
Open Source Tech Hub
Open Source Tech Hub
Jan 29, 2024 · Backend Development

How Fast Is PHP 8.3 Being Adopted? Latest Usage Stats Compared to 8.2

This article presents recent PHP version usage statistics, comparing the adoption speed of PHP 8.3 to 8.2, analyzing required minimum versions for popular Composer packages, and discussing the implications for open‑source maintainers and the overall PHP ecosystem.

PHPUsage StatisticsVersion Adoption
0 likes · 5 min read
How Fast Is PHP 8.3 Being Adopted? Latest Usage Stats Compared to 8.2
php Courses
php Courses
Jan 29, 2024 · Backend Development

How to Use PHP shuffle() to Randomly Sort Arrays and Generate Random Numbers

This article explains the PHP shuffle() function, demonstrates how to create arrays, use shuffle() to randomize their elements, display the results, and shows additional uses such as generating random numbers with range() and shuffle(), providing clear code examples throughout.

ArraysBackendPHP
0 likes · 4 min read
How to Use PHP shuffle() to Randomly Sort Arrays and Generate Random Numbers
php Courses
php Courses
Jan 29, 2024 · Backend Development

Practical Laravel API Development Course Overview

This ten‑day hands‑on course teaches the full lifecycle of building RESTful APIs with the Laravel framework, covering design, routing, request/response handling, authentication, data transmission, error handling, and practical exercises to boost development efficiency for beginners and experienced developers alike.

APILaravelPHP
0 likes · 3 min read
Practical Laravel API Development Course Overview
Architect's Guide
Architect's Guide
Jan 29, 2024 · Databases

Performance Comparison of IN vs JOIN in MySQL Queries

This article experimentally compares the efficiency of using IN clauses versus JOIN operations in MySQL by testing small, medium, and large datasets, measuring query costs, execution times, and highlighting the scalability limits of IN statements.

INJOINPHP
0 likes · 8 min read
Performance Comparison of IN vs JOIN in MySQL Queries
Open Source Tech Hub
Open Source Tech Hub
Jan 28, 2024 · Backend Development

What’s New in PHP‑Parser 5.0.0? A Deep Dive into Features and Usage

PHP‑Parser 5.0.0 introduces a host of new classes, methods, and parser improvements—including a PhpVersion class, PHP 8 support, enhanced pretty‑printing, and updated node handling—while also deprecating older APIs; the article provides a detailed changelog and a concise usage example for parsing PHP code.

ASTCode ParsingPHP
0 likes · 9 min read
What’s New in PHP‑Parser 5.0.0? A Deep Dive into Features and Usage
php Courses
php Courses
Jan 27, 2024 · Backend Development

Implementing Member Level Points Redemption in a PHP E‑Commerce Site

This tutorial explains how to create a MySQL members table, configure a PHP database connection, and build backend scripts and a web form that allow e‑commerce users to exchange points for membership level upgrades, complete with full code examples.

PHPPoints RedemptionWeb Development
0 likes · 5 min read
Implementing Member Level Points Redemption in a PHP E‑Commerce Site
php Courses
php Courses
Jan 26, 2024 · Backend Development

Implementing Coupon Activity Rule Management in a PHP E‑Commerce System

This article explains how to design database tables and develop a PHP‑based backend for managing e‑commerce coupon activity rules, covering creation, editing, deletion, and logical controls such as usage limits, with step‑by‑step guidance on forms, POST handling, validation, and database operations.

CouponDatabase designPHP
0 likes · 4 min read
Implementing Coupon Activity Rule Management in a PHP E‑Commerce System
php Courses
php Courses
Jan 25, 2024 · Frontend Development

Understanding AJAX: Asynchronous JavaScript and XML with PHP Example

This guide explains AJAX as an asynchronous JavaScript and XML technique that enables seamless client‑server communication with PHP, providing step‑by‑step examples and key concepts for building dynamic, responsive web applications.

AsynchronousJavaScriptPHP
0 likes · 3 min read
Understanding AJAX: Asynchronous JavaScript and XML with PHP Example
php Courses
php Courses
Jan 25, 2024 · Backend Development

Understanding and Using PHP's in_array() Function

This article explains PHP's in_array() function, covering its syntax, parameters, strict comparison option, and provides clear code examples demonstrating how to check for values in arrays and interpret the results in typical PHP scripts.

PHParray_searchbackend-development
0 likes · 4 min read
Understanding and Using PHP's in_array() Function
php Courses
php Courses
Jan 25, 2024 · Backend Development

How to Use PHP’s filesize() Function to Get File Size

This article explains the PHP filesize() function, its syntax, usage examples, and important considerations such as checking file existence and handling failures, providing developers with a clear guide to retrieve local file sizes in bytes.

PHPbackend-developmentfile size
0 likes · 3 min read
How to Use PHP’s filesize() Function to Get File Size
php Courses
php Courses
Jan 24, 2024 · Backend Development

PHP Caching Techniques: Page Cache, Data Cache, and File Cache

This article explains why PHP caching is essential for web performance and details three main techniques—page caching with output buffering, data caching using extensions like Memcached or APCu, and file caching with file I/O functions—plus best practices for updates, expiration, and avoiding cache penetration.

BackendFile CacheMemcached
0 likes · 6 min read
PHP Caching Techniques: Page Cache, Data Cache, and File Cache
php Courses
php Courses
Jan 24, 2024 · Backend Development

Essential Tools for PHP Developers: IDEs, AI Assistants, Debuggers, and Deployment Solutions

This article presents a curated list of essential tools for PHP developers—including IDEs, AI‑powered assistants, database managers, static analysis utilities, code formatters, container platforms, debuggers, testing frameworks, and deployment automation—to streamline workflows, boost productivity, and improve code quality.

DeploymentIDEPHP
0 likes · 8 min read
Essential Tools for PHP Developers: IDEs, AI Assistants, Debuggers, and Deployment Solutions
php Courses
php Courses
Jan 24, 2024 · Backend Development

Using PHP's ceil() Function to Round Numbers Upward

This article explains PHP's ceil() function, its syntax, and provides three practical code examples demonstrating how to round floating‑point and integer values upward to the smallest integer greater than or equal to the given number.

BackendPHPRounding
0 likes · 4 min read
Using PHP's ceil() Function to Round Numbers Upward
php Courses
php Courses
Jan 23, 2024 · Backend Development

Using PHP file_put_contents() to Write and Append Data to Files

This article explains the PHP file_put_contents() function, covering its syntax, parameters, return values, and provides clear code examples for both overwriting and appending data to files, helping developers efficiently handle file writing tasks in backend applications.

Code ExamplePHPbackend-development
0 likes · 4 min read
Using PHP file_put_contents() to Write and Append Data to Files
php Courses
php Courses
Jan 23, 2024 · Backend Development

Using Ecotone for Database Mapping, Queries, and Parameter Conversion in PHP

This article explains how Ecotone abstracts database access in PHP by mapping domain objects to tables, hiding low‑level DAO code behind business interfaces, and providing annotations for inserts, updates, custom converters, expression language, pagination, result‑set transformation, and integration with Doctrine ORM and Eloquent models.

EcotoneORMPHP
0 likes · 16 min read
Using Ecotone for Database Mapping, Queries, and Parameter Conversion in PHP
php Courses
php Courses
Jan 23, 2024 · Information Security

Using JWT for Secure Authentication in PHP

This article explains how to install the PHP‑JWT library with Composer, generate JSON Web Tokens using JWT::encode, validate them with JWT::decode, and configure custom expiration and not‑before times to enhance authentication security in PHP applications.

AuthenticationJWTPHP
0 likes · 4 min read
Using JWT for Secure Authentication in PHP
php Courses
php Courses
Jan 22, 2024 · Backend Development

Common Design Patterns in PHP: Singleton, Factory, Observer, and Adapter

This article introduces four essential design patterns—Singleton, Factory, Observer, and Adapter—explaining their concepts and providing complete PHP code examples to demonstrate how each pattern can be implemented to create maintainable, extensible, and flexible applications.

AdapterDesign PatternsFactory
0 likes · 7 min read
Common Design Patterns in PHP: Singleton, Factory, Observer, and Adapter
php Courses
php Courses
Jan 22, 2024 · Backend Development

Common PHP Code Smells and Refactoring Solutions

This article explains typical PHP code smells such as long methods, large classes, duplicate code, excessive comments, complex conditionals, and infinite loops, and provides concrete refactoring examples to improve readability, maintainability, and overall code quality.

BackendPHPcode smells
0 likes · 8 min read
Common PHP Code Smells and Refactoring Solutions
php Courses
php Courses
Jan 19, 2024 · Backend Development

Defining Classes and Using Constructor Property Promotion in PHP

This article explains how to define a PHP class with properties and methods, demonstrates traditional class syntax with a Bird example, and shows how PHP 8's constructor property promotion and default values simplify class definitions while improving readability and efficiency.

Constructor PromotionPHPclasses
0 likes · 4 min read
Defining Classes and Using Constructor Property Promotion in PHP
php Courses
php Courses
Jan 19, 2024 · Backend Development

Using PHP file_put_contents() to Write Data to Files

This article explains the PHP file_put_contents() function, its syntax, parameters, return values, and provides multiple code examples for writing strings, appending data, and handling arrays or callbacks to efficiently write content to files without manual opening and closing.

Code ExamplesPHPbackend-development
0 likes · 4 min read
Using PHP file_put_contents() to Write Data to Files
php Courses
php Courses
Jan 19, 2024 · Databases

Redis Basics and Using Redis to Optimize PHP Web Applications

This article introduces Redis fundamentals and demonstrates how to integrate Redis into PHP web applications for caching, session management, database caching, and queue operations, providing code examples that illustrate connecting to Redis, setting and retrieving data, and configuring expiration to boost performance and stability.

In-Memory DatabasePHPQueue
0 likes · 4 min read
Redis Basics and Using Redis to Optimize PHP Web Applications
Open Source Tech Hub
Open Source Tech Hub
Jan 18, 2024 · Backend Development

Install and Use FFmpeg with PHP‑FFMpeg on Ubuntu

This guide explains what FFmpeg is, shows how to install it on Ubuntu 18.04, demonstrates integrating the Webman framework and PHP‑FFMpeg library, and provides step‑by‑step code examples for extracting images, adding watermarks, and basic video editing.

ComposerPHPUbuntu
0 likes · 6 min read
Install and Use FFmpeg with PHP‑FFMpeg on Ubuntu
php Courses
php Courses
Jan 18, 2024 · Backend Development

Building an Efficient Web Crawler with PHP and Selenium

This article explains how to set up a web crawler using PHP and Selenium, covering installation of Selenium and its PHP bindings via Composer, configuring a Chrome WebDriver, simulating user actions to fetch news links, extracting titles and content, and storing results, with tips for further optimization.

PHPSeleniumWeb Crawler
0 likes · 4 min read
Building an Efficient Web Crawler with PHP and Selenium
php Courses
php Courses
Jan 17, 2024 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function concatenates array elements into a string, demonstrates basic and advanced usages including handling nested arrays and omitting the separator, and provides clear code examples for each scenario.

ArrayBackendPHP
0 likes · 4 min read
Using PHP implode() to Join Array Elements into a String
php Courses
php Courses
Jan 17, 2024 · Backend Development

Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage

PHP 8 introduces readonly properties that can only be set during object initialization, providing immutable, constant-like behavior useful for defining constants, protecting sensitive data, and enhancing code safety, with examples showing initialization, immutability, consistency, and even getter/setter usage.

Code ExamplesPHPbackend-development
0 likes · 6 min read
Understanding PHP 8 Readonly Properties: Definition, Benefits, and Usage
php Courses
php Courses
Jan 16, 2024 · Backend Development

How to Use PHP's str_pad Function for String Padding

This article explains PHP's built‑in str_pad function, detailing its syntax, parameters, and usage examples for right, left, and both‑side string padding, helping developers format strings to a desired length in backend applications.

PHPbackend-developmentphp-functions
0 likes · 4 min read
How to Use PHP's str_pad Function for String Padding
php Courses
php Courses
Jan 15, 2024 · Backend Development

Using PHP mb_substr() for Multibyte String Truncation

The article explains the PHP mb_substr() function, its syntax, parameter meanings, and provides multiple code examples demonstrating how to correctly truncate multibyte strings such as Chinese or Japanese without causing garbled output, along with important usage notes.

BackendPHPString
0 likes · 4 min read
Using PHP mb_substr() for Multibyte String Truncation
php Courses
php Courses
Jan 15, 2024 · Backend Development

Using Named Parameters in PHP 8

PHP 8 introduces named parameters, allowing developers to pass arguments by name instead of position, which improves code readability, reduces errors, simplifies version migration, and enables more self‑documenting function calls, as demonstrated with several HTTP request examples and array‑handling snippets.

BackendCode ExamplesPHP
0 likes · 5 min read
Using Named Parameters in PHP 8
php Courses
php Courses
Jan 12, 2024 · Backend Development

Defining Classes and Using Constructor Property Promotion in PHP

This article explains how to define a PHP class with properties and methods, demonstrates traditional class syntax, introduces PHP 8.0 constructor property promotion for more concise initialization, shows how to set default values, and outlines the benefits of using this feature.

ConstructorPHPProperty Promotion
0 likes · 5 min read
Defining Classes and Using Constructor Property Promotion in PHP
php Courses
php Courses
Jan 12, 2024 · Backend Development

Using PHP fwrite() to Write Data to Files

This article explains PHP's fwrite() function, detailing its syntax, parameters, and practical examples for writing strings and serialized arrays to files, while highlighting important usage considerations such as file opening modes and data types.

BackendPHPTutorial
0 likes · 4 min read
Using PHP fwrite() to Write Data to Files
php Courses
php Courses
Jan 12, 2024 · Backend Development

Four Ways to Reverse an Array in PHP

This article demonstrates four methods to reverse a PHP array—including the built‑in array_reverse() function, a manual for‑loop swap, an array_reduce() technique, and a combination of array_multisort() with array_column()—explaining their usage, code examples, and output results.

BackendPHParray_column
0 likes · 6 min read
Four Ways to Reverse an Array in PHP
php Courses
php Courses
Jan 11, 2024 · Backend Development

Using PHP file_exists() to Check File and Remote File Existence

This article explains how the PHP file_exists() function works, shows its basic syntax, provides local and remote file existence examples with code, and highlights important considerations such as correct paths, permissions, and potential HTTP overhead.

BackendFilesystemPHP
0 likes · 4 min read
Using PHP file_exists() to Check File and Remote File Existence
php Courses
php Courses
Jan 11, 2024 · Backend Development

Essential Laravel Packages for Backend Development

This article introduces a curated collection of essential Laravel packages, detailing their purpose, key features, and repository links, to help backend developers enhance productivity, debugging, security, and functionality in their applications efficiently.

LaravelPHPPackages
0 likes · 7 min read
Essential Laravel Packages for Backend Development
php Courses
php Courses
Jan 11, 2024 · Backend Development

Advantages and Disadvantages of Static Methods in PHP

Static methods in PHP allow functions to be called directly via the class without instantiation, offering benefits such as simplicity, resource savings, and reusability, but they also introduce drawbacks like testing difficulty, reduced maintainability, and limited extensibility, requiring careful consideration before use.

PHPbackend-developmentcode maintainability
0 likes · 4 min read
Advantages and Disadvantages of Static Methods in PHP
php Courses
php Courses
Jan 10, 2024 · Backend Development

Using PHP’s is_numeric() Function to Determine If a Variable Is Numeric

This article explains how the PHP is_numeric() function checks whether a variable is numeric, returns a boolean result, and demonstrates its usage with code examples for direct variable checks and form input validation, while also highlighting special edge cases to watch out for.

BackendCode ExamplePHP
0 likes · 4 min read
Using PHP’s is_numeric() Function to Determine If a Variable Is Numeric
php Courses
php Courses
Jan 10, 2024 · Backend Development

How to Query MySQL with PHP and Return Results as an Array

This tutorial demonstrates how to set up a PHP script that connects to a MySQL database, executes a SELECT query, stores the result rows in an array, and displays the data in an HTML table using loops such as while and foreach.

PHPWeb Developmentmysql
0 likes · 5 min read
How to Query MySQL with PHP and Return Results as an Array
php Courses
php Courses
Jan 10, 2024 · Backend Development

Containerizing PHP and Nginx with Docker: Step‑by‑Step Guide

This tutorial walks through creating a project structure, writing a simple PHP app, configuring Nginx, authoring Dockerfiles, setting up .dockerignore and docker‑compose.yml, and finally building and running the containers so the PHP service is reachable via Nginx on localhost.

ContainerizationDockerDocker Compose
0 likes · 4 min read
Containerizing PHP and Nginx with Docker: Step‑by‑Step Guide
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 InsertPDOPHP
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.

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

PHPString Functionsarray 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.

BackendConfiguration ManagementPHP
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.

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

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

Configuration ManagementMicroservicesPHP
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.

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

PHPTraitscode-reuse
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.

BackendNetwork programmingPHP
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 FilteringInformation SecurityPHP
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.

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

PHPString processingbackend-development
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.

Full‑Text SearchPHPRedisSearch
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.

GDImage ProcessingPHP
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.

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

Error HandlingPHP
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