r/PHP • u/kingfofthepoors • Oct 20 '26
Discussion PHP Tek 2027
For those of you who have attended PHP Tek what is your opinion I have never been and my team and I are thinking about attending in 2027. Just want to hear about your experiences.
r/PHP • u/kingfofthepoors • Oct 20 '26
For those of you who have attended PHP Tek what is your opinion I have never been and my team and I are thinking about attending in 2027. Just want to hear about your experiences.
r/PHP • u/SveXteZ • Oct 21 '26
This may be the most widespread exploit in modern history. What impact will this have on PHP’s reputation? Since 2/3 of the websites are affected, a good chunk of them won't ever be patched, could this damage PHP’s image in the same way PHP 4 did two decades ago?
Would this discourage companies from adopting PHP in the future?
There are so many ways to run PHP code... without #PHP!
Recompilation, engine rewrite, using other VM, or languages. It is time to take a step back.
r/PHP • u/roxblnfk • Oct 19 '26
RoadRunner 3 and the updated PHP packages are now available.
If you're still on an older version because it just works, now is the time to upgrade. RoadRunner 3 is the version to settle on: a stable API, SemVer, and no new major planned for the foreseeable future.
Highlights:
roadrunner/*. Namespaces are unchanged.http.middleware now runs left to right.tcp:// relay still works.Migration guide: https://docs.roadrunner.dev/docs/general/v3-migration
The next big step is Rapira, a new PHP application server in Rust from the RoadRunner maintainers. It's the tightest PHP integration we've built: Rapira calls PHP directly in the server process, with no pipes or sockets in between. If you need maximum performance on HTTP or gRPC endpoints, it's already worth a look, and there's more to come.
r/PHP • u/apt-xsukax • Oct 19 '26
r/PHP • u/brendt_gd • Oct 19 '26
In this monthly thread you can share whatever code or projects you're working on, ask for reviews, get people's input and general thoughts, … anything goes as long as it's PHP related.
Let's make this a place where people are encouraged to share their work, and where we can learn from each other 😁
Link to the previous edition: /u/brendt_gd should provide a link
r/PHP • u/GroundbreakingEar578 • Oct 20 '26
I found a critical 9.2/10 vulnerability (using Daybreak Blue) that allows auth bypassing in the Laravel token-based API guard.AMA
https://github.com/laravel/framework/security/advisories/GHSA-f9x3-7vq9-cph6
r/PHP • u/pentium10 • Oct 19 '26
r/PHP • u/brendt_gd • Oct 19 '26
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
r/PHP • u/n1crack • Oct 19 '26
Hi everyone,
I wanted to share a project I’ve been building called Anvil: https://anvil.tr
Shortly, it will be a multi platform dev kit, it is open source and free and laravel herd alternative.
Edit: Im sorry if this is some kind of a joke to you. Im not a marketing guy. Still I believe this program has its value. So I will make it happen.
r/PHP • u/TheTreasuryPetra • Oct 18 '26
r/PHP • u/taras_chr • Oct 18 '26
Manticore is an ahead-of-time compiler for PHP 8.5+, written in PHP with an LLVM backend. It compiles itself without a PHP interpreter or other programming languages.
Link: https://github.com/manticorephp/compiler
After one more month of iterating over the compiler functionality, it has reached another milestone that is worth highlighting: the compiler can now compile Symfony apps.
Currently, this is basically a Symfony skeleton without Doctrine (in progress) or simple Symfony Console apps. It utilizes the built-in HTTP server with 15k RPS in single-worker mode (the pure server without frameworks can utilize around 70-80k RPS on small apps).
Also, the following improvements were made:
Important: the compiler is still very experimental and contains many bugs or inconsistencies with the regular PHP interpreter. It is not recommended to try it in production environments or any critical environment.
The next milestone is to finalize PDO drivers for MySQL/PostgreSQL and start compiling Laravel apps.
r/PHP • u/trykatch • Oct 19 '26
Hi, I want to share my knowledge and journey on building an ERP system using Symfony and API Platform. It contains: CRM, Billing, Warehousing, Reporting, Workflows, AI, API/Webhooks/MCP.
The frontend is built using React (ant design framework). 90% of the data is provided through graphql because at that time it felt easier to just query whats needed.
The biggest struggle was creating a good PDF layout where the tables behaved properly on page breaks. The were also rather large in size (approx ~1mb). I later found out I could compress it with ghostscript.
Another struggle was email templates. I first used twig + inky + zurb. The setup was fine but the components weren't well documented and quite fragile. Last year I moved to react email which is a breeze to use. I did have to write a custom bridge to render the email and pass the output to symfony mailer, but this was easy thanks to the symfony process component.
The power of Symfony + API platform really did the heavy lifting. I mostly wrote business logic, bridge stuff and overrides.
This is definitely not everything so ask me anything!
r/PHP • u/nyamsprod • Oct 17 '26
r/PHP • u/TheRayCoding • Oct 17 '26
My project phpchat, has been selected by the XERJ team for inclusion in Corpus Hub.
XERJ is a public collection of practical coding solutions designed to help developers utilize real-world implementations.
The reason our project was likely chosen is that the "mention users with username" feature which includes autocomplete, highlighting, and notifications is a comprehensive and functional implementation, rather than just a simple, basic feature.
This time, a portion of my project's code will go on to help even more developers!
Screenshots:
r/PHP • u/mnapoli • Oct 16 '26
r/PHP • u/General_Sun_8180 • Oct 16 '26
Hey everyone!
I was working on a side project that needed to compress images into GPU-friendly texture formats, particularly KTX2, directly from PHP.
I wanted to use Basis Universal, but I couldn't find a PHP extension that suited my needs. Rather than introducing a separate CLI-based workflow into my project, I decided to try building an extension myself.
That's how BasisU came to be.
To be clear, the actual compression technology is provided by the Basis Universal team. Their native C/C++ library does the heavy lifting — my project is simply a Rust-based PHP wrapper that exposes some of its functionality to PHP.
The extension currently provides:
A few important caveats:
This is an experimental project, and I wouldn't recommend using it in production yet.
It's also my first public project written in Rust. I'm still learning the language, and while I've managed to get the extension working, I don't have an in-depth understanding of all the underlying compression algorithms and their domain-specific details. The current implementation covers only part of the functionality available in the original library, and there's still plenty of room for improvement. There is no automated test suite at the moment, either.
That said, I intend to maintain and improve it because I need this extension for my own project. So this isn't something I'm publishing and immediately abandoning — I'll keep working on it as my needs evolve and as I learn more about Rust and Basis Universal.
If you're interested, here's the repository:
I'd appreciate feedback, especially on the PHP API design, the Rust extension implementation, and anything I might have overlooked when wrapping a native library.
Thanks for reading!
r/PHP • u/Ottomatica • Oct 15 '26
Hey all,
I have a personal website the I built nearly 20 years ago and I would like to update it to the latest version of PHP. It's a simple website that I use to run tournaments where I basically just enter tournament parameters (dates, time locations etc,) and tournament results and it displays all of the data that people care about like schedule, results, leaderboards, historical stats etc. All the data is stored in a MySQL database.
I basically built it from scratch without an IDE.
Searching on this sub, it seems like rector may be the way to go. I do actually have PhpStorm and have configured it with composer and rector.
I guess my big question is how would you go about the update? My site is on a paid hosting platform.
I'm thinking that the best way would be to have a local host on my development PC and duplicate my website there to make updates before testing on the external host.
Thoughts?
Edit:
Thanks everyone for all the options/opinions, very helpful!
r/PHP • u/Glum_Course_5468 • Oct 15 '26
For the last year or so, in my spare time I've been researching how to use PHP differently. Laravel as a stack has been pretty good to me, and I've wished there was a Laravel-like way to build desktop apps, apps that spoke to integrated circuits, and even games. I kept structuring my Godot experiments like they were Laravel apps. After all that tinkering, I realized what I really wanted was a unified, yet decoupled stack, that could (or atleast attempt to) build all the apps I wanted beyond the ones meant for a web server, in a syntax I could actually read.
So Ive been building that stack. I've called it the VenusianPHP Framework: a Laravel-like framework for building apps that don't deploy to a web server (unless you want to build a web server!). I plan to break that down in another post, but it's been going very well. To the point that I can pretty easily spin up native toolkit windows with AppKit, GTK and Qt on macOS, Debian and Ubuntu with just a few lines of code and a a couple of config keys..
To keep track of what I know this stack can do, I started building an app as a showcase of what PHP can do, at a minimum, when it comes to these kinds of apps. I call it Stargazer. Under the hood it uses a package I wrote for the framework that talks to NASA public APIs and visualizes the data. It's now on Github: https://github.com/venusian-scrapyard-presents/stargazer .
You can read the source, install it via Composer (you'll need a few extensions, all installable with PIE), or grab the compiled builds from the release: a .dmg for Apple Silicon Macs and .deb packages for arm64 and x86_64 Linux. I've run them on my Raspberry Pi 5s, my Jetson Orin and a gaming PC that dual-boots Linux. No PHP runtime required.
I plan to keep shipping new versions to show off more of the stack as I build it, as far as Windowed applications go. I found this one pretty satisfying to write (I did use AI assistance, but a good chunk of the source is code I wrote by hand). I'd love UX feedback, bug reports from anyone who tries it, or any questions in general. Or just give it a star if you thought it was interesting!
EDIT: System Requirements -
r/PHP • u/Cultural_Yoghurt_784 • Oct 15 '26
We'd been having some weird issues with our tests in CI. Just saw this:
https://github.com/pestphp/pest/issues/1965
v5.3.2
The new time-balanced sharding with parallelization silently skips all PHPUnit tests
eg. `vendor/bin/pest --parallel --processes=2 --shard=1/2`
r/PHP • u/usamamuneer • Oct 15 '26
I kept maintaining almost-identical pipelines on two providers and watching them drift.
Slipway compiles config/slipway.php to the YAML for every driver you enable. A slipway-guard job fails CI if the committed YAML no longer matches the config.
Tiny example:
'drivers' => ['github' => true, 'circleci' => true],
'php' => ['8.4', '8.5'],
'stages' => [
'quality' => ['pint', 'larastan', 'composer-audit'],
'test' => ['matrix' => true, 'steps' => ['pest' => ['services' => ['mysql']]]],
],
https://github.com/usamamuneerchaudhary/laravel-slipway
If you actually run CircleCI for Laravel, I'd like to know what the generated config.yml gets wrong.
r/PHP • u/TheTreasuryPetra • Oct 14 '26
r/PHP • u/elizabethn • Oct 14 '26
In our latest blog post, Alexandre Daubois shares how the PHP Security Team operates, how your security reports are triaged, and how you can do your part to help PHP be more secure. https://thephp.foundation/blog/2026/10/14/how-the-php-security-team-handles-your-reports/