Tagged articles

PHP

3051 articles · Page 16 of 31
php Courses
php Courses
Feb 21, 2024 · Backend Development

Deep Dive into Laravel Accessors and Mutators

This article provides an in‑depth exploration of Laravel’s Eloquent Accessors and Mutators, explaining their purpose, demonstrating advanced usage with price conversion, encryption, hashing, and offering practical blog‑model examples such as title casing, excerpt generation, date formatting, slug creation, and email normalization to ensure data integrity.

AccessorsBackend DevelopmentEloquent
0 likes · 6 min read
Deep Dive into Laravel Accessors and Mutators
php Courses
php Courses
Feb 21, 2024 · Backend Development

Why Learn PHP Object-Oriented Programming and What You Can Build

This article explains why learning object‑oriented programming in PHP is essential, outlines the benefits and capabilities it unlocks—such as building database, authentication, pagination, and search classes—and provides a detailed curriculum covering core OOP concepts, advanced features, and a student management system project.

Backend DevelopmentPHPweb development
0 likes · 4 min read
Why Learn PHP Object-Oriented Programming and What You Can Build
php Courses
php Courses
Feb 21, 2024 · Backend Development

Using PHP’s is_null Function to Check for Null Variables

This article explains how the PHP built‑in function is_null can be used to determine whether a variable holds a null value, demonstrates its behavior with example code, and describes the resulting true or false outcomes for different variable types.

IS NULLPHPnull check
0 likes · 4 min read
Using PHP’s is_null Function to Check for Null Variables
php Courses
php Courses
Feb 21, 2024 · Backend Development

Using PHP's file_get_contents to Read Local and Remote Files

This article explains how to use PHP's file_get_contents function to read the contents of local files or remote URLs, covering basic usage, permission considerations, and error handling with clear code examples.

File ReadingPHPfile_get_contents
0 likes · 4 min read
Using PHP's file_get_contents to Read Local and Remote Files
php Courses
php Courses
Feb 20, 2024 · Backend Development

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

This article explains how to use PHP's built‑in file() function to read a text file into an array, demonstrates handling of newline characters, and shows how optional flags like FILE_IGNORE_NEW_LINES and FILE_SKIP_EMPTY_LINES can control line retention and empty‑line skipping.

PHParraysfile function
0 likes · 4 min read
Using PHP's file() Function to Read Files into an Array
php Courses
php Courses
Feb 20, 2024 · Backend Development

Using PHP fread() to Read Files: Syntax, Parameters, and Example

This article explains PHP's fread() function, detailing its syntax, parameters $handle and $length (and optional $offset), return values, and provides a complete example showing how to open a file, read its contents, output them, and close the handle.

PHPTutorialfread
0 likes · 4 min read
Using PHP fread() to Read Files: Syntax, Parameters, and Example
php Courses
php Courses
Feb 20, 2024 · Backend Development

How Laravel Loads Environment Variables During Bootstrap

This article explains Laravel's bootstrapping process for loading environment variables, detailing each step from configuration cache checking to creating a Dotenv instance, parsing the .env file, and handling related exceptions, with code examples illustrating the workflow.

BackendBootstrapLaravel
0 likes · 9 min read
How Laravel Loads Environment Variables During Bootstrap
Open Source Tech Hub
Open Source Tech Hub
Feb 19, 2024 · Backend Development

How Sqids Generates Short, URL‑Safe IDs and When to Use Them

Sqids is an open‑source library that creates short, unique, URL‑safe identifiers from one or more non‑negative integers, offering use cases like link shortening, event IDs, and custom object IDs while outlining its limitations and practical PHP examples.

PHPURL-safeencoding
0 likes · 5 min read
How Sqids Generates Short, URL‑Safe IDs and When to Use Them
Open Source Tech Hub
Open Source Tech Hub
Feb 19, 2024 · Backend Development

Why Laravel Stands Out: A Deep Dive into Its Elegant Backend Features

This article walks through Laravel's full‑stack design, showcasing Artisan commands, model generation, migrations, Eloquent relationships, routing, testing, and core container mechanics while highlighting practical code examples and the trade‑offs that make Laravel both powerful and occasionally heavyweight.

ArtisanBackend DevelopmentEloquent
0 likes · 25 min read
Why Laravel Stands Out: A Deep Dive into Its Elegant Backend Features
php Courses
php Courses
Feb 19, 2024 · Backend Development

Using PHP mysqli_query to Execute MySQL Queries

This article explains how to use PHP's mysqli_query function to perform MySQL operations such as SELECT, INSERT, UPDATE, and DELETE, providing a step‑by‑step example that creates a connection, runs a SELECT query, processes results, and handles errors and cleanup.

BackendMySQLPHP
0 likes · 4 min read
Using PHP mysqli_query to Execute MySQL Queries
php Courses
php Courses
Feb 19, 2024 · Backend Development

Course Overview: Understanding and Implementing a PHP Interpreter in C

This course introduces the background and features of PHP, explains the role and inner workings of the PHP interpreter—including lexical analysis, parsing, and the virtual machine—and guides students to implement a simple interpreter using C, enhancing their programming and problem‑solving skills.

Backend DevelopmentC ProgrammingPHP
0 likes · 4 min read
Course Overview: Understanding and Implementing a PHP Interpreter in C
php Courses
php Courses
Feb 19, 2024 · Fundamentals

Understanding Callbacks, Anonymous Functions, and Closures in PHP

This article explains the concepts of callbacks, anonymous functions, and closures in PHP, providing definitions, practical examples, and demonstrating how to implement sorting with callback functions, create inline anonymous functions, and use closures to capture external variables, highlighting their benefits for code reuse and readability.

CallbackPHPProgramming Fundamentals
0 likes · 7 min read
Understanding Callbacks, Anonymous Functions, and Closures in PHP
php Courses
php Courses
Feb 18, 2024 · Backend Development

Secure User Login and Logout Implementation in PHP

This article explains how to securely implement user login and logout functionality in PHP by using session management, server‑side validation, and CSRF token protection, providing sample code for authentication, session handling, and safe logout procedures.

CSRFPHPSession
0 likes · 6 min read
Secure User Login and Logout Implementation in PHP
php Courses
php Courses
Feb 18, 2024 · Backend Development

Automating PHP Code Formatting with PHP‑CS‑Fixer and VS Code

This guide explains how to use PHP‑CS‑Fixer together with VS Code to automatically format PHP code, enforce consistent coding standards, and improve readability, maintainability, and team collaboration across growing projects.

PHPPHP CS FixerVS Code
0 likes · 6 min read
Automating PHP Code Formatting with PHP‑CS‑Fixer and VS Code
21CTO
21CTO
Feb 13, 2024 · Backend Development

How Laravel 11 Introduces a Built‑in Health Check Route (/up)

Laravel 11 adds a default health‑check endpoint accessible via the /up route, configured in bootstrap/app.php, which dispatches a DiagnosingHealth event and returns an animated "Application up" page to verify application status.

LaravelLaravel 11PHP
0 likes · 2 min read
How Laravel 11 Introduces a Built‑in Health Check Route (/up)
MaGe Linux Operations
MaGe Linux Operations
Feb 13, 2024 · Fundamentals

Understanding Optimistic vs Pessimistic Locks: When and How to Use Them

This article explains the purpose of locks in concurrent environments, compares optimistic (CAS) and pessimistic locking mechanisms, outlines their advantages, disadvantages, suitable scenarios, and provides PHP/PDO code examples demonstrating implementation and performance testing under high concurrency.

MySQLOptimistic LockPHP
0 likes · 11 min read
Understanding Optimistic vs Pessimistic Locks: When and How to Use Them
Open Source Tech Hub
Open Source Tech Hub
Feb 8, 2024 · Backend Development

What Is Workerman and How to Use Its Connection Class in PHP

Workerman is an open‑source, high‑performance PHP application container that provides a low‑level service framework for building TCP/UDP, WebSocket, HTTP, and custom protocol servers, and this guide explains its core concepts, the Worker and Connection classes, and a simple usage example with code.

PHPasync IOnetwork-programming
0 likes · 4 min read
What Is Workerman and How to Use Its Connection Class in PHP
php Courses
php Courses
Feb 8, 2024 · Backend Development

Implementing a Membership Level System in a PHP E‑commerce Platform

This article explains how to design and implement a PHP-based membership level system for e‑commerce sites, covering strategy selection, database schema, calculation rules, benefits management, front‑end display, and data‑driven analysis to improve customer loyalty and operational effectiveness.

Backend DevelopmentE‑commercePHP
0 likes · 6 min read
Implementing a Membership Level System in a PHP E‑commerce Platform
php Courses
php Courses
Feb 8, 2024 · Backend Development

Using PHP trim() Function to Remove Whitespace and Specified Characters

This article explains PHP's trim() function, its syntax and parameters, and provides clear code examples showing how to remove surrounding whitespace or custom characters from strings, while also mentioning related ltrim() and rtrim() functions for one‑sided trimming.

PHPString Manipulationltrim
0 likes · 4 min read
Using PHP trim() Function to Remove Whitespace and Specified Characters
php Courses
php Courses
Feb 8, 2024 · Backend Development

Why Extending Symfony\Bundle\FrameworkBundle\Controller\Controller Is Discouraged and How AbstractController Improves Dependency Injection

The article explains that directly extending Symfony's Controller class leads to tight coupling and testing issues, and recommends using the AbstractController with proper dependency injection to achieve cleaner, more maintainable backend code in Symfony applications.

BackendControllerDependency Injection
0 likes · 6 min read
Why Extending Symfony\Bundle\FrameworkBundle\Controller\Controller Is Discouraged and How AbstractController Improves Dependency Injection
Open Source Tech Hub
Open Source Tech Hub
Feb 8, 2024 · Backend Development

What Is Workerman and How to Build a Simple PHP Server with It

Workerman is an open‑source, pure‑PHP high‑performance application container that acts like a PHP‑based Nginx, enabling developers to create TCP/UDP, WebSocket, HTTP services and even custom servers such as Redis or FTP, with multi‑process, epoll and non‑blocking I/O support.

Backend DevelopmentHigh PerformanceNetworking
0 likes · 3 min read
What Is Workerman and How to Build a Simple PHP Server with It
Open Source Tech Hub
Open Source Tech Hub
Feb 7, 2024 · Backend Development

How to Use SonarLint for Real‑Time PHP Code Quality Checks

This guide explains how to install SonarLint in IDEs like PHPStorm, run on‑the‑fly scans, interpret common PHP code‑smell warnings, and apply concrete fixes for issues such as missing braces, improper loop conditions, unreachable catch blocks, and absent default cases in switch statements.

IDE pluginPHPcode quality
0 likes · 5 min read
How to Use SonarLint for Real‑Time PHP Code Quality Checks
php Courses
php Courses
Feb 7, 2024 · Backend Development

Using PHP usort() Function to Sort Arrays with Custom Comparison Functions

This article explains the PHP usort() function, its syntax, how to write custom comparison callbacks, and provides practical examples for sorting numeric arrays, associative arrays of objects, and handling important considerations such as return values, mutability, and stability.

PHParray sortingcomparison-function
0 likes · 5 min read
Using PHP usort() Function to Sort Arrays with Custom Comparison Functions
php Courses
php Courses
Feb 7, 2024 · Backend Development

Building a Simple File Sharing Application with PHP and JavaScript

This guide walks you through creating a simple, secure file sharing web application using PHP and JavaScript, covering environment setup, user authentication, file upload handling, display of uploaded files, deletion, and UI styling with CSS and dynamic enhancements via JavaScript.

JavaScriptPHPweb development
0 likes · 5 min read
Building a Simple File Sharing Application with PHP and JavaScript
php Courses
php Courses
Feb 6, 2024 · Backend Development

Implementing Logistics Tracking in a PHP E‑Commerce Application

To enhance user trust and satisfaction in an e‑commerce platform, this guide outlines a step‑by‑step PHP implementation of logistics tracking, covering collection of shipment data, integration with tracking APIs, parsing responses, storing results, displaying updates to customers, and maintaining real‑time information.

API integrationBackend DevelopmentLogistics Tracking
0 likes · 5 min read
Implementing Logistics Tracking in a PHP E‑Commerce Application
php Courses
php Courses
Feb 6, 2024 · Backend Development

Method‑Based Model Casting in Laravel 11

Laravel 11 introduces a method‑based model casting system that replaces the traditional $casts property, allowing developers to define type conversions via Attribute methods, which improves code clarity, flexibility, testability, and overall maintainability of Eloquent models.

Backend DevelopmentEloquentLaravel
0 likes · 7 min read
Method‑Based Model Casting in Laravel 11
php Courses
php Courses
Feb 6, 2024 · Backend Development

Why Build a Custom PHP Framework – Course Outline

This article explains the motivations for creating a custom PHP framework—such as meeting specific needs, learning, long‑term maintenance, performance, usability, and security—and provides a detailed course outline covering MVC, routing, error handling, namespaces, design patterns, configuration, and database operations.

BackendDesign PatternsMVC
0 likes · 4 min read
Why Build a Custom PHP Framework – Course Outline
php Courses
php Courses
Feb 6, 2024 · Backend Development

How to Use PHP’s array_multisort() Function to Sort Multiple Arrays

This article explains the PHP array_multisort() function, detailing its syntax, parameter options, and a step‑by‑step example that sorts name, age, and score arrays, followed by the resulting output and a concise summary of its practical usage.

Code ExamplePHParray_multisort
0 likes · 4 min read
How to Use PHP’s array_multisort() Function to Sort Multiple Arrays
php Courses
php Courses
Feb 5, 2024 · Databases

How to Properly Close MySQL Connection Pools in PHP

This article explains the concept of MySQL connection pools in PHP, demonstrates how to create, use, and correctly close both individual connections and pooled connections using mysqli functions and a custom pool class, and highlights the importance of releasing resources to maintain application performance.

BackendMySQLPHP
0 likes · 5 min read
How to Properly Close MySQL Connection Pools in PHP
php Courses
php Courses
Feb 5, 2024 · Backend Development

How to Use PHP's array_fill() Function to Fill Arrays

This article explains the PHP array_fill() function, its signature, parameter meanings, return value, practical code examples for numeric and alphabetic keys, and important usage considerations for efficiently populating arrays without manual loops.

PHPTutorialarray
0 likes · 5 min read
How to Use PHP's array_fill() Function to Fill Arrays
Open Source Tech Hub
Open Source Tech Hub
Feb 4, 2024 · Backend Development

How to Build a Secure SQL Query Tool for Private Deployments

This article explains why a SQL query tool is essential for on‑premise systems, describes the challenges of remote access and data safety, and provides a step‑by‑step implementation covering frontend encryption, backend whitelist checks, decryption, and query execution with code examples.

Backend DevelopmentJavaScriptPHP
0 likes · 8 min read
How to Build a Secure SQL Query Tool for Private Deployments
php Courses
php Courses
Feb 4, 2024 · Backend Development

Implementing Product Promotion Push Functionality in a PHP E‑commerce Site

This article outlines the step‑by‑step process for implementing a product promotion push feature in a PHP‑based e‑commerce platform, covering target user identification, promotion table design, message templating, script development, database queries, cron scheduling, and result monitoring to boost user engagement and sales.

BackendCronPHP
0 likes · 5 min read
Implementing Product Promotion Push Functionality in a PHP E‑commerce Site
php Courses
php Courses
Feb 4, 2024 · Backend Development

Using PHP glob() Function to Find Files and Directories

This article explains the PHP glob() function, its syntax and optional flags, and provides four practical examples demonstrating how to locate PHP files, multiple file types, files using wildcards, and directories, while highlighting performance considerations.

PHPfile-searchglob
0 likes · 5 min read
Using PHP glob() Function to Find Files and Directories
php Courses
php Courses
Feb 4, 2024 · Backend Development

Top PHP Frameworks for Web Development Companies: A Comprehensive Guide

This guide examines why PHP web development companies rely on frameworks, outlines key benefits such as code reuse, rapid development, security, maintainability, scalability, risk reduction, and community support, and reviews ten leading PHP frameworks—including Laravel, Symfony, and CodeIgniter—to help choose the best fit for projects.

BackendCodeIgniterLaravel
0 likes · 9 min read
Top PHP Frameworks for Web Development Companies: A Comprehensive Guide
php Courses
php Courses
Feb 2, 2024 · Backend Development

Comprehensive Laravel Guide: Best Practices, Controllers, Eloquent ORM, Queues, Security, and Performance Optimization

This guide provides a thorough overview of Laravel development, covering MVC fundamentals, proper use of controllers, services, repositories, request validation, traits, Eloquent ORM operations, queue handling for emails, security measures, CSRF protection, performance tuning, and recommended learning resources, all illustrated with practical code examples.

Backend DevelopmentEloquentLaravel
0 likes · 16 min read
Comprehensive Laravel Guide: Best Practices, Controllers, Eloquent ORM, Queues, Security, and Performance Optimization
php Courses
php Courses
Feb 2, 2024 · Backend Development

Optimizing Exception Handling in PHP

This article explains how PHP developers can improve code stability and maintainability by using try‑catch blocks, creating custom exception classes, employing multiple catch clauses, adding finally blocks, and leveraging throw and set_exception_handler for comprehensive exception management.

BackendCoding PracticesPHP
0 likes · 4 min read
Optimizing Exception Handling in PHP
php Courses
php Courses
Feb 1, 2024 · Backend Development

How to Use PHP's file_get_contents() to Read Files and URLs

This article explains the PHP file_get_contents() function, covering its syntax, parameters, return values, practical examples for reading local files and remote URLs, common pitfalls, and best practices for reliable file handling in backend development.

PHPfile_get_contentsweb programming
0 likes · 4 min read
How to Use PHP's file_get_contents() to Read Files and URLs
php Courses
php Courses
Feb 1, 2024 · Backend Development

Implementing Product Promotion Push Functionality in a PHP E‑commerce Site

This article outlines a step‑by‑step guide for building a PHP‑based product promotion push system for e‑commerce platforms, covering recipient identification, database schema design, message templating, script development, scheduling with crontab, and result monitoring to boost user engagement and sales.

BackendCronPHP
0 likes · 4 min read
Implementing Product Promotion Push Functionality in a PHP E‑commerce Site
php Courses
php Courses
Jan 31, 2024 · Information Security

How to Defend Against CSRF Attacks in PHP

This article explains the principles of CSRF attacks and provides practical PHP techniques to prevent them, including token generation and verification, checking Referer and Origin headers, configuring secure cookie attributes, and ensuring safe login and logout processes.

CSRFCookieOrigin
0 likes · 5 min read
How to Defend Against CSRF Attacks in PHP
php Courses
php Courses
Jan 31, 2024 · Backend Development

Understanding and Implementing Laravel Scopes for Eloquent Models

Laravel Scopes provide a powerful mechanism to define reusable query constraints for Eloquent models, covering global, local, anonymous, and dynamic scopes, with step‑by‑step instructions on creation, application, removal, and best practices, enhancing code reuse, readability, and maintainability in backend development.

BackendEloquentLaravel
0 likes · 13 min read
Understanding and Implementing Laravel Scopes for Eloquent Models
Open Source Tech Hub
Open Source Tech Hub
Jan 31, 2024 · Artificial Intelligence

How to Build Async OpenAI PHP Clients with Workerman & Webman

This guide shows how to install the OpenAI PHP async client and implement streaming and non‑streaming chat, image generation, audio speech, and embedding features using Workerman and Webman, including Azure OpenAI support, with complete code examples.

