Tagged articles

PHP

3051 articles · Page 27 of 31
Open Source Tech Hub
Open Source Tech Hub
Oct 15, 2020 · Information Security

Mastering Casbin: A Powerful Open‑Source Access Control Framework for PHP

This guide introduces Casbin, an efficient open‑source authorization library, outlines its supported languages, key features, what it does not handle, core concepts, installation via Composer, and provides a complete PHP example with model and policy files to enforce access control.

Access ControlAuthorizationBackend Security
0 likes · 4 min read
Mastering Casbin: A Powerful Open‑Source Access Control Framework for PHP
Laravel Tech Community
Laravel Tech Community
Oct 14, 2020 · Backend Development

Using mb_strtoupper() to Convert Strings to Uppercase in PHP

This article explains the PHP mb_strtoupper() function, detailing its syntax, parameters, return value, and demonstrates usage that converts English and Unicode strings to uppercase, highlighting optional encoding handling, including how to set internal encoding and handle multibyte characters correctly.

PHPString Functionsmb_strtoupper
0 likes · 2 min read
Using mb_strtoupper() to Convert Strings to Uppercase in PHP
Laravel Tech Community
Laravel Tech Community
Oct 13, 2020 · Backend Development

Using mb_strtolower() to Convert Strings to Lowercase in PHP

The article explains PHP's mb_strtolower() function, detailing its purpose to convert all alphabetic characters in a string to lowercase, describing its parameters, return value, and providing two illustrative examples—including handling of UTF‑8 encoded text.

PHPStringencoding
0 likes · 2 min read
Using mb_strtolower() to Convert Strings to Lowercase in PHP
Laravel Tech Community
Laravel Tech Community
Oct 10, 2020 · Backend Development

PHP mb_strstr() – Find First Occurrence of a Substring

The article explains PHP’s mb_strstr() function, detailing its syntax, how it finds the first occurrence of a needle in a haystack, the optional before_needle and encoding parameters, and the return values including FALSE when the needle is absent.

BackendPHPSubstring
0 likes · 2 min read
PHP mb_strstr() – Find First Occurrence of a Substring
Laravel Tech Community
Laravel Tech Community
Sep 29, 2020 · Backend Development

PHP mb_substr Function: Multibyte‑Safe Substring Extraction

This article explains the PHP mb_substr() function, detailing its multibyte‑safe substring behavior, parameter list (str, start, length, encoding), return value, and provides a clear example showing how to extract the first two characters from a Chinese string.

BackendFunctionPHP
0 likes · 2 min read
PHP mb_substr Function: Multibyte‑Safe Substring Extraction
21CTO
21CTO
Sep 28, 2020 · Backend Development

Why PHP and .NET Remain the Top Choices for Enterprise Web Development

The article compares PHP and .NET, highlighting their performance, rapid development cycles, strong community support, rich libraries, security features, and cross‑platform capabilities, explaining why they are the preferred backend stacks for businesses building modern web applications.

.NETBackendPHP
0 likes · 9 min read
Why PHP and .NET Remain the Top Choices for Enterprise Web Development
Laravel Tech Community
Laravel Tech Community
Sep 21, 2020 · Backend Development

PHP chgrp Function: Change File Group Ownership

The article explains PHP’s chgrp function, which changes a file’s group ownership, outlines its syntax, required parameters, permission restrictions, return values, and provides a complete PHP example demonstrating how to modify a file’s group and display the result.

BackendPHPUnix
0 likes · 2 min read
PHP chgrp Function: Change File Group Ownership
Laravel Tech Community
Laravel Tech Community
Sep 17, 2020 · Backend Development

PHP chdir() Function: Change Working Directory

This article explains the PHP chdir() function, its syntax, parameters, return values, and provides a practical example showing how to change the current working directory and verify the change using getcwd().

BackendPHPchdir
0 likes · 1 min read
PHP chdir() Function: Change Working Directory
Laravel Tech Community
Laravel Tech Community
Sep 15, 2020 · Backend Development

PHP is_dir() Function: Determine if a Path is a Directory

This article explains the PHP is_dir() function, describing its purpose to check whether a given filename refers to an existing directory, detailing its parameter, return values, and providing example code snippets demonstrating true and false outcomes for various path inputs.

BackendFile SystemFunction
0 likes · 2 min read
PHP is_dir() Function: Determine if a Path is a Directory
Laravel Tech Community
Laravel Tech Community
Sep 14, 2020 · Backend Development

PHP rmdir() Function: Deleting Directories

The PHP rmdir() function removes an empty directory with proper permissions, returning TRUE on success or FALSE on failure, and the article explains its parameters, return values, and provides cross‑platform code examples for safely deleting directories.

BackendPHPdirectory deletion
0 likes · 2 min read
PHP rmdir() Function: Deleting Directories
Laravel Tech Community
Laravel Tech Community
Sep 12, 2020 · Backend Development

Common Laravel 7 Installation Errors and Their Solutions

This guide details typical Laravel 7 installation problems—such as missing PHP extensions, version mismatches, 403 errors, cache and permission issues—and provides step‑by‑step Composer commands, code snippets, and troubleshooting solutions to help developers quickly resolve them.

ComposerInstallationLaravel
0 likes · 6 min read
Common Laravel 7 Installation Errors and Their Solutions
Laravel Tech Community
Laravel Tech Community
Sep 9, 2020 · Backend Development

Understanding PHP preg_replace: Syntax, Parameters, and Practical Examples

This article explains PHP's preg_replace function, detailing its signature, parameter meanings, return values, and providing multiple code examples that demonstrate pattern matching, backreferences, array handling, and replacement limits for effective string manipulation in backend development.

Backend DevelopmentPHPString Manipulation
0 likes · 6 min read
Understanding PHP preg_replace: Syntax, Parameters, and Practical Examples
Laravel Tech Community
Laravel Tech Community
Sep 6, 2020 · Backend Development

PHP str_split() Function – Convert a String to an Array

The article explains PHP's str_split() function, which converts a string into an array of characters or fixed‑length chunks, details its parameters and return behavior, and provides example code with output, including demonstrating how split_length affects the result.

BackendFunctionPHP
0 likes · 2 min read
PHP str_split() Function – Convert a String to an Array
Laravel Tech Community
Laravel Tech Community
Sep 4, 2020 · Backend Development

Using PHP implode() to Convert an Array into a String

This article explains how the PHP implode() function joins the values of a one‑dimensional array into a single string, describes its parameters and return value, and provides clear code examples demonstrating typical usage and edge cases.

BackendPHPString
0 likes · 2 min read
Using PHP implode() to Convert an Array into a String
Laravel Tech Community
Laravel Tech Community
Sep 1, 2020 · Fundamentals

PHP Design Patterns: Singleton, Factory, Registry, Adapter, and Observer

This article introduces common PHP design patterns—including Singleton, Factory, Registry, Adapter, and Observer—explaining their purpose, structure, typical use cases, and providing complete code examples for each pattern to illustrate how they can be implemented in object‑oriented applications.

AdapterDesign PatternsPHP
0 likes · 7 min read
PHP Design Patterns: Singleton, Factory, Registry, Adapter, and Observer
Laravel Tech Community
Laravel Tech Community
Sep 1, 2020 · Backend Development

Using PHP fputcsv() to Write CSV Files

This article explains how the PHP fputcsv() function formats an array as a CSV line and writes it to a file, detailing its parameters, return value, and providing a complete example with code and the resulting CSV output.

CSVPHPfile I/O
0 likes · 2 min read
Using PHP fputcsv() to Write CSV Files
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Aug 19, 2020 · Cloud Computing

Deploy Discuz! Forum on Huawei Cloud in 6 Simple Steps

This step‑by‑step guide shows how to set up a Discuz! forum on a Huawei Cloud CentOS 7.6 server, covering cloud login, security group configuration, installation of Apache, PHP, MariaDB, downloading and deploying Discuz! source, and final web‑based installation.

