Skip to content

Showcase more of modern PHP on the landing page - #9

Open
nikamodis wants to merge 4 commits into
nunomaduro:mainfrom
nikamodis:feat/modern-php-showcase
Open

Showcase more of modern PHP on the landing page#9
nikamodis wants to merge 4 commits into
nunomaduro:mainfrom
nikamodis:feat/modern-php-showcase

Conversation

@nikamodis

@nikamodis nikamodis commented Jul 23, 2026

Copy link
Copy Markdown

whyphp.dev makes a great case for modern PHP, but the landing page only
demos a few features in passing. This PR adds more of what makes PHP good
in 2026 and tidies up the page structure, while staying in keeping with the
site's minimalism: no build step, no new dependencies.

Features:

  • A "Features" section with a responsive card grid covering enums, traits,
    match, readonly, named arguments, the nullsafe operator, and attributes.
    Each card has a short one line reason and a syntax highlighted snippet.
  • Enums and Traits tabs added to the existing hero code sample.
  • A "Features" link in the nav.

Housekeeping:

  • Split welcome.blade.php into section partials plus a feature-card component,
    and moved the inline styles and scripts into public/css/app.css and
    public/js/app.js. Still no build step; assets are served statically.
  • Small SEO touches: a color-scheme meta, sameAs profile links on the author
    structured data, and aria-labelledby on the content sections.

Covered by a feature test. The restructure leaves the rendered page unchanged.

modestas_sienauskas added 4 commits July 23, 2026 08:53
New card grid covering enums, traits, match, readonly, named arguments, nullsafe and attributes, plus a nav link and a feature test.
Extends the existing hero tabs so visitors can see an enum and a trait example next to the current snippets.
Moves the inline styles and scripts into public/css/app.css and public/js/app.js, and breaks the page into section partials plus a feature-card component. No build step; assets are served statically.
Adds a color-scheme meta, sameAs profile links on the author structured data, and aria-labelledby on the content sections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant