Hi Sepehr, Could you explain why this functionality should be part of PHP core rather than a Composer package or framework-specific helper?
PHP is used in many contexts outside traditional websites (CLI applications, daemons, APIs, desktop applications, etc.), and favicon discovery appears to be specific to web applications. Additionally, favicon locations are not standardized. Sites may use /favicon.ico, HTML link tags, SVG icons, multiple icon sizes, CDN-hosted assets, or framework-specific asset structures. Because of this, it is not obvious how PHP core could reliably determine a favicon without making assumptions about application structure. It would be helpful to see more details about the prototype and the specific problem that cannot be solved effectively in userland. Regards, Diogoagc سپهر محمودی <[email protected]> escreveu em sáb., 13/06/2026 às 18:04 : > , Hi Internals > My name is Sepehr, and I am a web developer. I would like to request a > Wiki account to propose a new addition to the PHP core > Proposal: A built-in function to dynamically detect and return the > website's favicon URL (e.g., get_favicon()). > Motivation: > Currently, developers have to manually handle favicon paths. I have > developed a logic that automates this process by dynamically detecting the > favicon file within the project structure without requiring parameters. I > believe having a standard, built-in way to handle this would improve the > developer experience and make PHP more web-integrated. > Requested Username: Sepehrphp > Email: [email protected] > I have a working prototype and I am ready to start the RFC process. > Best regards, > Sepehrphp > > >
