Tagged articles

PHP

3051 articles · Page 26 of 31
ITPUB
ITPUB
Dec 15, 2020 · Frontend Development

Mastering Large File Uploads in the Browser: Chunking, Resume, and Progress

This article explores the challenges of uploading massive files from the browser, compares traditional form, iframe, FormData, and base64 methods, and provides detailed JavaScript and PHP examples for implementing chunked uploads, resumable transfers, and progress monitoring.

JavaScriptPHPchunked upload
0 likes · 11 min read
Mastering Large File Uploads in the Browser: Chunking, Resume, and Progress
php Courses
php Courses
Dec 14, 2020 · Backend Development

Using Form Method Spoofing and CSRF Protection in Laravel

This article explains how to handle RESTful HTTP methods in Laravel forms by using method spoofing, demonstrates adding CSRF tokens, disabling CSRF protection, configuring whitelist routes, and provides code examples for GET, POST, and PUT requests.

BackendForm SpoofingLaravel
0 likes · 5 min read
Using Form Method Spoofing and CSRF Protection in Laravel
php Courses
php Courses
Dec 14, 2020 · Backend Development

Simple API Development Example Using ThinkPHP 6.x

This article presents a step‑by‑step tutorial for PHP beginners on building a simple product‑detail API with ThinkPHP 6.x, covering front‑end HTML form, request‑side controller using cURL, and API controller that queries a database and returns JSON data.

APIBackendPHP
0 likes · 3 min read
Simple API Development Example Using ThinkPHP 6.x
php Courses
php Courses
Dec 11, 2020 · Backend Development

Laravel Performance Optimization Tips

This article presents practical Laravel performance optimization techniques, including selecting only needed fields in queries, using eager loading to reduce database calls, removing unnecessary Composer dependencies, enabling caching, upgrading to the latest PHP version, and leveraging queues for time‑consuming tasks.

BackendLaravelOptimization
0 likes · 4 min read
Laravel Performance Optimization Tips
php Courses
php Courses
Dec 9, 2020 · Backend Development

How to Specify a Custom Table Name for a Laravel Model

This guide explains why Laravel automatically pluralizes model names to table names, the problems it can cause, and how to override the default by adding a protected $table property in the model class to map the model to a custom table name.

BackendCustom TableLaravel
0 likes · 2 min read
How to Specify a Custom Table Name for a Laravel Model
Laravel Tech Community
Laravel Tech Community
Dec 5, 2020 · Backend Development

Generating Random Numbers in PHP Using shuffle, array_unique, array_flip, and Custom Functions

This article demonstrates multiple PHP techniques for generating unique random numbers, including using shuffle on a range array, applying array_unique with a while loop, leveraging array_flip to remove duplicates, and creating a customizable randpw function with mt_rand, complete with code examples and output results.

BackendPHParray-functions
0 likes · 4 min read
Generating Random Numbers in PHP Using shuffle, array_unique, array_flip, and Custom Functions
php Courses
php Courses
Dec 4, 2020 · Backend Development

Quickly Locate Source Files and Hide Methods in PhpStorm for Efficient Screenshotting

This article explains how to configure PhpStorm to automatically locate the source file of the currently edited code and hide its method list, walking through two solutions—including using the navigation circle feature and disabling method display in settings—to improve workflow efficiency for developers.

IDE TipsPHPSource Navigation
0 likes · 4 min read
Quickly Locate Source Files and Hide Methods in PhpStorm for Efficient Screenshotting
php Courses
php Courses
Dec 3, 2020 · Backend Development

Understanding TP5.1 Framework and PHP OpCache Caching Issues

This article explains why changes to PHP code in the TP5.1 framework may require a 30‑second wait before appearing in the browser, revealing that the delay is caused by PHP's OpCache caching mechanism, which must be manually enabled in PHP 5.x but is often enabled by default in PHP 7.x, and provides guidance on diagnosing and resolving the issue.

OPcachePHPTP5.1
0 likes · 1 min read
Understanding TP5.1 Framework and PHP OpCache Caching Issues
php Courses
php Courses
Dec 2, 2020 · Backend Development

Implementing SMS Verification with ThinkPHP and Yunpian API

This tutorial explains how to build an SMS verification feature in a ThinkPHP application by generating codes, storing them, sending them via Yunpian's API, and validating user input, including required API parameters and controller method implementations.

APIBackendPHP
0 likes · 2 min read
Implementing SMS Verification with ThinkPHP and Yunpian API
php Courses
php Courses
Dec 1, 2020 · Backend Development

Using PHP FFI to Call the Cjieba Chinese Word Segmentation Library

This article demonstrates how to use PHP 7.4's FFI to directly call the Cjieba Chinese word‑segmentation library, explains common pitfalls such as uninitialized variables and pointer handling, shows code examples for compiling and running the library, and compares PHP's performance with native C.

BackendCjiebaFFI
0 likes · 6 min read
Using PHP FFI to Call the Cjieba Chinese Word Segmentation Library
Laravel Tech Community
Laravel Tech Community
Nov 27, 2020 · Backend Development

array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison

This article explains PHP’s array_udiff_assoc function, detailing its purpose of computing array differences with index checks using a user‑defined callback, describing its parameters and return value, and providing a complete example with class definition, custom comparison function, usage code, and resulting output.

BackendCallbackDifference
0 likes · 3 min read
array_udiff_assoc() – Compute Array Difference with Index Check Using Callback Comparison
php Courses
php Courses
Nov 27, 2020 · Backend Development

Upgrading PHP to 8 on macOS with Homebrew and Configuring Common Extensions

This guide walks you through updating Homebrew, upgrading PHP to version 8 on macOS, verifying the installation, restarting web servers, installing and managing PECL extensions, and handling Laravel Valet-specific steps to ensure a fully functional PHP 8 environment.

HomebrewLaravel ValetPHP
0 likes · 4 min read
Upgrading PHP to 8 on macOS with Homebrew and Configuring Common Extensions
php Courses
php Courses
Nov 24, 2020 · Backend Development

Implementing a Match‑3 (Happy Elimination) Game Algorithm in PHP

This article explains the requirements, scoring rules, and complete PHP implementation of a classic 8×8 match‑3 (Happy Elimination) game, including random color generation, detection of horizontal and vertical groups, removal, gravity handling, and recursive scoring until no more matches remain.

Game AlgorithmPHPScoring
0 likes · 11 min read
Implementing a Match‑3 (Happy Elimination) Game Algorithm in PHP
php Courses
php Courses
Nov 24, 2020 · Backend Development

Curated List of Useful Open-Source PHP Projects

This article presents a curated collection of ten open‑source PHP projects—including a GitHub leak‑monitoring system, a high‑performance PHP extension, clean‑code examples, a Markdown parser, a cURL wrapper, a Swoole‑based music platform, a ThinkPHP e‑commerce suite, a self‑hosted RSS reader, a Laravel documentation manager, and a PHP interview Q&A repository—each with key features, usage snippets, and GitHub links for developers seeking robust backend tools.

BackendGitHubLibraries
0 likes · 6 min read
Curated List of Useful Open-Source PHP Projects
Ops Development Stories
Ops Development Stories
Nov 24, 2020 · Backend Development

Master NGINX Unit: Install, Configure, and Run Multi‑Language Apps

This guide introduces NGINX Unit, a lightweight dynamic web and application server supporting multiple languages, and provides step‑by‑step installation instructions for CentOS, Ubuntu, and Docker, along with configuration examples for PHP and Java applications using its RESTful JSON API.

ConfigurationNGINX UnitPHP
0 likes · 8 min read
Master NGINX Unit: Install, Configure, and Run Multi‑Language Apps
php Courses
php Courses
Nov 23, 2020 · Backend Development

Using Gearman with PHP: Setup, Worker and Client Scripts, and Deployment

This article provides a step‑by‑step guide for configuring Gearman persistence, writing PHP worker and client scripts, setting up GearmanManager, launching the gearmand server with MySQL storage, and running the client to dispatch thousands of email jobs, illustrating fault‑tolerant asynchronous processing.

BackendGearmanPHP
0 likes · 4 min read
Using Gearman with PHP: Setup, Worker and Client Scripts, and Deployment
php Courses
php Courses
Nov 23, 2020 · Backend Development

music-php: A PHP Command-Line Music Search and Download Tool

music-php is a PHP‑based command‑line utility that uses the Meting library to search and download music from services like QQ, NetEase, KuGou, and Baidu, with installation instructions via Composer, phar files, and global or local setups.

BackendCLIComposer
0 likes · 2 min read
music-php: A PHP Command-Line Music Search and Download Tool
Laravel Tech Community
Laravel Tech Community
Nov 22, 2020 · Backend Development

Using PHP's array_search() to Locate a Value Within an Array

This article explains how PHP's array_search() function searches for a specified needle in a haystack array, describes its parameters—including the optional strict mode—and shows example code demonstrating how to retrieve the key of a matching element.

BackendPHParray_search
0 likes · 2 min read
Using PHP's array_search() to Locate a Value Within an Array
DeWu Technology
DeWu Technology
Nov 22, 2020 · Backend Development

Evolution of Transaction System Architecture at DeWu

Alan, a twelve-year veteran of startup and e-commerce development, outlines DeWu’s transaction system evolution through five architectural eras—from a single ECS-Redis setup in 2017 to the modern, Java-based, Five-Color-Stone refactor that migrated 27 billion records, redesigned 700+ APIs, and now reliably powers major sales events while continuing protocol, gateway, monitoring, and compliance optimizations.

JavaPHPe-commerce
0 likes · 4 min read
Evolution of Transaction System Architecture at DeWu
php Courses
php Courses
Nov 20, 2020 · Backend Development

Calculating Student Age Using PHP Date Functions

This tutorial demonstrates how to use PHP variables and the date() function to automatically compute a student's age based on their birthdate, handling current date retrieval, birthday checks, and adjusting the age calculation accordingly.

BackendDatePHP
0 likes · 3 min read
Calculating Student Age Using PHP Date Functions
php Courses
php Courses
Nov 20, 2020 · Databases

Using topthink/think-migration for Database Migrations in ThinkPHP

This guide explains how to install and use the topthink/think-migration package with ThinkPHP to create, run, and roll back database migration scripts, covering version compatibility, command‑line operations, migration class creation, and practical examples for creating, updating, and deleting tables and columns.

CLIComposerPHP
0 likes · 5 min read
Using topthink/think-migration for Database Migrations in ThinkPHP
Wukong Talks Architecture
Wukong Talks Architecture
Nov 20, 2020 · Backend Development

Understanding PHP Garbage Collection and Reference Counting

This article explains PHP's garbage collection mechanism, detailing how reference counting works, the role of zval structures, the identification and reclamation process, and provides source code insights to compare PHP's approach with Java's garbage collection.

PHPReference Countingbackend-development
0 likes · 9 min read
Understanding PHP Garbage Collection and Reference Counting
php Courses
php Courses
Nov 18, 2020 · Backend Development

Comprehensive PHP Online Course Curriculum – Three‑Stage Full‑Stack Development Program

This curriculum outlines a three‑stage live online program covering front‑end technologies, core PHP and MySQL development, and integrated full‑stack projects with frameworks like ThinkPHP6 and Laravel, plus optional electives and practical deployment and interview preparation for enterprise‑level applications.

BackendFull-StackLaravel
0 likes · 5 min read
Comprehensive PHP Online Course Curriculum – Three‑Stage Full‑Stack Development Program
php Courses
php Courses
Nov 17, 2020 · Backend Development

Using Intervention Image Package in Laravel for Image Manipulation

This article introduces the Laravel-compatible Intervention Image package, explains how to install it via Composer, configure the service provider and alias, and demonstrates basic image operations such as resizing, saving, and resource destruction, including a known issue with overwriting files.

BackendComposerIntervention Image
0 likes · 2 min read
Using Intervention Image Package in Laravel for Image Manipulation
php Courses
php Courses
Nov 17, 2020 · Backend Development

PHP Class for Converting Between Solar (Gregorian) and Lunar (Chinese) Calendars

This article presents a PHP class that implements algorithms for converting Gregorian dates to Chinese lunar dates and vice versa, including utilities for leap year detection, month length calculation, zodiac retrieval, and handling of leap months, with complete source code examples and usage demonstration.

BackendDate ConversionLunar Calendar
0 likes · 13 min read
PHP Class for Converting Between Solar (Gregorian) and Lunar (Chinese) Calendars
php Courses
php Courses
Nov 13, 2020 · Backend Development

Understanding ThinkPHP Query Method and Database Connection Initialization

The article explains how ThinkPHP’s query method works with raw SQL, distinguishes between execute for writes and query for reads, details MySQL master‑slave replication considerations, and describes the framework’s database connection initialization, including read/write separation logic and related code examples.

BackendPHPRead-Write Splitting
0 likes · 6 min read
Understanding ThinkPHP Query Method and Database Connection Initialization
php Courses
php Courses
Nov 13, 2020 · Backend Development

Configuring ThinkPHP to Return JSON and Enable CORS for Vue Integration

This guide explains how to configure ThinkPHP to return JSON by default, set up individual JSON responses, and resolve Vue's cross‑origin request issues by adding appropriate Access‑Control‑Allow‑Origin headers in controller actions, with code examples for each step.

BackendCORSPHP
0 likes · 2 min read
Configuring ThinkPHP to Return JSON and Enable CORS for Vue Integration
php Courses
php Courses
Nov 12, 2020 · Backend Development

Resolving Composer Dependency Issue for ThinkPHP 6.0.5: Installing think-view with the Correct PHP Version

This article explains how to resolve a ThinkPHP 6.0.5 view rendering error by installing the think-view template engine via Composer, addressing the PHP version incompatibility that caused the package installation to fail, and provides step‑by‑step instructions to adjust Composer’s PHP path or reinstall it with PHP 7.1 or higher.

ComposerPHPThinkPHP
0 likes · 2 min read
Resolving Composer Dependency Issue for ThinkPHP 6.0.5: Installing think-view with the Correct PHP Version
Laravel Tech Community
Laravel Tech Community
Nov 11, 2020 · Backend Development

PHP array_merge() Function: Merging One or More Arrays

The article explains PHP's array_merge() function, detailing how it combines one or multiple arrays, the handling of string and numeric keys, parameter descriptions, return values, and provides a complete code example with expected output.

BackendPHPTutorial
0 likes · 2 min read
PHP array_merge() Function: Merging One or More Arrays
php Courses
php Courses
Nov 10, 2020 · Backend Development

PHP Image Drawing Tutorial: Canvas Creation, Shapes, Text, and Captcha Generation

This tutorial explains how to use PHP's GD library to create a canvas, draw basic shapes such as ellipses, lines, rectangles, arcs, and filled arcs, output images in common formats, add text with TrueType fonts, generate captchas, and properly release memory, providing complete example code.

Backend DevelopmentGD libraryGraphics
0 likes · 12 min read
PHP Image Drawing Tutorial: Canvas Creation, Shapes, Text, and Captcha Generation
php Courses
php Courses
Nov 10, 2020 · Backend Development

Building a Simple Chatroom with WebSocket and Swoole (PHP)

This tutorial demonstrates how to create a lightweight chatroom by combining WebSocket on the front end with Swoole's WebSocket server in PHP, covering project setup, required environment, client‑side HTML/JS, server‑side PHP code, and steps to run and test the application.

BackendChatroomJavaScript
0 likes · 8 min read
Building a Simple Chatroom with WebSocket and Swoole (PHP)
Laravel Tech Community
Laravel Tech Community
Nov 10, 2020 · Backend Development

Using array_map() to Apply a Callback Function to Array Elements

array_map() in PHP applies a user‑defined callback to each element of one or more arrays, returning a new array of the transformed values; the article explains its syntax, parameter requirements, return behavior, and provides multiple code examples demonstrating numeric, string, and mixed‑array usage.

BackendCallbackPHP
0 likes · 3 min read
Using array_map() to Apply a Callback Function to Array Elements
php Courses
php Courses
Nov 9, 2020 · Backend Development

Using Underscore Naming for PHP Controllers When Using PascalCase Class Names

This article explains that when PHP controller files are named using PascalCase, they must be accessed with lowercase and underscores in the URL, illustrating the issue with examples and providing the solution of using underscore naming to correctly load template files.

BackendMVCNaming Convention
0 likes · 1 min read
Using Underscore Naming for PHP Controllers When Using PascalCase Class Names
php Courses
php Courses
Nov 6, 2020 · Backend Development

How to Install the Laravel Language Pack for Multilingual Support

This guide explains how to install the caouecs/laravel-lang language pack for various Laravel versions, copy the language files to the resources/lang directory, and configure the application locale to enable Chinese (or other) translations for form prompts and other interface text.

BackendLaravelPHP
0 likes · 2 min read
How to Install the Laravel Language Pack for Multilingual Support
360 Quality & Efficiency
360 Quality & Efficiency
Nov 6, 2020 · Backend Development

Introduction to Swoole and Its Integration with ThinkPHP5

This article introduces Swoole as a high‑performance asynchronous PHP engine, explains its differences from traditional PHP execution, and provides step‑by‑step guidance on integrating Swoole with ThinkPHP5, including a complete code example and key implementation notes.

@AsyncPHPSwoole
0 likes · 7 min read
Introduction to Swoole and Its Integration with ThinkPHP5
php Courses
php Courses
Nov 5, 2020 · Backend Development

Advanced Laravel Authentication Customizations and Tips

This article provides a comprehensive guide to customizing Laravel's built‑in authentication system, covering route parameters, controller generation, password confirmation, device logout, redirect logic, user creation via Tinker and factories, login throttling, and additional credential checks, all with practical code examples.

AuthRoutesBackendLaravel
0 likes · 12 min read
Advanced Laravel Authentication Customizations and Tips
php Courses
php Courses
Nov 5, 2020 · Backend Development

How to Integrate Tencent Cloud SMS Service in PHP

This guide walks through enabling Tencent Cloud SMS, downloading the PHP SDK, placing required files, importing classes in a controller, creating an application and template in the console, and finally sending a test message after adding the phone number to the whitelist.

BackendPHPTencent Cloud
0 likes · 2 min read
How to Integrate Tencent Cloud SMS Service in PHP
php Courses
php Courses
Nov 5, 2020 · Backend Development

Essential Laravel Helper Functions for PHP Developers

This article introduces a collection of practical Laravel helper functions—including Str::limit, head, last, Str::between, blank, Str::contains, Arr::pluck, and collect—explaining their purpose, usage, and providing code examples to help PHP developers write cleaner, more efficient backend code.

BackendLaravelLaravel Arr
0 likes · 6 min read
Essential Laravel Helper Functions for PHP Developers
php Courses
php Courses
Nov 5, 2020 · Backend Development

Installing and Configuring the PHP Redis Extension for a Historical Search Queue

This guide walks through checking your PHP configuration, downloading the appropriate Redis extension, installing it, updating php.ini, verifying the installation, starting the Redis service, and shows the core template and PHP server code needed to implement a historical search queue using Redis.

Extension InstallationPHPQueue
0 likes · 2 min read
Installing and Configuring the PHP Redis Extension for a Historical Search Queue
php Courses
php Courses
Nov 4, 2020 · Backend Development

Implementing and Using ThinkPHP Container for Dependency Management

This article explains how to extend ThinkPHP's Container class with static get, getInstance, make, and magic methods, defines a bind array for aliases, modifies the entry script, and demonstrates retrieving Request instances to illustrate proper dependency injection in a PHP backend framework.

BackendDependency InjectionPHP
0 likes · 4 min read
Implementing and Using ThinkPHP Container for Dependency Management
php Courses
php Courses
Nov 4, 2020 · Fundamentals

Various Methods to Compute the Nth Fibonacci Number in PHP

This article introduces the Fibonacci sequence, explains its definition, and presents six PHP implementations—including naive recursion, memoized recursion, bottom‑up iteration, iterative loop, closed‑form formula, and a lookup table—detailing their logic and performance considerations.

FibonacciPHPiteration
0 likes · 6 min read
Various Methods to Compute the Nth Fibonacci Number in PHP
php Courses
php Courses
Nov 3, 2020 · Backend Development

Laravel-Quick: A Utility Package for Efficient Backend Development

Laravel-Quick is an open‑source Laravel package that provides translated validation messages, standardized HTTP status responses, exception handling, Redis‑based cache helpers, and artisan generators, with installation and usage instructions for backend developers.

BackendExceptionLaravel
0 likes · 2 min read
Laravel-Quick: A Utility Package for Efficient Backend Development
php Courses
php Courses
Nov 3, 2020 · Backend Development

How to Enable PHP Short Open Tags on Ubuntu/Apache

This guide explains how to activate PHP short open tags by editing the php.ini file on an Ubuntu server with Apache, shows the syntax differences between full and short tags, and provides the necessary commands to reload Apache after the change.

PHPUbuntuphp-ini
0 likes · 3 min read
How to Enable PHP Short Open Tags on Ubuntu/Apache
php Courses
php Courses
Nov 3, 2020 · Backend Development

How to Update the Laravel Installer to the Latest Version

This guide explains how to upgrade the Laravel installer to the latest version using Composer, covering three methods: composer require, uninstall and reinstall, and editing the global composer.json, with commands and verification steps.

BackendComposerLaravel
0 likes · 5 min read
How to Update the Laravel Installer to the Latest Version
php Courses
php Courses
Nov 3, 2020 · Backend Development

Integrating QQ Login with PHP: Step‑by‑Step Guide

This tutorial explains how to integrate QQ third‑party login into a PHP website by obtaining QQ Connect credentials, downloading and configuring the SDK, adding the necessary OAuth code, creating a login button, and handling the callback to retrieve user information.

BackendOAuthPHP
0 likes · 4 min read
Integrating QQ Login with PHP: Step‑by‑Step Guide
php Courses
php Courses
Nov 2, 2020 · Backend Development

Using Hook Behaviors in ThinkPHP: A Practical Guide

This article explains the concept of ThinkPHP Hook behaviors, demonstrates how to define, bind, and trigger custom behavior classes with code examples, and shows how to decouple login logic using event‑like hooks for more maintainable backend development.

BackendEventPHP
0 likes · 6 min read
Using Hook Behaviors in ThinkPHP: A Practical Guide
php Courses
php Courses
Nov 2, 2020 · Backend Development

Implementing a Redis Multi-Database Singleton Wrapper in ThinkPHP

This guide demonstrates how to set up a Redis multi-database singleton wrapper in a ThinkPHP project, covering prerequisite installation, configuration of connection parameters, creation of a custom Redis class with static instance management, and example usage of Redis commands across different databases.

BackendPHPRedis
0 likes · 3 min read
Implementing a Redis Multi-Database Singleton Wrapper in ThinkPHP
php Courses
php Courses
Nov 2, 2020 · Backend Development

Difference Between view() and fetch() Methods in ThinkPHP5 Controllers

The article explains the distinctions between the view() helper and the fetch() method in ThinkPHP5 controllers, showing code examples for both inherited and non‑inherited controllers, discussing how they handle common template configurations, and recommending the preferred usage in projects.

BackendPHPThinkPHP5
0 likes · 2 min read
Difference Between view() and fetch() Methods in ThinkPHP5 Controllers
php Courses
php Courses
Nov 2, 2020 · Backend Development

Using Laravel's RedisLock to Prevent Cache Breakdown

This article explains the cache breakdown problem, introduces Laravel 7's built‑in RedisLock class, details its constructor parameters, and provides a complete code example demonstrating how to acquire and release a Redis lock to safely populate and update cached data.

BackendLaravelLock
0 likes · 3 min read
Using Laravel's RedisLock to Prevent Cache Breakdown
Laravel Tech Community
Laravel Tech Community
Nov 1, 2020 · Backend Development

PHP array_flip: Swapping Array Keys and Values

This article explains how the PHP function array_flip works, its parameter requirements, return values, edge cases such as duplicate values, and provides clear code examples demonstrating how to swap keys and values in an associative array.

BackendPHPTutorial
0 likes · 2 min read
PHP array_flip: Swapping Array Keys and Values
php Courses
php Courses
Oct 30, 2020 · Backend Development

Common Laravel Collection Methods and Their Usage

This tutorial explains Laravel's powerful Collection class, demonstrating how to create collections with the collect helper and use methods such as filter, search, chunk, map, zip, whereNotIn, max, pluck, each, tap, pipe, contains, forget, and avg to manipulate data without additional database queries.

BackendCollectionsData manipulation
0 likes · 10 min read
Common Laravel Collection Methods and Their Usage
php Courses
php Courses
Oct 30, 2020 · Big Data

Introduction to Elasticsearch and Its Integration with Laravel

This article explains Elasticsearch's foundation on Lucene, compares its concepts to MySQL, describes inverted indexing, and provides a step‑by‑step guide for installing, configuring, and using the basemkhirat/elasticsearch Laravel plugin with code examples and tips for Chinese analysis.

BackendElasticsearchLaravel
0 likes · 4 min read
Introduction to Elasticsearch and Its Integration with Laravel
php Courses
php Courses
Oct 30, 2020 · Backend Development

Setting Up a Log Viewer in Hyperf with Routing and View Components

This guide explains how to install and configure the Hyperf log‑viewer component, publish its configuration, register a route, add view and template engine support, and adjust view and log settings to enable file log browsing and simple search within a PHP backend application.

BackendHyperfLog Viewer
0 likes · 3 min read
Setting Up a Log Viewer in Hyperf with Routing and View Components
php Courses
php Courses
Oct 30, 2020 · Backend Development

Understanding Composer Autoloading: PSR-0, PSR-4, Class‑Map, and Files

This article explains how Composer, the PHP dependency manager, supports four autoloading mechanisms—PSR‑0, PSR‑4, class‑map, and files—detailing their differences, configuration in composer.json, and practical code examples for loading classes.

AutoloadingBackendComposer
0 likes · 3 min read
Understanding Composer Autoloading: PSR-0, PSR-4, Class‑Map, and Files
php Courses
php Courses
Oct 30, 2020 · Backend Development

Common PHP Code Review Mistakes and How to Fix Them

After extensive code reviews, this article highlights frequent PHP mistakes—such as testing empty arrays before loops, unnecessary nesting, repeated isset calls, misuse of echo with sprintf, and inefficient array key checks—and provides concise refactored examples to improve readability and performance.

PHPcode reviewprogramming
0 likes · 4 min read
Common PHP Code Review Mistakes and How to Fix Them
Laravel Tech Community
Laravel Tech Community
Oct 17, 2020 · Backend Development

Binary‑Safe String Comparison with strcmp() in PHP

This article explains PHP's binary‑safe strcmp() function, detailing its case‑sensitive behavior, parameter meanings, return values, and provides a complete example demonstrating how to compare two strings and handle the result in code.

BackendPHPTutorial
0 likes · 2 min read
Binary‑Safe String Comparison with strcmp() in PHP
Laravel Tech Community
Laravel Tech Community
Oct 15, 2020 · Backend Development

Using PHP wordwrap() to Split Strings into Specified Lengths

This article explains the PHP wordwrap() function, its parameters (string, width, break, cut), return value, and provides two practical examples demonstrating how to break long strings into lines with custom delimiters and optional word cutting.

BackendPHPString Manipulation
0 likes · 2 min read
Using PHP wordwrap() to Split Strings into Specified Lengths