Re: [Pre-RFC][Discussion] Native Engine-Level PSR-4 Autoloader

From: Date: Fri, 17 Jul 2026 00:54:57 +0000
Subject: Re: [Pre-RFC][Discussion] Native Engine-Level PSR-4 Autoloader
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-131987@lists.php.net to get a copy of this message
> > > > I implemented a PECL extension doing pretty much this in > https://github.com/ > pprkut/autoload-psr > <https://github.com/pprkut/autoload-psr>, minus the > complimenting functions. > > I can't speak for performance benefits as I didn't do any benchmarks, I > don't > think they'd be very noticeable though. My primary motivation for writing > it > was to have an autoloader available from script start. The extension > supports > PSR-0 as well, which fits even better (IMHO) with that workflow since it > means > truly zero setup compared to PSR-4. > > Thanks for pointing this out to me, I'll check it out.

« previous php.internals (#131987) next »