Skip to content

Redesign the php.net homepage - #2105

Open
mattstauffer wants to merge 28 commits into
php:masterfrom
mattstauffer:mes/front-page-redesign
Open

mattstauffer wants to merge 28 commits into
php:masterfrom
mattstauffer:mes/front-page-redesign

Conversation

@mattstauffer

@mattstauffer mattstauffer commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

A new php.net homepage

Preview here: https://web-php-pr-2105.preview.thephp.foundation/

Discussion period: At least two weeks; no merge until at earliest December 4, 2026.

What is it?
This PR replaces the php.net homepage with a new design. It's the result of several months of open discussion in the PHP Ambassadors marketing group.

image

This PR's plans, priorities, and design have been evaluated and considered pretty extensively, but I'd especially love eyes on the code implementation, especially on these two areas:

  1. The code examples. Are these the examples that would be most compelling and helpful to someone new to PHP? Ideas for better ones are very welcome. (More on this below.)
  2. The implementation. There's a lot of code here, and I'd appreciate more people reading through it.

Why now

The current php.net design launched in 2014 (2013, 2014). That's twelve years ago! PHP itself has changed enormously since then, but the front door to the language still looks the way it did before PHP 7 existed, and today the homepage is mostly a release log.

That matters because many developers still think of PHP the way it was a decade or two ago, and php.net is often the first place they check. In one of the Ambassadors group meetings, this line stuck with me:

"The sustainability of the language is dependent on our ability to convince, and often re-convince, people that PHP is a viable language to use today."

php.net isn't the only place that work happens, but it's the one place every PHP developer--and, more importantly when convincing people PHP is viable--every curious/concerned newcomer will eventually land. Our homepage should show the language as it is today.

How we got here

This was all done in the open, and anyone has been welcome (and invited!) to join in at any point.

  • July: #1962 opened as a first draft of a new front page, built on Mark Randall's work. The discussion there produced a proposed goal, audiences, and list of "jobs" for a new attempt at redesigning the homepage.
  • July onward: The PHP Ambassadors group formed a marketing subgroup that meets monthly. The meetings are open to anyone, and the notes are public: meeting notes. Discussion continues between meetings in the #marketing channel on the PHPC Discord (it's a public server; you'll need to join to see the channel).
  • August: We agreed on the homepage's goal and audiences, and voted on which content was a must-have, a nice-to-have, or out of scope.
  • September: We worked through personas: developers new to PHP, developers coming back to it, and decision-makers at companies, governments, and schools. We talked through what each of them needs to see.
  • October: Jack McDade of Radical Design delivered a design based on that content plan. We reviewed it in the October meeting against everything we'd agreed on and came away with a list of changes.
  • November: I built it, worked through that list, and brought it back to the group. We agreed to ship it as one PR with a two-week discussion period, which is what you're looking at.

We're making it as a PR because the history of previous redesigns on PHP.net have been like this: a group of people openly plan a redesign, they present it for review, and then they merge it in.

Why a PR and not an RFC?

PHP's RFC process is for changes to the language, and php.net's past redesigns haven't gone through it. They followed the path this one has: a group plans the redesign in the open, presents it for review, and merges it once the feedback has been worked through. Derick helped make sure we followed that precedent here. This PR and its two-week discussion period are the review step, so this is the place to push back on any of it.

Who it's for

The goal we agreed on:

The php.net homepage should make a modern developer or technical decision-maker immediately understand that PHP is widely deployed, actively evolving, easy to start with, practical for real production software, and backed by a mature ecosystem and global community.

In priority order, the audiences are:

  1. Developers evaluating or re-evaluating PHP. Many of them have an outdated impression of the language.
  2. Technical decision-makers. CTOs, engineering leads, educators, and others who decide whether a team or a class uses PHP.
  3. Existing PHP developers. That's most of us, and we still need fast paths to downloads, docs, releases, and migration guides

Putting existing developers third was deliberate. We're the audience that already knows our way around php.net and is most willing to take an extra click to get somewhere. Newcomers and decision-makers often get one look before deciding PHP isn't worth their time.

In practice, the extra click is small. The hero still has "Download PHP" and a "Latest releases" panel with every supported version and its changelog and upgrade links, plus the latest news. The footer keeps the utility links. And if you really just want the old homepage, it's still there at /classic/. It's hidden from search engines but available to anyone who wants it.

The design