APIOpenAIPHP
0 likes · 6 min read
How to Build Async OpenAI PHP Clients with Workerman & Webman
php Courses
php Courses
Jan 30, 2024 · Backend Development

Understanding PHP 7.3 array_key_first() Function: Syntax, Usage, and Examples

PHP 7.3 introduces the array_key_first() function, which returns the first key of an array or null if empty; this article explains its syntax, provides code examples for retrieving the first key and checking for empty arrays, and highlights usage considerations and potential pitfalls.

BackendFunctionsPHP
0 likes · 3 min read
Understanding PHP 7.3 array_key_first() Function: Syntax, Usage, and Examples
php Courses
php Courses
Jan 30, 2024 · Information Security

Using PHP to Secure Data Transmission with HTTPS, Symmetric and Asymmetric Encryption

This article explains how to protect data transmission in PHP applications by employing HTTPS (SSL/TLS), implementing symmetric encryption such as AES, and using asymmetric encryption with OpenSSL, while highlighting key management practices to ensure confidentiality, integrity, and resistance to man‑in‑the‑middle attacks.

HTTPSPHPasymmetric encryption
0 likes · 4 min read
Using PHP to Secure Data Transmission with HTTPS, Symmetric and Asymmetric Encryption
php Courses
php Courses
Jan 30, 2024 · Backend Development

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

This article explains PHP's array_fill() function, detailing its purpose, parameters, return values, and provides simple and multi‑dimensional examples illustrating how to create and populate arrays with a single value, including edge cases such as negative indices and zero length.

BackendFunctionsPHP
0 likes · 5 min read
PHP array_fill() Function: Usage, Parameters, Return Values, and Examples
php Courses
php Courses
Jan 30, 2024 · Backend Development

Guide to Configuring a PHP gRPC Client with Docker and Composer

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

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

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

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

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

Practical Laravel API Development Course Overview

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

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

Performance Comparison of IN vs JOIN in MySQL Queries

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

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

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

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

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

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

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

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

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

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

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

Understanding and Using PHP's in_array() Function

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Backend DevelopmentCode ExampleFile Handling
0 likes · 4 min read
Using PHP file_put_contents() to Write and Append Data to Files
php Courses
php Courses
Jan 23, 2024 · Backend Development

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

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

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

Using JWT for Secure Authentication in PHP

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

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

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

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

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

Common PHP Code Smells and Refactoring Solutions

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

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

Defining Classes and Using Constructor Property Promotion in PHP

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

ClassesConstructor PromotionObject-Oriented Programming
0 likes · 4 min read
Defining Classes and Using Constructor Property Promotion in PHP
php Courses
php Courses
Jan 19, 2024 · Backend Development

Using PHP file_put_contents() to Write Data to Files

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

Backend DevelopmentCode ExamplesFile Handling
0 likes · 4 min read
Using PHP file_put_contents() to Write Data to Files
php Courses
php Courses
Jan 19, 2024 · Databases

Redis Basics and Using Redis to Optimize PHP Web Applications

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

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

Install and Use FFmpeg with PHP‑FFMpeg on Ubuntu

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

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

Building an Efficient Web Crawler with PHP and Selenium

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

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

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

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

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

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

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

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

How to Use PHP's str_pad Function for String Padding

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

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

Using PHP mb_substr() for Multibyte String Truncation

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

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

Using Named Parameters in PHP 8

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

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

Defining Classes and Using Constructor Property Promotion in PHP

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

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

Using PHP fwrite() to Write Data to Files

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

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

Four Ways to Reverse an Array in PHP

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

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

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

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

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

Essential Laravel Packages for Backend Development

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

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

Advantages and Disadvantages of Static Methods in PHP

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

Backend DevelopmentCode MaintainabilityPHP
0 likes · 4 min read
Advantages and Disadvantages of Static Methods in PHP
php Courses
php Courses
Jan 10, 2024 · Backend Development

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

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

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

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

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

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

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

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

DockerDocker ComposeNginx
0 likes · 4 min read
Containerizing PHP and Nginx with Docker: Step‑by‑Step Guide