Tagged articles
3002 articles
Page 11 of 31
php Courses
php Courses
Oct 9, 2024 · Backend Development

Using PHP glob() Function to Match File Paths

This article explains the PHP glob() function, its syntax, parameters, and various usage examples—including wildcard, brace expansion, and recursive patterns—while highlighting important flags and return‑value considerations for effective file‑path matching.

PHPfile-matchingglob
0 likes · 4 min read
Using PHP glob() Function to Match File Paths
php Courses
php Courses
Oct 9, 2024 · Backend Development

Extending PHP Function Logging with Laravel

This article demonstrates how to install the Monolog package, configure a custom logging channel in Laravel's config/logging.php, and use the Log facade to record custom messages, including a practical middleware example that logs API request details such as method, URI, and execution duration.

MonologPHPlogging
0 likes · 2 min read
Extending PHP Function Logging with Laravel
php Courses
php Courses
Oct 8, 2024 · Backend Development

PHP Logging and Error Debugging Techniques

This article explains how to use PHP's built‑in functions and custom helpers for logging program execution and debugging errors, covering error_log(), custom log functions, error_reporting settings, try‑catch exception handling, and a comprehensive example that combines logging with exception tracking.

Exception HandlingPHPerror-debugging
0 likes · 8 min read
PHP Logging and Error Debugging Techniques
php Courses
php Courses
Oct 8, 2024 · Backend Development

Introduction to Laravel: Features, Installation, and Getting Started

Laravel, the popular open-source PHP framework introduced in 2011, offers elegant syntax, powerful Eloquent ORM, simplified routing, built-in authentication, a rich ecosystem and active community, and this guide explains its advantages and provides step-by-step instructions for installing and starting a new Laravel project.

Eloquent ORMPHPWeb framework
0 likes · 5 min read
Introduction to Laravel: Features, Installation, and Getting Started
Open Source Tech Hub
Open Source Tech Hub
Oct 5, 2024 · Backend Development

Boost Your PHP Crawling with PHPCreeper: A Complete Step‑by‑Step Guide

PHPCreeper is a high‑performance PHP crawler built on Workerman that leverages asynchronous I/O, multi‑process, distributed deployment and headless‑browser support; this guide covers installation via Composer, core architecture, producer/downloader/parser implementation, Redis configuration and how to start the service to fetch dynamic pages such as weather forecasts.

ComposerPHPPHPCreeper
0 likes · 13 min read
Boost Your PHP Crawling with PHPCreeper: A Complete Step‑by‑Step Guide
Open Source Tech Hub
Open Source Tech Hub
Oct 1, 2024 · Backend Development

Build a Distributed Casbin Watcher with Workerman Redis in PHP

This guide explains how to implement a Casbin Watcher for distributed policy synchronization using Workerman's asynchronous Redis client in PHP, covering the underlying principles, required interfaces, code implementation, and a complete usage example with publish‑subscribe messaging.

CasbinDistributed SystemsPHP
0 likes · 7 min read
Build a Distributed Casbin Watcher with Workerman Redis in PHP
php Courses
php Courses
Sep 30, 2024 · Backend Development

How to Use PHP's setcookie Function to Set Cookies

This article explains PHP's setcookie function, detailing its syntax, parameter meanings, and providing several practical code examples for creating cookies with different lifetimes, paths, domains, and security flags, while also noting how to retrieve cookies using the $_COOKIE superglobal.

BackendPHPWeb Development
0 likes · 4 min read
How to Use PHP's setcookie Function to Set Cookies
php Courses
php Courses
Sep 30, 2024 · Information Security

Using PHP password_hash for Secure Password Hashing

This article explains how to securely hash passwords in PHP using the password_hash function, demonstrates code examples, describes verification with password_verify, and highlights automatic salting and best practices for protecting user credentials.

BackendHashingInformation Security
0 likes · 4 min read
Using PHP password_hash for Secure Password Hashing
php Courses
php Courses
Sep 30, 2024 · Backend Development

Customizing Baidu Map Styles with PHP: A Step-by-Step Guide

This article explains how to obtain a Baidu Map API key, integrate the API library into a PHP project, create a map container, initialize the map object, define a JSON style, and render a customized map on a web page.

Baidu Maps APIMap StylingPHP
0 likes · 4 min read
Customizing Baidu Map Styles with PHP: A Step-by-Step Guide
php Courses
php Courses
Sep 26, 2024 · Backend Development

Using array_map() and array_filter() for Efficient PHP Array Operations

This tutorial explains how PHP's built‑in functions array_map() and array_filter() provide a declarative, readable, and often more performant alternative to traditional foreach loops for transforming and filtering arrays, with step‑by‑step examples ranging from basic usage to advanced combinations.

BackendPHParray_filter
0 likes · 10 min read
Using array_map() and array_filter() for Efficient PHP Array Operations
php Courses
php Courses
Sep 25, 2024 · Backend Development

PHP Development Ecosystem in 2024: Trends, Frameworks, Security, and Future Outlook

In 2024, PHP remains a dominant backend language, with the release of PHP 8.3, thriving frameworks like Laravel and Symfony, modern development practices, enhanced security measures, and growing integration with AI, IoT, and serverless architectures, ensuring its continued relevance in web development.

APIModern PracticesPHP
0 likes · 13 min read
PHP Development Ecosystem in 2024: Trends, Frameworks, Security, and Future Outlook
php Courses
php Courses
Sep 25, 2024 · Artificial Intelligence

Real-Time Face Recognition with PHP and OpenCV

This article demonstrates how to set up a PHP environment, control a camera, and integrate OpenCV for real-time face detection and recognition, providing code examples and a complete workflow to enhance security applications.

Computer VisionPHPface recognition
0 likes · 5 min read
Real-Time Face Recognition with PHP and OpenCV
php Courses
php Courses
Sep 24, 2024 · Backend Development

Why Build a Custom PHP Framework – Course Outline and Learning Benefits

This article explains the motivations for creating a custom PHP framework—such as meeting specific project needs, deepening technical understanding, improving maintainability, performance, usability, and security—and provides a detailed chapter‑by‑chapter outline of the accompanying learning material.

PHP
0 likes · 3 min read
Why Build a Custom PHP Framework – Course Outline and Learning Benefits
php Courses
php Courses
Sep 24, 2024 · Backend Development

Using PHP in_array() Function: Syntax, Parameters, and Practical Examples

This tutorial explains PHP's in_array() function, covering its syntax, parameters, and three practical examples—including basic existence checks, strict type comparisons, and retrieving keys from associative arrays—to help developers efficiently search arrays in backend development.

ArrayBackendPHP
0 likes · 4 min read
Using PHP in_array() Function: Syntax, Parameters, and Practical Examples
php Courses
php Courses
Sep 24, 2024 · Fundamentals

Understanding Anonymous (Lambda) Functions in PHP

The article explains what anonymous (lambda) functions are, their purposes such as code simplification, functional programming, closures, and one‑time use, outlines scenarios for their use with PHP code examples, and provides a sample implementation demonstrating their practical application.

LambdaPHP
0 likes · 4 min read
Understanding Anonymous (Lambda) Functions in PHP
php Courses
php Courses
Sep 23, 2024 · Backend Development

Understanding PHP time() Function: Purpose, Usage, and Code Examples

This article explains the PHP time() function, describing how it returns the current Unix timestamp, how to use it without parameters, and provides multiple code examples for retrieving timestamps, comparing dates, and formatting the current date and time.

PHPbackend-developmentdate
0 likes · 4 min read
Understanding PHP time() Function: Purpose, Usage, and Code Examples
php Courses
php Courses
Sep 23, 2024 · Backend Development

Laravel vs Symfony: A Comprehensive Comparison of PHP Frameworks

This article compares Laravel and Symfony, two leading PHP frameworks, by examining their core features, learning curves, performance, ecosystems, and community support to help developers choose the most suitable option for their projects.

PHPSymfonybackend-development
0 likes · 8 min read
Laravel vs Symfony: A Comprehensive Comparison of PHP Frameworks
21CTO
21CTO
Sep 20, 2024 · Backend Development

Laravel’s $57M Funding Boost: New Cloud Platform and Future Roadmap

Laravel has secured a $57 million Series A round from Accel, plans to expand its team, launch the low‑cost Laravel Cloud platform, and outlines its historic evolution, founder’s vision, and upcoming product announcements for the PHP backend ecosystem.

Backend FrameworkFundingLaravel
0 likes · 8 min read
Laravel’s $57M Funding Boost: New Cloud Platform and Future Roadmap
php Courses
php Courses
Sep 20, 2024 · Backend Development

Adjusting Image Hue with PHP Imagick

This article explains how to install the PHP Imagick extension and use its Imagick class to load an image, adjust its brightness, saturation, and hue via the modulateImage method, and then save or output the modified image, providing complete example code.