This isn't a net-new visual identity. We deliberately built it as a continuation of what already exists:

  • The current php.net design, with the same color palette and overall feel.
  • The PHP 8.x release pages, which are the most recent design work on the site and where the community has already accepted a more modern look. The homepage uses the same visual language, and this PR moves the release pages onto the same shared style sheets and JavaScript so the two stay consistent going forward.

The homepage is made up of these sections:

  • Hero: positioning, Get started / Download / News and Releases
  • Logo wall: well-known organizations with a public, sourced connection to PHP (sources below)
  • Everything the web needs: what PHP is for today, plus the code examples
  • A package for almost everything: Composer, Packagist (with live stats), and PIE
  • Still moving: the newest release and its highlights
  • Built by people: how the language is developed, and funding the people who work on it
  • Get started: set up, learn the language, explore packages
  • PHP through the years: a timeline of every release since 1995

Out of scope for now

A few things came up that we decided to leave for later PRs, so they get their own conversations:

  • A section on frameworks and projects built with PHP. The ecosystem is one of PHP's strongest selling points, but picking which to feature requires its own separate discussion.
  • Case studies
  • A dedicated community/events page

Feedback I'm looking for

Code examples

This is the place where I'd most love help. The examples live in include/homepage/examples.php. Right now there are five:

  • UserController.php: a JSON endpoint using attributes, typed properties, and constructor injection
  • GreetCommand.php: a CLI command defined with attributes
  • release_date.php: coding against PSR interfaces with a pluggable HTTP client
  • stream_large_dataset.php: generators walking a file larger than memory
  • extract_headlines.php: fetching a page and querying it with the built-in DOM parser and CSS selectors

The question is: what would be most compelling and helpful to someone who's new to PHP, or who hasn't looked at it in years? Suggestions for replacements or additions are very welcome. Good examples are short, show off something modern about the language, and have realistic output in the terminal panel.

Implementation

Of course, I did the best I could to match this to A) the existing code style of the site, B) the future-facing code style its phpstan/etc. guidelines expect, and C) a framework-agnostic view of what modern PHP/CSS/JS looks like today. But I'm only one person and I'd love any help necessary to make sure this fits well with the current and future php.net code.

What's in the code
  • Homepage: public/index.php, with data and helpers in include/homepage.inc and include/homepage/*.php (examples, release highlights, logos, timeline overrides)
  • New classes in src/Homepage/, each with unit tests:
    • FeaturedRelease: picks the newest released branch for the "Meet PHP x.y" card, so highlights for an upcoming release can be added before release day
    • ReleaseHistory: builds the "PHP through the years" timeline
    • PackagistStats: reads Packagist totals from a JSON file written by the backend update script, with fallback values if the file is missing
  • CSS: plain CSS with no build step. It's split into base.css, components.css, homepage.css, search-modal.css, and release-page.css. php85.css became release-page.css, and the release pages now share components with the homepage. theme-medium.css is no longer used by these pages.
  • JS: small, dependency-free scripts: homepage.js (tabs, releases panel, timeline), site-header.js (theme switcher, search, mobile menu, language switcher), copy-code.js, and keyboard.js (a jQuery-free version of the keyboard easter eggs)
  • Fonts: Inter and IBM Plex Mono, self-hosted under public/fonts/
  • Shared header and footer changes in include/header.inc, include/layout.inc, include/site-header.inc, and include/footer.inc
  • Old homepage moved to public/classic/index.php, sending X-Robots-Tag: noindex
  • Compatible with PHP 8.4
Logo wall sources

Every logo needs a public, reputable connection to PHP. Here's what each one is based on. A couple of logos from earlier drafts were removed because we couldn't find a public source.

Logo Connection Source
Nike about.nike.com runs on Twill https://area17.com/clients/nike
NASA nasa.gov and NASA Science run on WordPress https://lonerockpoint.com/work/nasa-flagship-wordpress/
The New York Times Built with WordPress and Twill https://wordpress.org/showcase/the-new-york-times-company/
Zillow Aryeo, a Zillow company, is built on Laravel https://github.com/AryeoHQ
Asana Marketing website runs on Statamic https://web.archive.org/web/20250321162614/https://blog.asana.com/2014/02/scaling-asana-com/
PlayStation PlayStation Blog runs on WordPress https://wordpress.org/showcase/playstationblog/
DHL DHL eCommerce website runs on Drupal https://www.dhlecommerce.nl/en/business/knowledge-platform/dhl-blog/multiple-prizes-dhl-website
Etsy Marketplace engineering built with PHP https://careers.etsy.com/engineering
Marvel MARVEL Strike Force website runs on Twill https://twillcms.com/made
Der Spiegel Built on Statamic https://statamic.com/showcase/der-spiegel
Lemon Squeezy Built on Laravel https://www.lemonsqueezy.com/blog/lemonhead-gilbert-pellegrom
Wikipedia Built on MediaWiki, a PHP application https://www.mediawiki.org/wiki/PHP

Timeline

Comments are open for at minimum two weeks, until December 4, 2026. I'll keep updating the branch as feedback comes in. After that, unless something significant comes up, I hope for us to make the decision to merge; if further discussions is required at that point, of course we can keep it moving!

Thank you

Thanks to Jack McDade for the design, to Derick Rethans for sharing the history of designs and helping guide the process to be in line with how work has historically proceeded on php.net, to Mark Randall for the groundwork in #1962, to Roman Pronskiy and Nuno Guerra for the 8.x release page design for showing what php.net could look like, and to everyone who came to the marketing meetings, left notes, or commented on #1962.

@github-actions

Copy link
Copy Markdown
Contributor

📊 Regression report for commit dba96e0 is at https://web-php-regression-report-pr-2105.preview.thephp.foundation

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Preview for commit dba96e0 is available at https://web-php-pr-2105.preview.thephp.foundation

@TimWolla TimWolla left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated styles resulted in a horizontal scrollbar for the Duration example on the release page for me:

image

While doing the release page, I've carefully hardwrapped the code so it's not scrollable (and without introducing too many weird breaks). Can we get just a little bit of additional width there?

Comment thread public/index.php Resolved
Comment thread include/homepage/features.php Resolved

@morrisonlevi morrisonlevi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing: can't find the source for it, but I think this:

Made for the web. From the beginning.

Should just be:

Made for the web from the beginning.

It's better grammar and not everything is doing the two-sentence thing already, no reason to shoe-horn it in, I think?

Comment thread public/index.php

<section id="history" data-release-history aria-labelledby="history-heading" class="history">
<div class="container history__intro">
<h2 id="history-heading" class="section-title section-title--small">PHP through the years.</h2>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is interesting, but it is not clear for a user that this has a horizontal scroll. I am also not in favor that this breaks beyond the container (by default). Perhaps we can utilise the outers of the container to indicate that a scroll here is possible?

Comment thread public/index.php
<ol role="list" aria-label="PHP release milestones" aria-describedby="history-help">
<?php foreach ($history['releases'] as $i => $release): ?>
<li class="history__release" style="left: <?= $release['left'] ?>px">
<a draggable="false" data-history-release<?php if ($release['url']): ?> href="<?= $release['url'] ?>"<?php endif; ?> title="<?= $release['title'] ?>" aria-label="<?= $release['title'] ?>"<?= $i === array_key_last($history['releases']) ? '' : ' tabindex="-1"' ?> class="history__mark<?= $release['major'] ? ' history__mark--major' : '' ?>">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a tooltip (e.g tippy.js) to give more information, than relying on title/aria-label to give it more of an active feel.

*/
return [
'1.0' => ['label' => 'PHP Tools 1.0', 'date' => '1995-06-08', 'url' => 'https://talks.php.net/hhs'],
'2.0' => ['label' => 'PHP/FI 2.0', 'date' => '1997-11-12', 'url' => 'https://talks.php.net/show/oscon2002/5'],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link is very buggy. It keeps refreshing.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone know how to fix that page?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks broken.

@dannyclarkdev

Copy link
Copy Markdown

I like it. It looks a lot like TailwindUI's old components, but there's nothing inherently wrong with that. It's a big improvement.

I might increase spacing above the "POWERED BY PHP" title and decrease spacing below it to visually balance the top and bottom padding of the section.

@bakugo

bakugo commented Nov 20, 2026

Copy link
Copy Markdown

If the goal of this redesign is to make the PHP homepage completely indistinguishable from every other AI slop website generated in 30 minutes from a single prompt, it's extremely effective 👍

@mathsewell

Copy link
Copy Markdown

The updated styles resulted in a horizontal scrollbar for the Duration example on the release page for me:

While doing the release page, I've carefully hardwrapped the code so it's not scrollable (and without introducing too many weird breaks). Can we get just a little bit of additional width there?

One thing that makes this feel odd to me is that you can't see the scroll bar until you try to scroll it. In some cases (and on some devices) it's really obvious, but in others less so.

I also have a horizontal scroll bar for just the 8.6 version of the polling api, even though the content is comfortably in the pane.

@pabloenoc

Copy link
Copy Markdown

The timeline at the bottom is a wonderful touch, great job! Everything else like it was left to AI. Why is that?

PHP is one of the most influential and important programming languages in the world. We deserve a design that champions that legacy. Take a look at the website designs of Ruby, Go, and Rust. Every single one has personality while maintaining a cohesive design.

This design is going to look outdated in the coming 6-12 months because it favors looks over relevant meaning:

  • The green "active" dot in the navbar has no substance. It is repeated below the hero in the "Latest News" section but without a border. Why do both?
  • The light / dark mode toggle icon is a desktop computer. Then when it is clicked it turns into a moon. Why is that? Should the icon not be a sun?
  • Another green active dot in the "Everything the web needs" section next to "Open source since 1995". Why?

In terms of accessibility, I can only speak for myself because I have astigmatism, but the contrast in the colors is pretty difficult on my eyes. The section that does it best is the "Built by people. Open by design." section. The purples are strong and differ enough from the background to establish a clear difference. The borders and lines on the page are too much. For someone with astigmatism, scrolling past the page leaves a blur or a spot similar to a car's windshield wiper.

I understand this is the work of unpaid volunteers, so I'm very grateful for their time. If anything can be taken from this comment, please let it call attention to the contrast in colors throughout the site in light mode and the overuse of borders and lines in the page.

Thank you very much once again. PHP deserves a wonderful website because of its role in the history of the web. Please let us know how we can help!

@muglug

muglug commented Nov 20, 2026

Copy link
Copy Markdown

The powered-by section is a little iffy. I would think an org is, in some sense, powered by PHP if a majority of the code that powers their website backend is written in PHP. I don't think it's sufficient to have a company blog powered by WordPress, as that would include most of the Fortune 500.

If we applied the that rule to the list it would rule out NYTimes, Asana, Zillow and DHL (seems only the NL site uses Drupal). Etsy and Wikipedia are safely PHP, and Nasa.gov and Der Spiegel seem like a safe bet too. Unsure about the others.

From the websites that went down due to the PHP outage, you could maybe add the BBC to the list, and also various government websites.

Comment thread include/homepage/examples.php Outdated
}
<span class="tok-comment tok-italic">// The archive is newest-first, so the year&#x27;s first posts are at the end.</span>
<span class="tok-keyword">echo</span> <span class="tok-function">json_encode</span>(<span class="tok-function">array_slice</span>(<span class="tok-function">array_reverse</span>(<span class="tok-text">$headlines</span>), 0, 3), <span class="tok-type">JSON_PRETTY_PRINT</span>);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is a good showcase for PFA + pipe operator:

echo $headlines
	|> array_reverse(?)
	|> array_slice(?, 0, 3)
	|> json_encode(?, JSON_PRETTY_PRINT);

@mattstauffer

Copy link
Copy Markdown
Contributor Author

OK, I tried to bring together the constructive notes that were brought up here and in the internals mailing list into one list here. Obviously the list conversation will continue, as will comments here, but it feels like the comments have slowed down and this will give me a point to start from as I'm starting to process what are easy/obvious steps and which require more conversation with the Marketing group, the list, or others.

As I mentioned before, our general practices have been: we listen to all constructive feedback; we apply our general goals and priorities and personas to them; and if those don't make a decision clear, it gets brought up to the marketing subgroup.

I haven't done any responding or prioritizing in here yet, just gathering. I'll probably start off after this by grouping them into three categories:

  1. Actionable, unobjectionable; I'll apply these right away
  2. We won't act on (usually because this has already come up in decision-making and we reached a conclusion, OR because, as I didn't explain as well as I should've in the original PR description, this is largely designed based on the release pages, which are already live and approved of), but we can explain why
  3. Needs conversation before a decision can be made

OK, here's the list as it exists so far!

Visual design and branding

  • Put more bold PHP purple above the fold
  • Give the page more PHP personality so it doesn't read as a generic SaaS or corporate template; look at the Ruby, Go, Rust and Swift sites.
  • Use the original PHP logo.
  • Use the original PHP color.
  • Make the palette less washed out.
  • Replace the beige light-mode background with white or a very light neutral gray.
  • Cut back the grid lines, borders and extra lines.
  • Make the hero guide lines around the rotated logo align exactly, or drop them.
  • Light-mode header: use one background colour instead of three, align the border with the header and make border colours consistent.
  • Rework the "8.6 is here" block, which reads like an AI template. Drop the green gem!
  • Remove or explain the green "active" dots (navbar, Latest News, "Open source since 1995", before the second release).
  • Make the hero stronger and fill the mostly empty space above the fold.
  • Add more space above the "Powered by PHP" heading and less below it.
  • Bring back elePHPants (for example the elePHPant SVG from the 8.6 release page in the footer, linked to the elephpant page (and redesign that page later).
  • Don't default to dark mode.

Layout and section order

  • Consider re-ordering sections; see email conversation with Juliette and Ben
  • Move news and releases higher; the big intro box pushes them down.
  • Show more than one news, item especially critical security news.
  • Show each release on its own line in a vertical list, not two on one line and one below. Or split the news/releases into two columns.
  • Show how an urgent security notice would look in this design.
  • Move "8.6 is here" out of the header into an announcement block, and show it on mobile. simonrjones (PR).
  • Bring PHP's heritage further up the page.
  • Give decision-makers a clear next step after landing on the page.

Copy and content

  • Rewrite the hero sentence that starts with a verb and mixes nouns ("Build ... open source language", "a scripting language too, just as strong on the command line").
  • Change "Made for the web. From the beginning." to "Made for the web from the beginning."
  • Tone down the corporate, two-fragment heading style ("Security. AI & agents."), and make the other headings as confident as the hero; "Still moving." reads like old software.
  • Clarify who the page is for (new users, decision-makers or existing maintainers).

Powered by PHP section

  • Publish how showcases are chosen, so everyone is on an even footing.
  • Add rel="nofollow" to the logo links.
  • Make the logo links consistent; some go to the site's developer, some to careers pages, some to a code repo.
  • List only organizations whose backend is mostly PHP: drop NYTimes, Asana, Zillow and DHL; keep Etsy, Wikipedia, NASA.gov and Der Spiegel; consider the BBC and government sites.
  • Lead the list with WordPress, Wikipedia and NASA.
  • Mention that NASA runs 20+ internal MediaWiki wikis alongside the WordPress entry.
  • Replace the Lemon Squeezy logo, since the company is shutting down.

Code examples

  • Make the examples work as shown, or add setup hints, since most need packages, a framework or a front controller (only extract_headlines.php runs as is; #[Route] isn't explained).
  • Show that the package ecosystem makes these possible, without looking like you're promoting one package or framework.
  • Simplify: fewer implementation details, a simpler fully typed example (for example with #[SensitiveParameter]), or just echo $headlines[0].
  • Be consistent about names: Guzzle's full class name is shown but PSR ClientInterface and Symfony's AsCommand and Route are hidden.
  • Show a pipe-operator version of the headlines example, to show off partial function application.
  • Make the examples runnable in the browser with PHP WASM.
  • Decide on braces in string interpolation (version=$version vs {$version}).
  • On mobile, show the example files as a grid instead of a long list above the tabs.

Navigation, header and community links

  • Bring back the conference and user group links that the old sidebar had, for example in "Built by People".
  • Add a "Community" top-nav menu (Conferences, User Groups at php.ug, Get Involved, The PHP Foundation), or rename "Get Involved" to "Community".
  • Theme switcher: give it a label or tooltip.
  • Theme switcher: use the half-filled circle icon from the release pages, and a sun rather than a moon for light mode.
  • Theme switcher: offer three choices, automatic, light and dark. chschneider (PR).
  • Search modal: don't stretch it across the full page, and declutter its footer.
  • Show OS-specific install commands with OS detection and a copy button, like Bun.

Accessibility and contrast

  • Work toward WCAG 2.2: colour-blind users, screen readers and keyboard-only navigation.
  • Raise light-mode contrast.
  • Use real tooltips (for example tippy.js) on the timeline markers instead of relying on title and aria-label.

Mobile and the timeline

  • Reorder content on mobile; people often open the site on a phone right after an announcement.
  • Fix the Composer and Packagist icons overlapping the version and stats boxes on mobile.
  • Make it obvious the timeline scrolls sideways (the scrollbar only shows once you try), for example with the container's edges, and keep it from breaking out of the container by default.
  • Add left and right arrows to the timeline.

Bugs and broken items

  • Fix the "read the story" link in PHP through the years, which points to /manual/history.php.php.
  • Make the feature icons match the release page (puzzle vs question mark for PFA).
  • Widen the "Duration" code block on the release page slightly; the new styles give it a horizontal scrollbar.
  • Remove the scrollbar on the 8.6 polling API example, whose content fits.
  • Fix or replace the PHP/FI 2.0 timeline link, which keeps refreshing.
  • Fix the PHP 8.5 clone icon (php-85-clone.svg), which looks broken.
  • The keyboard easter egg's rotation doesn't change the page height, so content gets hard to find; reconsider shipping the easter eggs.

Code review and implementation

All from @DanielEScherzer inline review.

  • examples.php: document how the syntax highlighting is produced and how to rebuild it from plain code, and add a test using separate code and highlighted_code keys.
  • examples.php: move the tok-comment output wrapping out of this file if possible.
  • Use plain ASCII instead of Unicode arrows and ellipses in comments (site-header.inc, copy-code.js).
  • Document what packagist-stats.json is and how it's generated (for example with @comment keys).
  • keyboard.js: give the easter-egg code a clearer name or documentation.
  • components.css: put each CSS block on multiple lines for cleaner diffs.
  • homepage.css: document what the generated background image should look like, including the linear-gradient versions.

Scope and process

  • Carry the new style to the docs, downloads and other pages, and show how the docs would look, since jumping back to the old style is jarring.

What didn't make it onto this list

  • I might've just missed something; apologies if so!
  • Un-actionable positive or negative comments were left out

@alanseiden

Copy link
Copy Markdown

I would remove the second sentence ("It's a scripting language, too..."). It does not add much value. It dilutes the power of the strong first sentence. I say this someone who speaks to technical decision makers. When editing material for both business people and engineers, I have found that less can be more.

@jmulquin

Copy link
Copy Markdown

This response has been extremely heartening; it means a lot to know how much feedback from the community is being taken into consideration. Thankyou all for your effort, it is much appreciated. 🙏

@mattstauffer

mattstauffer commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

OK! i tried to group them as I mentioned in my previous comment. And when I have time this week I'll get started:

A. Acting on the obvious ones
B. Playing around with the less obvious ones and either acting if it becomes clear, or running them to the designer and the marketing group if not
C. Checking the "not gonna do" list with the marketing group to make sure they're on the same page
D. Possibly proposing some other changes to the php.net site outside of this PR to make some of the "can't tackle today" requests more viable.

Thanks again everyone!!!!


1. Actionable without any consideration, ready to go (or decide not to go!)

Visual design and branding

  • Fix the Composer and Packagist icons overlapping the version and stats boxes on mobile.
  • Add more space above the "Powered by PHP" heading and less below it.
  • Remove or explain the green "active" dots (navbar, Latest News, "Open source since 1995", before the second release).
  • Bring back elePHPants (for example the elePHPant SVG from the 8.6 release page in the footer, linked to the elephpant page (and redesign that page later).

Accessibility and contrast

  • Work toward WCAG 2.2: colour-blind users, screen readers and keyboard-only navigation. (notes: I've already run WAVE quite a few times and made its recommended changes, but I'll do another round!)
    (Note: The site isn't perfect, but it's actually an improvement on all the accessibility scores I checked as compared to the current php.net home page!)
  • Raise light-mode contrast.

Powered by PHP section

  • Add rel="nofollow" to the logo links.
  • Actually (mentioned on Discord) just get rid of the logo links entirely!
  • Replace Lemon Squeezy with something else
  • Publish how showcases are chosen, so everyone is on an even footing (it's in the code, and the metrics for how we do it is in this PR; if there's anywhere else it should be published we can do that too!)

Navigation, header and community links

  • Theme switcher: give it a label or tooltip.
  • Theme switcher: use the half-filled circle icon from the release pages, and a sun rather than a moon for light mode.

Code examples

  • Decide on braces in string interpolation (version=$version vs {$version}).
  • Be consistent about names: Guzzle's full class name is shown but PSR ClientInterface and Symfony's AsCommand and Route are hidden.

Bugs and broken items

  • Fix the "read the story" link in PHP through the years, which points to /manual/history.php.php. (NOTE: This isn't a broken link, it's a real page, so unless that page is not the correct page, I'll keep this).
  • Make the feature icons match the release page (puzzle vs question mark for PFA).
  • Widen the "Duration" code block on the release page slightly; the new styles give it a horizontal scrollbar.
  • Remove the scrollbar on the 8.6 polling API example, whose content fits.
  • Fix or replace the PHP/FI 2.0 timeline link, which keeps refreshing.
  • Fix the PHP 8.5 clone icon (php-85-clone.svg), which looks broken.
  • The keyboard easter egg's rotation doesn't change the page height, so content gets hard to find; reconsider shipping the easter eggs.

Code review and implementation

All from @DanielEScherzer inline review.

  • examples.php: document how the syntax highlighting is produced and how to rebuild it from plain code, and add a test using separate code and highlighted_code keys.
  • examples.php: move the tok-comment output wrapping out of this file if possible.
  • Use plain ASCII instead of Unicode arrows and ellipses in comments (site-header.inc, copy-code.js).
  • Document what packagist-stats.json is and how it's generated (for example with @comment keys).
  • keyboard.js: give the easter-egg code a clearer name or documentation.
  • components.css: put each CSS block on multiple lines for cleaner diffs.
  • homepage.css: document what the generated background image should look like, including the linear-gradient versions.

2. Likely actionable, needs to be looked into more

Layout and section order

  • Consider re-ordering sections; see email conversation with Juliette and Ben
  • Move news and releases higher; the big intro box pushes them down.
  • Give decision-makers a clear next step after landing on the page.
  • Evaluate using each release on its own line, or splitting the news/releases into two columns
  • Bring PHP's heritage further up the page.
  • Reorder content on mobile; people often open the site on a phone right after an announcement.
  • Show more than one news item, especially critical security news.
  • Move "8.6 is here" out of the header into an announcement block, and show it on mobile.

Visual design and branding

  • Put more bold PHP purple above the fold
  • Rework the "8.6 is here" block, which reads like an AI template. Drop the green gem!
  • Adjust the hero guidelines? (Make the hero guide lines around the rotated logo align exactly, or drop them.)
  • Light-mode header: use one background colour instead of three, align the border with the header and make border colours consistent (I'll have to dig into this, I think this is client-specific)

Copy and content

  • Change "Made for the web. From the beginning." to "Made for the web from the beginning."
  • Rewrite the hero sentence that starts with a verb and mixes nouns ("Build ... open source language", "a scripting language too, just as strong on the command line").
    (I re-wrote it, but I can't say mine is very good, so I think I'll bring this to the marketing group)

Navigation, header and community links

  • Look for places to bring back the conference and user group links that the old sidebar had, for example in "Built by People".

Code examples

  • Show a pipe-operator version of the headlines example, to show off partial function application.
  • On mobile, show the example files as a grid instead of a long list above the tabs.

Timeline

  • Make it obvious the timeline scrolls sideways (the scrollbar only shows once you try), for example with the container's edges, and keep it from breaking out of the container by default.
    (I think the instructions above the timeline should be enough!)
  • Add left and right arrows to the timeline.
    (I think the instructions above the timeline should be enough!)

Powered by PHP section

  • Make the logo links consistent; some go to the site's developer, some to careers pages, some to a code repo.

3. Needs conversation before a decision can be made

Visual design and branding

  • Give the page more PHP personality so it doesn't read as a generic SaaS or corporate template; look at the Ruby, Go, Rust and Swift sites.
  • Use real tooltips (for example tippy.js) on the timeline markers instead of relying on title and aria-label.

Copy and content

  • Tone down the corporate, two-fragment heading style ("Security. AI & agents."), and make the other headings as confident as the hero; "Still moving." reads like old software.

Powered by PHP section

  • List only organizations whose backend is mostly PHP: drop NYTimes, Asana, Zillow and DHL; keep Etsy, Wikipedia, NASA.gov and Der Spiegel; consider the BBC and government sites.

Code examples

  • Make the examples work as shown, or add setup hints, since most need packages, a framework or a front controller (only extract_headlines.php runs as is; #[Route] isn't explained).
  • Show that the package ecosystem makes these possible, without looking like you're promoting one package or framework.
  • Simplify: fewer implementation details, a simpler fully typed example (for example with #[SensitiveParameter]), or just echo $headlines[0].
  • Make the examples runnable in the browser with PHP WASM.

Navigation, header and community links

  • Add a "Community" top-nav menu (Conferences, User Groups at php.ug, Get Involved, The PHP Foundation), or rename "Get Involved" to "Community".

4. We won't act on, but it could be relevant later

We won't act on these right now for reasons described below, but they may merit future work on the site that would enable this to happen.

  • Carry the new style to the docs, downloads and other pages, and show how the docs would look, since jumping back to the old style is jarring.
    (We want to do this in a future PR so this PR can be smaller, but it's planned to do this immediately after (if) this PR is merged)
  • Show OS-specific install commands with OS detection and a copy button, like Bun.
    (I really like the designs in Redesign the php.net homepage #2105 (comment); however, I think we have some work to do on the downloads page before we can build this component. Thankfully, this is something we can add after the fact; the "Download" button could later pop something like this open, or it could be there all the time, if we were to eventually get to the point where we had such a simple install story! I don't think we're ready for that yet but once we are I think we should talk about adding it!)
  • Show how an urgent security notice would look in this design.
    (turns out we don't have the concept of a "security" or "urgent" update in our news, so that would have to be decided before we apply it to this page)

5. We won't act on

I believe I've handled each of these appropriately according to the goals and priorities of the work, but these are all just Matt Stauffer's responses; I will also ask the Marketing group to review all of these on our next call, and maybe even earlier in our Discord.

  • Search modal: don't stretch it across the full page, and declutter its footer.
    (this is exactly how it works in the rest of the site, so that can be a conversation for another PR)
  • Use the original PHP logo.
    (The current site doesn't even use the old logo. No reason to go backward.)
  • Use the original PHP color.
    (This design is based on the latest additions to the PHP home page: The release pages. We followed the purples used there, which are very similar but more vibrant.)
  • Theme switcher: offer three choices, automatic, light and dark.
    (We followed the pattern used in the rest of the site; see Improve theme toggle behavior #2081)
  • Make the palette less washed out.
    (There is more purple, and the purple is more vibrant, than the current home page. This is a move in a less-washed out direction!)
  • Replace the beige light-mode background with white or a very light neutral gray.
    (I can't actually find where this one came from–maybe a comment that was deleted?–so I can't respond to its argument.)
  • Make the hero stronger and fill the mostly empty space above the fold.
    ("Make it stronger" isn't a strong enough argument. Shouldn't have considered this a constructive comment.)
  • Cut back the grid lines, borders and extra lines.
    (Went back and looked at the comment and this was more of a casual reference, going to skip.)
  • Don't default to dark mode.
    (This redesign doesn't change any logic of whether the site defaults to light or dark, it just follows the pattern defined elsewhere, which is to default to whatever your system is set to.)
  • Clarify who the page is for (new users, decision-makers or existing maintainers).
    (Sorry, this wasn't an actual request, but just a comment; we've clarified that the site is primarily for newcomers, and existing users should have one-or-two-click access to important things, but not expect them to always be above the fold on the home page.)
  • Lead the list with WordPress, Wikipedia and NASA.
    (WordPress is a PHP project, and those are offlimits for now. NASA and Wikipedia are already there.)

@RicLeP

RicLeP commented Nov 24, 2026

Copy link
Copy Markdown

I do get slightly generic designed by AI vibes from it due to all the borders and lines, but it’s definately a big step forward.

image

Latest releases. I read down then across, so see 8.6, 8.4, 8.5. This might just be me, curious how others read. I’d line up the changelog and upgrading links.

Lemon Squeezy is sadly going away so you’ll want a new logo added there.

image

There are a few pieces that feel a little random such as From a single request..... in the ‘footer’ of the box, with the open source since 1995 to the right. It doesn’t feel considered why that text was added there,

image

Love the install count! 🚀 But 6 million versions... I’m not sure that says the right thing, I look at that read it’s going to be a mess to use with do many versions.

@bkdotcom

Copy link
Copy Markdown

I think giving the header a purple background would help bridge the old with the new

We can't let perfect get in the way of better.
The front page should be a living / evolving site. Let's get the ball rolling.

@kevinpapst

Copy link
Copy Markdown

When will the preview be updated? Can we already review the latest changes?

@mattstauffer

Copy link
Copy Markdown
Contributor Author

@pricop

  • The border is not aligned with the header either.

I can't reproduce this in any browser. What's your browser/OS?

@mattstauffer

Copy link
Copy Markdown
Contributor Author

@kevinpapst I have no idea! Maybe what @TimWolla did with the labels cause a re-build when we want one?

@pricop

pricop commented Nov 24, 2026

Copy link
Copy Markdown

@pricop

  • The border is not aligned with the header either.

I can't reproduce this in any browser. What's your browser/OS?

Windows 10 / 11 + Chrome, clearly visible on Light Mode (tested on several machines).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.