Tag

Autoloading

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Aug 12, 2024 · Backend Development

Effective Resource Loading and Autoloading Strategies in PHP

This article explains the concepts of resource loading, preloading, lazy loading, conditional and batch loading in PHP, and provides detailed guidance on using autoloading mechanisms such as __autoload(), spl_autoload_register(), PSR‑4, and Composer to improve performance and maintainability of backend applications.

AutoloadingBackend DevelopmentPHP
0 likes · 16 min read
Effective Resource Loading and Autoloading Strategies in PHP
php中文网 Courses
php中文网 Courses
Nov 3, 2023 · Backend Development

Using Functions in PHP Namespaces: Definition, Invocation, and Autoloading

This article explains PHP namespaces, shows how to define functions within them, demonstrates fully qualified and alias‑based calls, covers sub‑namespace and global namespace usage, and introduces the spl_autoload_register() autoloader with practical code examples.

AutoloadingBackend DevelopmentFunctions
0 likes · 4 min read
Using Functions in PHP Namespaces: Definition, Invocation, and Autoloading
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.

AutoloadingComposerPHP
0 likes · 3 min read
Understanding Composer Autoloading: PSR-0, PSR-4, Class‑Map, and Files