Hue AdjustmentPHPbackend-development
0 likes · 4 min read
Adjusting Image Hue with PHP Imagick
php Courses
php Courses
Sep 20, 2024 · Backend Development

Using PHP is_bool() to Check Boolean Variables

This article explains PHP's built‑in is_bool() function, demonstrates its usage with several variable examples, shows the resulting output, and highlights why only true and false values are recognized as booleans in typical PHP programming contexts.

PHPbooleanis_bool
0 likes · 3 min read
Using PHP is_bool() to Check Boolean Variables
php Courses
php Courses
Sep 20, 2024 · Backend Development

Using PHP is_string() to Determine Whether a Variable Is a String

This article explains the PHP is_string() function, its simple syntax, and demonstrates through clear code examples how to check variables like $name, $age, and $city for string type, while highlighting best practices for input validation and security.

BackendPHPis_string
0 likes · 4 min read
Using PHP is_string() to Determine Whether a Variable Is a String
Open Source Tech Hub
Open Source Tech Hub
Sep 20, 2024 · Backend Development

Unlocking High‑Performance PHP: From Sockets to Swoole’s Async IO

This article explains how PHP’s socket extension can be used for network programming, walks through traditional multi‑process/thread blocking models, introduces IO multiplexing with the Reactor pattern, and shows how the Swoole extension enables efficient asynchronous and coroutine‑based server development.

Concurrent IOPHPReactor
0 likes · 20 min read
Unlocking High‑Performance PHP: From Sockets to Swoole’s Async IO
Open Source Tech Hub
Open Source Tech Hub
Sep 19, 2024 · Databases

Boost PHP App Speed: Advanced Database Performance Optimization Strategies

Optimizing database performance is crucial for PHP applications, and this comprehensive guide explores advanced strategies—including efficient query design, indexing, caching, connection pooling, batch processing, sharding, and partitioning—to maximize speed, scalability, and user experience while reducing latency and server load.

Database OptimizationPHPcaching
0 likes · 6 min read
Boost PHP App Speed: Advanced Database Performance Optimization Strategies
php Courses
php Courses
Sep 19, 2024 · Backend Development

Using PHP curl_multi_add_handle() to Manage Multiple cURL Handles

This article explains how the PHP curl library’s curl_multi_add_handle() function can combine multiple cURL handles into a single multi‑handle session, provides its syntax and parameters, and demonstrates its usage with a complete example that improves network request efficiency.

Network RequestsPHPbackend-development
0 likes · 4 min read
Using PHP curl_multi_add_handle() to Manage Multiple cURL Handles
php Courses
php Courses
Sep 19, 2024 · Backend Development

Should You Learn PHP in 2025? Benefits, Drawbacks, and Future Outlook

As 2025 approaches, this article evaluates the continued relevance of PHP, its modern frameworks, performance gains in PHP 8.x, community and job prospects, and compares it with emerging languages to help developers decide whether learning PHP remains a worthwhile investment.

2025CMSPHP
0 likes · 9 min read
Should You Learn PHP in 2025? Benefits, Drawbacks, and Future Outlook
php Courses
php Courses
Sep 18, 2024 · Backend Development

Using PHP array_merge() to Combine Multiple Arrays

This article explains the PHP array_merge() function, shows its syntax, and provides three practical examples—including merging two indexed arrays, merging several arrays, and merging associative arrays—while illustrating the resulting output and key‑overriding behavior.

ArrayBackendPHP
0 likes · 4 min read
Using PHP array_merge() to Combine Multiple Arrays
php Courses
php Courses
Sep 12, 2024 · Backend Development

Using PHP file_exists() to Check File and Directory Existence

This article explains the PHP file_exists() function, its syntax, parameters, return values, provides example code for checking both files and directories, and lists important usage notes and best practices for reliable file handling.

BackendPHPfile check
0 likes · 4 min read
Using PHP file_exists() to Check File and Directory Existence
php Courses
php Courses
Sep 12, 2024 · Backend Development

Using mysqli_fetch_assoc to Retrieve Query Results in PHP

This article explains how to connect to a MySQL database with mysqli_connect, execute queries using mysqli_query, and fetch each row as an associative array with mysqli_fetch_assoc, providing a complete PHP code example and best‑practice tips.

BackendMySQLiPHP
0 likes · 4 min read
Using mysqli_fetch_assoc to Retrieve Query Results in PHP
php Courses
php Courses
Sep 12, 2024 · Backend Development

Using PHP filemtime to Retrieve File Modification Time

This article explains how to use PHP's filemtime function to obtain a file's last modification timestamp, demonstrates formatting the timestamp with date, and provides code examples for handling both single and multiple files.

BackendPHPTutorial
0 likes · 3 min read
Using PHP filemtime to Retrieve File Modification Time
php Courses
php Courses
Sep 11, 2024 · Backend Development

Optimizing Email Sending with PHP Asynchronous Coroutines

This article explains how to improve the speed and stability of bulk email delivery in modern web applications by using PHP asynchronous coroutines with Swoole, providing a detailed code example that leverages PHPMailer, channels, and coroutine management.

AsynchronousBackendEmail
0 likes · 5 min read
Optimizing Email Sending with PHP Asynchronous Coroutines
Laravel Tech Community
Laravel Tech Community
Sep 10, 2024 · Backend Development

How to Compile and Install the MongoDB PHP Extension

This guide walks through the step‑by‑step process of downloading, compiling, and enabling the MongoDB extension for PHP on a Linux server, covering both online and offline installation methods and how to verify the extension is loaded successfully.

ExtensionInstallationLinux
0 likes · 4 min read
How to Compile and Install the MongoDB PHP Extension
php Courses
php Courses
Sep 10, 2024 · Backend Development

Understanding PHP’s array_merge() Function

This article explains the PHP array_merge() function, covering its purpose, syntax, parameters, return values, a complete code example with output, and practical tips for merging arrays in backend development.

ArrayBackendPHP
0 likes · 4 min read
Understanding PHP’s array_merge() Function
php Courses
php Courses
Sep 10, 2024 · Backend Development

Using PHP is_bool() to Determine Boolean Variables

This article explains PHP's is_bool() function, its syntax, parameters, return values, and provides a detailed code example demonstrating how to check whether variables are of boolean type, along with analysis of the output and practical usage tips.

BackendPHPboolean
0 likes · 3 min read
Using PHP is_bool() to Determine Boolean Variables
php Courses
php Courses
Sep 10, 2024 · Backend Development

Implementing WebSocket Communication in PHP with Ratchet

This tutorial explains how to use the Ratchet library to create a PHP WebSocket server, covering environment setup, Composer installation, server-side code, a simple HTML/JavaScript client, and steps to run and test real‑time data transmission.

BackendPHPRatchet
0 likes · 7 min read
Implementing WebSocket Communication in PHP with Ratchet
php Courses
php Courses
Sep 9, 2024 · Backend Development

Understanding PHP's array_flip() Function: Usage, Syntax, and Examples

This article explains PHP's array_flip() function, detailing its purpose of swapping array keys and values, its syntax, parameter and return information, and provides three practical code examples illustrating its behavior with associative and indexed arrays.

ArrayBackendPHP
0 likes · 4 min read
Understanding PHP's array_flip() Function: Usage, Syntax, and Examples
php Courses
php Courses
Sep 9, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's versatile date() function, detailing its syntax, required format parameter, optional timestamp argument, and demonstrates numerous usage examples—including retrieving current date, time, individual components, and formatting specific timestamps—highlighting its importance for backend web development.

BackendDate FormattingPHP
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
php Courses
php Courses
Sep 6, 2024 · Backend Development

Using PHP file_exists() to Check Files and Directories

This article explains the PHP file_exists() function, its syntax, parameters, return values, provides example code for checking both files and directories, and lists important usage notes and best practices for reliable filesystem operations.

BackendFilesystemPHP
0 likes · 4 min read
Using PHP file_exists() to Check Files and Directories
php Courses
php Courses
Sep 5, 2024 · Backend Development

Using PHP date() Function to Format Dates and Times

This article explains PHP's date() function, its syntax, required and optional parameters, and provides multiple code examples demonstrating how to retrieve and format current dates, times, and timestamps for various use cases in backend development.

BackendPHPPHP8
0 likes · 4 min read
Using PHP date() Function to Format Dates and Times
php Courses
php Courses
Sep 5, 2024 · Backend Development

Migrating from ereg_replace() to preg_replace() in PHP: A Comprehensive Guide

This guide explains why and how to replace the deprecated ereg_replace() with the modern preg_replace() in PHP, covering performance benefits, syntax differences, migration steps, advanced usage, and practical code examples to help developers update their code safely and efficiently.

BackendPHPPHP8
0 likes · 13 min read
Migrating from ereg_replace() to preg_replace() in PHP: A Comprehensive Guide
Open Source Tech Hub
Open Source Tech Hub
Sep 4, 2024 · Backend Development

