Skip to content

r/PHP

PHP: The latest news in the PHP world
66k posts archived · 787k comments

Follow-up to the PHP2Shell version count from October: two weeks after the fix, 96% of sites on managed hosts showed a fixed version, 23% on cloud servers

I work at IPinfo. In October I posted the version count from before the PHP2Shell fix. After that we rescanned the same addresses every day for two weeks after the October 21 release. 87,865 live sites on 8.2–8.5 that didn't show a fixed version on October 22 Five networks run by hosting companies t...

1 points0 comments
Open on Reddit

I am new here

I'm 78. Retired 16 years ago. I have spent the last week rewriting an old php7.4 app so it suns under (is written with) php8.4......my protect is an ancient files based cms called Robopages. < 10,000 lines of code but it does a lot. Once I get that ironed out l will work on an update to a php 8.6 se...

1 points0 comments
Open on Reddit

Partial function application in PHP 8.6 is such a redundant feature (unpopular opinion)

PHP 8.6 adds a feature called partial function application. Here's how it works: php $foo = str_replace(?, 'x', ?); $bar = $foo('a', 'aloha'); // xlohx I'm not a fan of this feature, as it's just a confusing syntax sugar. Consider this example: php $value1 = str_replace('a', 'x', 'aloha'); $value2 =...

1 points0 comments
Open on Reddit

Why php aint blowing up with AI ??

Excuse me if am uninformed but AI which led to a Rust boom ,Next.js becoming splattered across the internet Why isn't PHP blowing up .Laravel is a great framework if you want to get things rolling so why is that i am not seeing it everywhere Wordpress somehow still persist but not PHP frameworks .Th...

1 points0 comments
Open on Reddit

Do I have code bias?

I know that code bias is a thing in programming, and I am always going to prefer my way of coding but I don't know whether the code I work with from our other developer is actually bad or whether I'm just being hit with code bias. I have only ever worked with one other developers code, that hasn't a...

1 points0 comments
Open on Reddit

VIES MS_UNAVAILABLE is not “invalid VAT”: a small PHP retry helper and how we handle it

When VIES returns MS_UNAVAILABLE or MS_MAX_CONCURRENT_REQ, that is not a verdict that the VAT number is invalid. It means the check did not complete: either that country’s VAT register did not answer, or that country is at its concurrent-request limit. Do not reject the customer or treat the number...

1 points0 comments
Open on Reddit

Kinetis Vector 1.0

Hey r/PHP, I've been building Kinetis for a while: an MIT-licensed PHP framework built from day one around persistent workers. Your app boots once and serves lots of requests instead of rebuilding itself on every one. The core is non-blocking and built on native Fibers, so when a request is waiting...

6 points2 comments
Open on Reddit

I rebuilt crawl4ai in PHP: ~20× faster web → Markdown for LLMs, typed extraction, no browser needed

Hey r/PHP 👋 I've been using crawl4ai (the popular Python crawler for LLM/RAG pipelines) and wanted the same thing natively in PHP. So I built PAM Crawl: it covers all of crawl4ai's features, with a different engine underneath. The idea: crawl4ai opens a browser for every page. Most pages don't need...

0 points1 comments
Open on Reddit

The cost of Rust

I know Rust pretty well. I did a partial-port, partial-rewrite of a big PHP project into Rust by hand. I've ported two more big systems for Rust using LLMs — one, a toy port of Psalm, and the other a port (playground here) of an 300k-line OCaml

76 points14 comments
Open on Reddit

Two Telegram packages for PHP: a grammY-style bot framework, and a "WhatsApp Web"-style client for your own account

Hi r/PHP! I've been building an ecosystem of packages for PAM, a persistent PHP runtime I work on, and just released two for Telegram. Both are Apache-2.0 and on Packagist. I'd love feedback on the API design. 1. `pushinbr/pam-telegram`: a bot framework It's inspired by grammY and has zero Composer...

0 points4 comments
Open on Reddit

Laravel's move into Rust got me thinking...

It reminded me of all the times Taylor and some of his most vocal supporters (especially those who work with him) mocked developers who advocated for stricter code and better coding practices within Laravel. And what do they do now? They embrace one of the strictest programming languages out there....

116 points100 comments
Open on Reddit

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.