HN Hall of Fame Weekly email

Babel-preset-php: PHP7 to ES7 syntax translator

gitlab.com Software & code Software projects Computer science Candidate
Screenshot of gitlab.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 2 calendar years, with breakout response in 2 of them.

submissions
5
submitters
5
observed span
2017–2020
peak thread · 63 comments
130 pts
latest 20+ return · 2020-07-26
102 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

That's a weekend project and it turned out better than I expected. Thanks to nikic's php-parser, astexplorer.net and Babel infrastructure handling the gnarly bits (e.g. source maps just worked). I started it because I hoped it would speed up rewrites of projects from PHP to JS, but now that I've actually seen the results, I realised that bad PHP code makes only worse JS (and there's no point rewriting good PHP code). Still, I think it could be useful for…

pornel·130-point thread·

This is cool, it's a tool to transpile it at build time so you are two steps removed from running PHP on the browser. I dissected this tool a while back and built another that lets you write and run PHP straight in the browser by doing the transformation on-the-fly. Wrote a blog post and all around it: https://francisco.io/blog/running-php-in-javascript/ Incidentally it's the #3 when you google "Run PHP in Javascript"

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
237

reference only — not used in Hall rules or ranking

Total comments
101

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2017-07-11PHP7 to ES7 syntax translatorpornel20
2017-07-11Babel-preset-php: PHP7 to ES7 syntax translatorFirst breakout · Best threadfarhadhf13063
2020-04-02PHP to JavaScript Syntax Translatorkbumsik20
2020-07-26PHP7 to ES7 Syntax Translatortosh10
2020-07-26Run PHP in the browser through BabelLatest 20+ point returntambourine_man10238