Boost PHP Performance with AMPHP’s Asynchronous MySQL Client

This guide introduces AMPHP’s event‑driven async MySQL library for PHP, explains its non‑blocking API, connection‑pool architecture, supported features, and provides step‑by‑step installation and code examples for basic queries, iterators, and transactional operations.

AmpHPBackendPHP
0 likes · 6 min read
Boost PHP Performance with AMPHP’s Asynchronous MySQL Client
Open Source Tech Hub
Open Source Tech Hub
Sep 4, 2024 · Backend Development

Why Workerman Redefines PHP Backend Performance for Real‑Time Apps

Workerman is an open‑source, high‑performance pure‑PHP application container that breaks traditional PHP limits, supporting TCP, UDP, WebSocket, HTTP, and custom protocols, while the article also lists its recent changelog updates and welcomes several new contributors.

NetworkingPHPWorkerman
0 likes · 5 min read
Why Workerman Redefines PHP Backend Performance for Real‑Time Apps
php Courses
php Courses
Sep 4, 2024 · Backend Development

Using PHP’s tmpfile() Function to Create and Manage Temporary Files

This article explains how the PHP tmpfile() function creates a unique temporary file that is automatically deleted at script termination, demonstrates its syntax and usage with example code, and highlights important considerations such as resource handling and manual deletion with unlink().

BackendPHPfile-handling
0 likes · 4 min read
Using PHP’s tmpfile() Function to Create and Manage Temporary Files
php Courses
php Courses
Sep 3, 2024 · Backend Development

Using array_pop() to Remove the Last Element from an Array in PHP

This article explains how PHP's array_pop() function removes the last element from an array, demonstrates its usage with a complete code example, shows the resulting output, and discusses best practices such as handling multiple removals and preserving the original array.

ArrayBackendPHP
0 likes · 4 min read
Using array_pop() to Remove the Last Element from an Array in PHP
php Courses
php Courses
Sep 3, 2024 · Artificial Intelligence

Using PHP to Capture Camera Video and Perform Emotion Recognition

This tutorial demonstrates how to set up a Linux environment, install PHP GD and V4L2, capture camera frames with FFmpeg via PHP, and apply the Fer2013 facial‑emotion model through a Python script to recognize human emotions, offering a practical starter guide for PHP‑based emotion detection.

Artificial IntelligencePHPemotion-recognition
0 likes · 4 min read
Using PHP to Capture Camera Video and Perform Emotion Recognition
php Courses
php Courses
Aug 30, 2024 · Backend Development

Using PHP file_get_contents() to Read Local and Remote Files

This article explains how the PHP file_get_contents() function works, detailing its syntax, parameters, and examples for reading both local and remote files, while also highlighting its usefulness for further data processing.

BackendFile ReadingPHP
0 likes · 3 min read
Using PHP file_get_contents() to Read Local and Remote Files
php Courses
php Courses
Aug 30, 2024 · Backend Development

Using PHP file_exists() to Check File and Directory Existence

This article explains the PHP file_exists() function, covering its syntax, return values, practical examples for checking local and remote files as well as directories, and important limitations to consider when using it in backend development.

BackendPHPfile check
0 likes · 4 min read
Using PHP file_exists() to Check File and Directory Existence
php Courses
php Courses
Aug 30, 2024 · Backend Development

New Features and Changes in PHP 8.4 Release (Nov 21, 2024)

PHP 8.4, released on November 21, 2024, introduces performance, usability, and security enhancements such as property hooks, a parenthesis‑free new operator, powerful array functions, an HTMLDocument class, new Sodium algorithms, a request parsing helper, stricter type declarations, JIT optimizations, and migration of several extensions to PECL.

BackendHTML5PHP
0 likes · 3 min read
New Features and Changes in PHP 8.4 Release (Nov 21, 2024)
php Courses
php Courses
Aug 29, 2024 · Backend Development

10 Advanced PHP Techniques to Boost Performance and Efficiency

This article introduces ten lesser‑known PHP tricks—including memory management, Composer dependency handling, the built‑in web server, anonymous classes, try‑catch error handling, generators, traits, built‑in functions, PDO, and namespaces—to help developers write more efficient, maintainable, and secure code.

BackendComposerGenerators
0 likes · 9 min read
10 Advanced PHP Techniques to Boost Performance and Efficiency
php Courses
php Courses
Aug 27, 2024 · Backend Development