ApacheDiscuzHuawei Cloud
0 likes · 6 min read
Deploy Discuz! Forum on Huawei Cloud in 6 Simple Steps
Laravel Tech Community
Laravel Tech Community
Aug 17, 2020 · Backend Development

PHP strpbrk() Function: Find Characters in a String

This article explains the PHP strpbrk() function, which searches a haystack string for any character from a given list, details its parameters and return value, and provides two illustrative code examples demonstrating case‑sensitive matching and character selection.

BackendCode ExamplePHP
0 likes · 2 min read
PHP strpbrk() Function: Find Characters in a String
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Aug 14, 2020 · Backend Development

Introducing Fend: A High‑Performance Open‑Source PHP Framework from TAL Education

The article presents Fend, an open‑source high‑performance PHP framework released by TAL Education's technology team, detailing its design philosophy, feature set, dual FPM/Swoole engine support, performance benchmarks, installation procedures for multiple versions, and its widespread adoption across the company's online services.

PHPSwoolefpm
0 likes · 8 min read
Introducing Fend: A High‑Performance Open‑Source PHP Framework from TAL Education
Laravel Tech Community
Laravel Tech Community
Aug 13, 2020 · Fundamentals

IDE Shortcut Techniques and Common Control‑Flow Statements for PHP/Java

This article introduces powerful IDE code‑completion shortcuts and demonstrates how to use fundamental control‑flow constructs such as if, switch, while, for loops, variable definitions, and common statements like return, print, try‑catch and throw in PHP/Java, providing code examples to boost development efficiency.

IDE shortcutsJavaPHP
0 likes · 4 min read
IDE Shortcut Techniques and Common Control‑Flow Statements for PHP/Java
Laravel Tech Community
Laravel Tech Community
Aug 13, 2020 · Backend Development

WordPress New Release Features and Developer Updates

The article outlines the latest WordPress release, highlighting performance improvements such as image lazy loading, new XML sitemap support, enhanced block editor capabilities, accessibility upgrades, and a series of developer‑focused updates including REST API block registration, environment definitions, updated libraries, and new functions for theme and plugin development.

CMSPHPWordPress
0 likes · 3 min read
WordPress New Release Features and Developer Updates
Laravel Tech Community
Laravel Tech Community
Aug 11, 2020 · Backend Development

Understanding IoC, Simple Factory, and Dependency Injection in PHP

This article explains the Inversion of Control (IoC) pattern, demonstrates a simple factory for creating traffic‑tool objects, and shows how to apply Dependency Injection (DI) in PHP to decouple a Student class from concrete transportation implementations, culminating in a lightweight IoC container example.

Dependency InjectionDesign PatternsIOC
0 likes · 7 min read
Understanding IoC, Simple Factory, and Dependency Injection in PHP
Laravel Tech Community
Laravel Tech Community
Aug 10, 2020 · Backend Development

CakePHP 4.1.2 Released – New Features and Fixes

CakePHP 4.1.2 has been released, bringing a series of bug fixes, PHP 8 compatibility improvements, enhanced type checking for validation methods, better module autoloading, millisecond‑level logging, corrected HEAD request handling, and refined database and XML entity processing.

CakePHPPHPUpdate
0 likes · 2 min read
CakePHP 4.1.2 Released – New Features and Fixes
Laravel Tech Community
Laravel Tech Community
Aug 6, 2020 · Backend Development

PHP rawurldecode() Function – Description, Parameters, Return Value, and Examples

rawurldecode() is a PHP function that decodes URL‑encoded strings by converting percent‑encoded hexadecimal sequences back to their original characters, returning the decoded string; the article explains its usage, parameters, return value, and provides example code demonstrating its behavior compared to urlencode and urldecode.

PHPURL decodingrawurldecode
0 likes · 2 min read
PHP rawurldecode() Function – Description, Parameters, Return Value, and Examples
Laravel Tech Community
Laravel Tech Community
Aug 2, 2020 · Backend Development

PHP http_build_query Function: Usage, Parameters, and Examples

This article explains the PHP http_build_query function, detailing its purpose of generating URL‑encoded query strings from arrays or objects, describing each parameter (query_data, numeric_prefix, arg_separator, enc_type), the return value, and providing multiple code examples illustrating typical usage and output.

BackendPHPURL encoding
0 likes · 3 min read
PHP http_build_query Function: Usage, Parameters, and Examples
Laravel Tech Community
Laravel Tech Community
Jul 27, 2020 · Backend Development

Mastering PHP’s pclose(): Properly Closing Process Pipes

This guide explains the PHP pclose() function, its signature, how it closes a process opened with popen(), the required handle parameter, the return values indicating the process termination status, and provides a clear example demonstrating its correct usage.

BackendFunctionPHP
0 likes · 2 min read
Mastering PHP’s pclose(): Properly Closing Process Pipes
Laravel Tech Community
Laravel Tech Community
Jul 26, 2020 · Backend Development

Understanding PHP's feof() Function and Safe EOF Handling

This article explains PHP's feof() function, detailing its purpose, required handle parameter, return values, and provides two practical code examples—one demonstrating a safe EOF check with timeout and another showing how to handle missing files without entering infinite loops.

BackendFile HandlingPHP
0 likes · 2 min read
Understanding PHP's feof() Function and Safe EOF Handling
Laravel Tech Community
Laravel Tech Community
Jul 25, 2020 · Backend Development

Using PHP pfsockopen() for Persistent Socket Connections

This article explains the PHP pfsockopen() function, its parameters, return values, and provides a complete example demonstrating how to establish a persistent SSL socket, send an HTTP POST request, and read the response using low‑level socket operations.

PHPPersistent ConnectionSocket
0 likes · 4 min read
Using PHP pfsockopen() for Persistent Socket Connections
Laravel Tech Community
Laravel Tech Community
Jul 24, 2020 · Backend Development

PHP fsockopen() Function: Usage, Parameters, and Examples

fsockopen() opens a network or Unix socket connection in PHP, with detailed parameter explanations, default behavior, error handling, and two practical code examples demonstrating HTTP GET requests and UDP socket usage, along with notes on blocking mode and related functions.

BackendPHPSocket
0 likes · 4 min read
PHP fsockopen() Function: Usage, Parameters, and Examples
Laravel Tech Community
Laravel Tech Community
Jul 22, 2020 · Backend Development

PHP file_get_contents Function: Description, Parameters, Return Value, and Usage Examples

This article explains the PHP file_get_contents function, detailing its purpose of reading an entire file into a string, describing each parameter and return value, and providing multiple practical code examples demonstrating basic usage, include path handling, partial reads, and custom stream contexts.

Backend DevelopmentFile HandlingPHP
0 likes · 3 min read
PHP file_get_contents Function: Description, Parameters, Return Value, and Usage Examples
Laravel Tech Community
Laravel Tech Community
Jul 18, 2020 · Backend Development

Using PHP is_link() to Detect Symbolic Links

This article explains the PHP is_link() function, its purpose of checking whether a given filename is a symbolic link, details its parameter and return values, and provides two practical code examples demonstrating how to use it for link detection and handling.

BackendPHPSymbolic Link
0 likes · 2 min read
Using PHP is_link() to Detect Symbolic Links
Laravel Tech Community
Laravel Tech Community
Jul 13, 2020 · Backend Development

Implementing Real‑Time Communication with Workerman and GatewayWorker Using WebSocket in PHP

This tutorial explains how to use the Workerman PHP socket framework and GatewayWorker to replace HTTP long‑polling with WebSocket‑based real‑time communication, covering protocol basics, short vs. long connections, integration with MVC frameworks, and complete client‑ and server‑side code examples.

Long ConnectionPHPWebSocket
0 likes · 8 min read
Implementing Real‑Time Communication with Workerman and GatewayWorker Using WebSocket in PHP
Laravel Tech Community
Laravel Tech Community
Jul 8, 2020 · Backend Development

PHP file() Function: Reading Files into an Array

The PHP file() function reads an entire file into an array, offering optional flags to control path lookup, line handling, and context usage, with examples showing how to display lines, concatenate content, and apply flag combinations for flexible file processing.

BackendFile HandlingPHP
0 likes · 3 min read
PHP file() Function: Reading Files into an Array
Laravel Tech Community
Laravel Tech Community
Jul 7, 2020 · Backend Development

PHP rawurldecode Function and Custom UTF-8 URL Decoding

This article explains PHP's rawurldecode() function for decoding URL‑encoded strings, shows its signature, parameters, return value, provides a simple usage example, notes UTF‑8 considerations, and presents a custom utf8RawUrlDecode() function for handling non‑standard %uXXXX sequences.

BackendPHPURL decoding
0 likes · 3 min read
PHP rawurldecode Function and Custom UTF-8 URL Decoding
Laravel Tech Community
Laravel Tech Community
Jul 4, 2020 · Backend Development

PHP urlencode Function: Usage, Parameters, and Examples

This article explains the PHP urlencode() function, describing how it converts characters to URL‑encoded format, detailing its parameter and return value, and providing two practical code examples that demonstrate encoding strings for safe inclusion in URLs.

PHPurlencode
0 likes · 2 min read
PHP urlencode Function: Usage, Parameters, and Examples
Laravel Tech Community
Laravel Tech Community
Jul 1, 2020 · Backend Development

How to Convert Newlines to HTML Breaks with PHP’s nl2br Function

Learn how PHP's nl2br function inserts HTML line break tags before every newline in a string, understand its optional XHTML mode, see detailed parameter explanations, and explore three practical code examples demonstrating different newline scenarios and their resulting HTML output.

BackendFunctionHTML
0 likes · 2 min read
How to Convert Newlines to HTML Breaks with PHP’s nl2br Function
Laravel Tech Community
Laravel Tech Community
Jun 29, 2020 · Backend Development

PHP strncmp Function: Binary‑Safe String Comparison

The article explains PHP's strncmp function, a binary‑safe, case‑sensitive string comparison that compares the first N characters of two strings, detailing its syntax, parameters, return values, and providing practical code examples with expected outputs.

Backend DevelopmentPHPbinary safe
0 likes · 2 min read
PHP strncmp Function: Binary‑Safe String Comparison
Laravel Tech Community
Laravel Tech Community
Jun 28, 2020 · Backend Development

PHP strcmp() Function: Usage, Parameters, Return Values, and Examples

This article explains the PHP strcmp() function, describing its binary‑safe, case‑sensitive string comparison behavior, detailing its parameters and return values, and providing multiple code examples that illustrate how different string inputs affect the function’s output.

Backend DevelopmentCode ExamplePHP
0 likes · 2 min read
PHP strcmp() Function: Usage, Parameters, Return Values, and Examples
dbaplus Community
dbaplus Community
Jun 28, 2020 · Databases

How to Build a Visual MongoDB Slow Query Dashboard with PHP

This guide explains how to set up a PHP‑based web platform that collects MongoDB slow‑query logs via remote profiling, stores them in MySQL, and visualizes the data, including installation of required PHP extensions, database preparation, configuration, cron scheduling, and enabling profiling on MongoDB.

MongoDBPHPTool
0 likes · 7 min read
How to Build a Visual MongoDB Slow Query Dashboard with PHP
Laravel Tech Community
Laravel Tech Community
Jun 21, 2020 · Backend Development

Laravel User Authentication Setup Guide: Environment, Installation, Configuration, Controllers, Routes, and Middleware

This tutorial walks through configuring Laravel's user authentication by outlining server requirements, installing Laravel via Composer, setting up the application key, configuring auth files, creating controllers, defining routes, implementing middleware verification, and testing the login flow.

ComposerLaravelPHP
0 likes · 3 min read
Laravel User Authentication Setup Guide: Environment, Installation, Configuration, Controllers, Routes, and Middleware
Beike Product & Technology
Beike Product & Technology
Jun 18, 2020 · Backend Development

Optimizing PHP strtolower with SSE2 in PHP 8

This article explains how PHP's case‑insensitive function handling can be accelerated by implementing a locale‑independent strtolower using SSE2 SIMD instructions in PHP 8, compares it with previous table‑lookup methods, and discusses a further Yaf‑specific optimization.

BackendOptimizationPHP
0 likes · 6 min read
Optimizing PHP strtolower with SSE2 in PHP 8
Laravel Tech Community
Laravel Tech Community
Jun 17, 2020 · Backend Development

PHP strstr() Function: Usage, Parameters, Return Values, and Examples

This article explains PHP's strstr() function, detailing its purpose of locating the first occurrence of a needle in a haystack string, describing its parameters and return values, noting case‑sensitivity and performance considerations, and providing two practical code examples.

Backend DevelopmentCode ExamplePHP
0 likes · 2 min read
PHP strstr() Function: Usage, Parameters, Return Values, and Examples
Laravel Tech Community
Laravel Tech Community
Jun 14, 2020 · Backend Development

Symfony 5.1.1 Release: New Features and Bug Fixes

Symfony 5.1.1 has been released, offering an MVC‑based PHP framework that reduces repetitive code, integrates well with relational databases, provides extensive configuration options for enterprise applications, and includes a suite of tools such as testing, debugging, and documentation, alongside numerous bug fixes listed in the release notes.

BackendBugFixesPHP
0 likes · 3 min read
Symfony 5.1.1 Release: New Features and Bug Fixes
Laravel Tech Community
Laravel Tech Community
Jun 13, 2020 · Backend Development

Inserting and Updating Related Models with Laravel Eloquent

This article explains how to add, update, and manage related Eloquent models in Laravel—including saving single or multiple related records, using associate/dissociate for belongsTo relations, and handling many‑to‑many pivots with attach, detach, sync, toggle, and timestamp propagation.

BackendEloquentLaravel
0 likes · 7 min read
Inserting and Updating Related Models with Laravel Eloquent
Laravel Tech Community
Laravel Tech Community
Jun 13, 2020 · Backend Development

Understanding Eager Loading in Laravel Eloquent

This article explains Laravel Eloquent's eager loading techniques, demonstrating how to replace lazy-loaded N+1 queries with the with() method, preload multiple or nested relationships, select specific columns, apply constraints, and use lazy eager loading methods like load and loadMissing, all illustrated with PHP code examples.

BackendEager LoadingEloquent
0 likes · 6 min read
Understanding Eager Loading in Laravel Eloquent
Laravel Tech Community
Laravel Tech Community
Jun 13, 2020 · Backend Development

Understanding Laravel Eloquent Relationships: HasManyThrough, Polymorphic, and Advanced Query Techniques

This article explains how to define and use Laravel Eloquent relationships—including remote one‑to‑many (hasManyThrough), polymorphic, many‑to‑many polymorphic, and various query constraints—by showing required database schemas, model methods, and example code for retrieving and counting related records.

EloquentLaravelORM
0 likes · 11 min read
Understanding Laravel Eloquent Relationships: HasManyThrough, Polymorphic, and Advanced Query Techniques
Laravel Tech Community
Laravel Tech Community
Jun 13, 2020 · Backend Development

One-to-Many Relationships in Laravel Eloquent

This article explains how to define and use one-to-many and inverse (belongsTo) relationships in Laravel's Eloquent ORM, including default foreign key conventions, accessing related records, applying query constraints, and customizing foreign and local keys with code examples.

BackendEloquentLaravel
0 likes · 5 min read
One-to-Many Relationships in Laravel Eloquent
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Jun 12, 2020 · Backend Development

Understanding Swoole Coroutines and Asynchronous I/O in PHP

This article explains the fundamentals of Swoole coroutines, how they differ from threads and processes, the relationship between coroutines and asynchronous I/O, and provides practical code examples for timers, tasks, and concurrent DNS queries to help PHP developers write efficient, non‑blocking backend applications.

PHPSwooleasynchronous I/O
0 likes · 14 min read
Understanding Swoole Coroutines and Asynchronous I/O in PHP
58 Tech
58 Tech
Jun 12, 2020 · Backend Development

Service Refactoring and Performance Optimization for 58 Rental Business System

This article presents a comprehensive case study on how the 58 rental platform refactored its services and optimized performance by splitting common modules, adopting async interfaces, leveraging nginx + swoole, implementing data caching and pre‑loading, resulting in significant reductions in page rendering time and service latency across major app pages.

MicroservicesNginxPHP
0 likes · 9 min read
Service Refactoring and Performance Optimization for 58 Rental Business System
Laravel Tech Community
Laravel Tech Community
Jun 8, 2020 · Backend Development

PHP 8 Performance Benchmark Report by Phoronix

Phoronix benchmarked multiple PHP versions, including PHP 8 with and without JIT, revealing that PHP 8 offers modest gains over PHP 7.4 but a dramatic 92% speed increase when JIT is enabled, while older versions lag far behind.

BackendJITPHP
0 likes · 5 min read
PHP 8 Performance Benchmark Report by Phoronix
21CTO
21CTO
Jun 7, 2020 · Fundamentals

How to Eliminate Redundant Code: A Practical DRY Refactoring Guide in PHP

This article explains the DRY (Do Not Repeat Yourself) principle, demonstrates how duplicated PHP code in a Report class can be refactored by extracting shared logic into reusable methods, and shows the final clean implementation that improves readability and maintainability.

DRYPHPbest practices
0 likes · 7 min read
How to Eliminate Redundant Code: A Practical DRY Refactoring Guide in PHP
Laravel Tech Community
Laravel Tech Community
Jun 5, 2020 · Backend Development

PhpStorm 2020.1 Update Adds WSL 2 Support and Important Fixes

PhpStorm 2020.1’s second update introduces support for Windows Subsystem for Linux 2, enabling developers to configure a Linux‑based PHP interpreter on Windows, while also delivering several critical bug fixes and clarifying that Docker integration via WSL 2 is not yet available.

IDELinuxPHP
0 likes · 2 min read
PhpStorm 2020.1 Update Adds WSL 2 Support and Important Fixes
Laravel Tech Community
Laravel Tech Community
Jun 3, 2020 · Backend Development

Mastering PHP's ltrim(): Remove Unwanted Characters from Strings

This article explains how PHP's ltrim() function removes leading whitespace or custom-specified characters from strings, details its parameters and default character set, and provides clear code examples demonstrating default trimming, custom masks, and range-based character removal.

BackendPHPString Manipulation
0 likes · 3 min read
Mastering PHP's ltrim(): Remove Unwanted Characters from Strings
Laravel Tech Community
Laravel Tech Community
Jun 2, 2020 · Backend Development

Comprehensive Guide to Laravel Routing: Definitions, Parameters, Groups, Middleware, Prefixes, Sub‑domains, Namespaces, and Caching

This article provides an in‑depth tutorial on Laravel routing, covering basic route definitions, HTTP verbs, parameter handling, regex constraints, route naming, grouping, middleware, prefixes, sub‑domains, namespaces, and cache management, complete with code examples for each feature.

BackendLaravelPHP
0 likes · 5 min read
Comprehensive Guide to Laravel Routing: Definitions, Parameters, Groups, Middleware, Prefixes, Sub‑domains, Namespaces, and Caching
Laravel Tech Community
Laravel Tech Community
May 31, 2020 · Backend Development

PHP str_shuffle() Function: Randomly Shuffle a String

The article explains PHP’s str_shuffle() function, detailing its syntax, parameter description, return value, and provides a complete example that demonstrates how to assign a string, shuffle it with str_shuffle, and output the randomized result.

PHPStringrandomization
0 likes · 1 min read
PHP str_shuffle() Function: Randomly Shuffle a String
Laravel Tech Community
Laravel Tech Community
May 29, 2020 · Backend Development

Swoole Coroutine Channel: Overview, Methods, and Example Usage

This article introduces Swoole's Coroutine Channel for inter‑coroutine communication, explains its memory‑efficient implementation and key methods such as __construct, push, pop, stats, close, length, isEmpty, isFull, capacity and errCode, and provides a complete PHP example demonstrating producer‑consumer behavior.

@AsyncPHPSwoole
0 likes · 5 min read
Swoole Coroutine Channel: Overview, Methods, and Example Usage