Tagged articles

PSR-4

4 articles · Page 1 of 1
php Courses
php Courses
May 8, 2024 · Backend Development

Understanding Composer Autoload and PHP Class Loading in Laravel

This article explains how Laravel’s convenient architecture can hide PHP’s file‑loading requirements, demonstrates the fatal error caused by missing requires, and shows how Composer’s PSR‑4 autoloading automatically resolves class loading through proper configuration and the vendor/autoload.php entry point.

PHPPSR-4autoload
0 likes · 7 min read
Understanding Composer Autoload and PHP Class Loading in Laravel
php Courses
php Courses
Apr 10, 2023 · Backend Development

How to Create and Publish a PHP Composer Package to GitHub and Packagist

This guide walks you through preparing a GitHub and Packagist account, creating a repository, initializing a Composer package (both automatically and manually), configuring PSR‑4 autoload, writing source code, and finally publishing the package by pushing to GitHub and submitting it to Packagist.

GitHubPSR-4Packagist
0 likes · 6 min read
How to Create and Publish a PHP Composer Package to GitHub and Packagist