Example Implementations of PSR-4¶ The following examples illustrate PSR-4 compliant code: Closure Example¶ <?php /** * An example of a project-specific implementation. * * After registering this autoload function with SPL, the following line * would cause the function to attempt to load the \Foo\Bar\Baz\Qux class * from /path/to/project/src/Baz/Qux.php: * * new \Foo\Bar\Baz\Qux; * * @param string
![PSR-4 Example Implementations - PHP-FIG](https://cdn-ak-scissors.b.st-hatena.com/image/square/7d00a309229d8afa91ba1c740a758ec01ffd70b8/height=288;version=1;width=512/https%3A%2F%2Fwww.php-fig.org%2Fimg%2Fsocial-banner.png)