Using PHP rawurldecode() to Decode URL‑Encoded Strings

This article explains PHP's rawurldecode() function, detailing its syntax, how it reverses URL encoding performed by urlencode(), provides a complete code example, demonstrates the output, and highlights the difference between rawurldecode() and urldecode() for full URL decoding.

BackendPHPrawurldecode
0 likes · 3 min read
Using PHP rawurldecode() to Decode URL‑Encoded Strings
php Courses
php Courses
Aug 23, 2024 · Backend Development

Using PHP str_split to Split Strings into Character Arrays

This article explains how to use PHP's str_split function to divide a string into an array of characters, covering basic syntax, specifying element length, handling multibyte characters, and providing practical code examples with output demonstrations.

BackendPHPphp-tutorial
0 likes · 5 min read
Using PHP str_split to Split Strings into Character Arrays
Open Source Tech Hub
Open Source Tech Hub
Aug 22, 2024 · Artificial Intelligence

Unlock AI Power in PHP: A Hands‑On Guide to TransformersPHP

TransformersPHP brings Hugging Face’s Transformer models to PHP, enabling developers to run thousands of pre‑trained NLP models locally for tasks like text generation, summarisation, and translation, with simple installation, ONNX‑based execution, and a Python‑like pipeline API.

AINLPONNX
0 likes · 8 min read
Unlock AI Power in PHP: A Hands‑On Guide to TransformersPHP
php Courses
php Courses
Aug 22, 2024 · Backend Development

PHP fgetc() Function: Reading Characters from Files and Standard Input

This article explains PHP's fgetc() function for reading a single character from an opened file or standard input, demonstrates how to open files with fopen(), shows example code for looping through file contents, and provides a user input example with a switch statement.

BackendPHPTutorial
0 likes · 4 min read
PHP fgetc() Function: Reading Characters from Files and Standard Input
php Courses
php Courses
Aug 22, 2024 · Backend Development

Why Build a Custom PHP Framework and Course Outline

This article explains the motivations for creating a custom PHP framework—such as meeting specific needs, learning opportunities, long‑term maintenance, performance optimization, ease of use, and security—and provides a detailed chapter and section outline for a self‑study course.

BackendMVCPHP
0 likes · 3 min read
Why Build a Custom PHP Framework and Course Outline
php Courses
php Courses
Aug 21, 2024 · Backend Development

Understanding PHP DateTime: Mutability, Immutability, and Best Practices

This article examines PHP's DateTime class, analyzing its mutable design drawbacks, the benefits of the immutable DateTimeImmutable alternative, and offers practical guidelines and best‑practice strategies for developers to write safer, more maintainable date‑handling code.

BackendPHPbest-practices
0 likes · 8 min read
Understanding PHP DateTime: Mutability, Immutability, and Best Practices
php Courses
php Courses
Aug 20, 2024 · Backend Development

Using PHP array_unique() to Remove Duplicate Elements

This article explains the PHP array_unique() function, its syntax and parameters, demonstrates how to remove duplicate values from arrays with practical code examples, and shows how the optional $sort_flag argument can affect sorting behavior.

BackendPHPSorting
0 likes · 4 min read
Using PHP array_unique() to Remove Duplicate Elements
Open Source Tech Hub
Open Source Tech Hub
Aug 19, 2024 · Backend Development

Master Composer: Dependency Management, Autoloading, and Global Configuration for PHP

Composer is a PHP dependency manager that automates library installation, version locking, autoloading, and integrates with tools like PHPUnit; the guide explains its core features, installation steps, use of domestic mirrors, global and project‑specific configuration, package requiring commands, and the importance of the composer.lock file.

ComposerPHPbackend-development
0 likes · 12 min read
Master Composer: Dependency Management, Autoloading, and Global Configuration for PHP
Open Source Tech Hub
Open Source Tech Hub
Aug 16, 2024 · Backend Development

Unlock Modern PHP Development with the PSL Standard Library

The article introduces azjezz/psl, a PHP Standard Library inspired by hhvm/hsl, explains its goals, features, Composer installation, integration with Psalm and PHPStan, and provides detailed code examples for async tasks, password handling, Unix socket communication, and TCP parallel networking.

ComposerPHPPSL
0 likes · 9 min read
Unlock Modern PHP Development with the PSL Standard Library
php Courses
php Courses
Aug 15, 2024 · Backend Development

Applying the Interface Programming Principle in Laravel: From SMS to Email Notifications

This article explains the interface‑programming principle, demonstrates its benefits with SMS and email notification services in Laravel, shows how to refactor code using an INotification interface, and configures the service container to switch implementations seamlessly, illustrating a flexible, maintainable backend design.

PHPService Containerbackend-development
0 likes · 8 min read
Applying the Interface Programming Principle in Laravel: From SMS to Email Notifications
21CTO
21CTO
Aug 14, 2024 · Backend Development

Explore a PHP‑Based “Operating System”: Installation Guide and Demo

A Japanese PHP developer released an open‑source project that simulates an operating system using PHP, currently only outputs "Hello World!" in an emulator, and the article provides step‑by‑step installation instructions for macOS and Composer usage.

Operating SystemPHPbackend-development
0 likes · 2 min read
Explore a PHP‑Based “Operating System”: Installation Guide and Demo
php Courses
php Courses
Aug 14, 2024 · Backend Development

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

This article explains PHP's ceil() function, shows its syntax, and provides three code examples demonstrating how to round floating‑point numbers and integers upward, illustrating the returned smallest integer greater than or equal to the given value.

BackendPHPRounding
0 likes · 4 min read
Using PHP's ceil() Function to Round Numbers Upward
Open Source Tech Hub
Open Source Tech Hub
Aug 13, 2024 · Backend Development

How to Generate Distributed Unique IDs with Snowflake in PHP

Learn the fundamentals of Twitter's Snowflake distributed ID algorithm, its 64‑bit structure, and step‑by‑step PHP implementation—including installation via Composer, basic usage, custom data‑center and worker IDs, start timestamps, Laravel integration, and custom sequence resolvers—to generate globally unique, time‑ordered identifiers.

LaravelPHPdistributed-id
0 likes · 6 min read
How to Generate Distributed Unique IDs with Snowflake in PHP
Open Source Tech Hub
Open Source Tech Hub
Aug 12, 2024 · Backend Development

Compiling ThinkPHP8 with BPC: From Migration to Running OurBlog

This article explains how BPC, a PHP native compiler, can translate ThinkPHP8 code into C, outlines the required dependencies, details the migration of the OurBlog sample project, describes necessary code adjustments, and provides step‑by‑step instructions to compile and run the resulting binary.

BPCCompilationPHP
0 likes · 6 min read
Compiling ThinkPHP8 with BPC: From Migration to Running OurBlog
php Courses
php Courses
Aug 12, 2024 · Backend Development

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

This article explains the PHP array() function, demonstrates how to create both indexed and associative arrays with clear examples, outlines important usage notes, and provides sample code for various array types to help developers master array creation in PHP.

ArrayBackendPHP
0 likes · 5 min read
Using PHP array() Function to Create Indexed and Associative Arrays
Open Source Tech Hub
Open Source Tech Hub
Aug 10, 2024 · Cloud Computing

Integrating Alibaba Cloud Drive API with PHP: Complete Guide and Code Samples

This article explains how to integrate Alibaba Cloud Drive's personal cloud storage capabilities into PHP applications, covering platform overview, OAuth2 authorization flow, essential API endpoints, detailed PHP class implementations, and practical examples for uploading files, managing folders, and retrieving download links.

Alibaba Cloud DriveOAuth2PHP
0 likes · 18 min read
Integrating Alibaba Cloud Drive API with PHP: Complete Guide and Code Samples
php Courses
php Courses
Aug 9, 2024 · Backend Development

Using array_filter() to Filter Arrays in PHP

This article explains the PHP array_filter() function, its parameters, and demonstrates how to filter numeric arrays and associative arrays with practical code examples, helping developers efficiently remove unwanted elements based on custom callback logic.

ArrayBackendPHP
0 likes · 5 min read
Using array_filter() to Filter Arrays in PHP
php Courses
php Courses
Aug 9, 2024 · Backend Development

Using PHP file() Function to Read Files into an Array

This article explains how the PHP file() function reads a file's contents into an array, details its syntax and parameters, demonstrates basic and flag‑based usage with code examples, and highlights important behavior such as line handling and newline removal.

ArrayBackendPHP
0 likes · 4 min read
Using PHP file() Function to Read Files into an Array
Open Source Tech Hub
Open Source Tech Hub
Aug 7, 2024 · Backend Development

Boost PHP Excel Performance with the High‑Speed xlswriter Extension

The article introduces xlswriter, a high‑performance PHP C extension for reading and writing Excel 2007+ XLSX files across major operating systems, compares it with PHPExcel, presents benchmark results, explains PECL installation, and provides detailed code examples for exporting, importing, and chart generation.

Data ExportExcelPECL
0 likes · 7 min read
Boost PHP Excel Performance with the High‑Speed xlswriter Extension
php Courses
php Courses
Aug 7, 2024 · Backend Development

Using PHP 7.4+ Foreign Function Interface (FFI) to Call C Libraries

This article introduces PHP 7.4's Foreign Function Interface (FFI), explains how to enable it, demonstrates basic usage and advanced examples for calling C functions, discusses performance considerations, security best practices, troubleshooting, and future directions for PHP developers.

BackendC integrationFFI
0 likes · 8 min read
Using PHP 7.4+ Foreign Function Interface (FFI) to Call C Libraries
Open Source Tech Hub
Open Source Tech Hub
Aug 5, 2024 · Backend Development

Secure Your PHP Code with Zephir: Build a Custom Encryption Extension

Learn how to protect PHP source code by creating a custom Zephir‑based encryption extension, covering repository setup, directory structure, licensing logic, abstract and live modules, compilation steps, php.ini configuration, and testing with example authorization codes.

AuthorizationCode EncryptionExtension
0 likes · 9 min read
Secure Your PHP Code with Zephir: Build a Custom Encryption Extension
Open Source Tech Hub
Open Source Tech Hub
Aug 5, 2024 · Backend Development

Boost PHP Performance with PRipple: A Native Coroutine Framework

PRipple is a high‑performance native PHP coroutine framework built on PHP 8.1 fibers and the Revolt library, offering simple APIs for asynchronous I/O, seamless integration with popular PHP frameworks, and easy installation via Composer for developing concurrent, high‑load applications.

FrameworkPHPasync I/O
0 likes · 6 min read
Boost PHP Performance with PRipple: A Native Coroutine Framework
php Courses
php Courses
Aug 5, 2024 · Backend Development

Using PHP usort() Function for Custom Array Sorting

This article explains the PHP usort() function, detailing its syntax, how to write custom comparison callbacks, and provides step‑by‑step examples for sorting numeric arrays, associative arrays of objects, and handling common pitfalls such as return values and in‑place array modification.

PHParray sortingbackend-development
0 likes · 6 min read
Using PHP usort() Function for Custom Array Sorting
php Courses
php Courses
Aug 5, 2024 · Backend Development

Using PHP's array_replace_recursive() Function to Recursively Merge Arrays

This article explains PHP's array_replace_recursive() function, detailing its syntax, recursive merging behavior, example usage with code, output interpretation, important considerations, and compares it with array_merge_recursive() for effective backend array handling in PHP development.

ArrayBackendPHP
0 likes · 4 min read
Using PHP's array_replace_recursive() Function to Recursively Merge Arrays
php Courses
php Courses
Aug 2, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains the PHP str_replace function, its syntax, and demonstrates three practical examples—simple replacement, replacing multiple words with an array, and deleting characters—showing the resulting output and highlighting additional options available in the official documentation.

BackendPHPTutorial
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
php Courses
php Courses
Aug 1, 2024 · Backend Development

Understanding and Using PHP's is_file() Function

The article explains PHP's is_file() function, how it determines file existence, proper usage with absolute or relative paths, differences from is_dir(), handling of symlinks, and provides practical code examples for checking files before reading them, emphasizing its importance for backend developers.

BackendPHPfile-existence
0 likes · 4 min read
Understanding and Using PHP's is_file() Function
php Courses
php Courses
Aug 1, 2024 · Information Security

Common PHP Pitfalls and Effective Prevention Strategies

This article examines frequent security and quality pitfalls in PHP development—such as deprecated functions, SQL injection, XSS, insecure file inclusion, poor error handling, session hijacking, hard‑coded credentials, insufficient input validation, outdated versions, and low code quality—and provides concrete best‑practice recommendations to avoid them.

PHPcode qualityinput validation
0 likes · 8 min read
Common PHP Pitfalls and Effective Prevention Strategies
php Courses
php Courses
Jul 31, 2024 · Backend Development

How to Build a Custom PHP 404 Error Page for WordPress

This guide explains how to design, code, and configure a custom PHP‑based 404 error page for WordPress, covering user‑friendly messaging, navigation links, search integration, dynamic content suggestions, and ongoing monitoring to improve user experience and SEO performance.

404 pagePHPSEO
0 likes · 6 min read
How to Build a Custom PHP 404 Error Page for WordPress