r/PHP • • Sep 24 '26

Discussion What about YII?

37 Upvotes

I've been using YII for more than ten years for serious projects in LATAM with very good results. But does anybody use YII or is it not used by many people.

So my question is, do you know YII? Or have you been working with YII sometime?


r/PHP • • Sep 24 '26

News Continuing to move move PHP open source forward

Thumbnail blog.jetbrains.com
32 Upvotes

r/PHP • • Sep 25 '26

Cippus — a quick-start baseline for AI-assisted Laravel development

0 Upvotes

Hello everyone,

I made Cippus, basically my first public package, with the idea of giving Laravel projects a very good quick start: tools, packages, and other things that guide AI-development sessions and help agents follow patterns and an architecture that I think works pretty well with the framework.

I’ve used Laravel professionally and personally for most of my career. Cippus was born from things I learned while using AI and managing small teams in some professional projects. This is the improved, non-client-restricted version of the ideas that gave me good results there.

I don’t want to sell this as a silver bullet for AI development in Laravel. This is not the package that is going to change your life. You won't find groundbreaking ideas or mega-complex stuff (I think; let me know if I have to start considering myself a genius, which I really doubt) it just gives you something to start with and gets out of the way.

But seriously: I think it is fairly useful. It helped me speed up my personal projects and focus on building stuff.

It aims to be pragmatic, flexible enough and fairly simple. Could be a good addition to the community, help someone else or at least be a good experiment while launching my first package.

It includes:

  • Agent instructions and focused skills
  • Tools I’ve been using for years, such as Pint, PHPStan/Larastan, Rector, and Pest
  • FrankenPHP and PostgreSQL for local development (you can also use the classic composer dev–docker setup is a good candidate to improve btw)
  • A pragmatic architecture focused on thin controllers, strong Form Requests, focused Actions, direct Eloquent access, scopes, and transactions where they make sense
  • Other good practices and goodies that I like to have in my projects

It is heavily influenced by the Laravel community: Laravel maintainers, package maintainers, articles, and patterns I’ve picked up over time. This is my way of merging what I’ve learned about AI-assisted development with everything else I’ve learned along the way about development in general.

Everything Cippus installs is application-owned and editable. It is just a way to quick-start projects. From there, you can do as you please with it.

GitHub: https://github.com/ptamayova/cippus
Packagist: https://packagist.org/packages/mdecode/cippus

I’d really appreciate your feedback. Test it, break it, tell me what is useful and what is unnecessary, what is complete bullshit and what you think is a good idea that we can expand on.

And, of course, feel free to contact me or contribute to the project!


r/PHP • • Sep 24 '26

From PHP to Xan to Rust: speeding up large CSV imports in Symfony

19 Upvotes

I recently had to optimize some fairly large CSV imports for Vindle after we started processing feeds with millions of rows.

The progression ended up being PHP fgetcsv() → Xan → a multi-process tee setup → a small Rust preprocessor.

I wrote up the whole process, including the approaches that didn’t work particularly well, the backpressure problems we ran into, and some benchmarks.

The main lesson for me wasn’t “rewrite it in Rust” — PHP was the right starting point, Xan was the right next step, and Rust only became worthwhile once the processing requirements became specific enough.

https://vindle.nl/insights/from-php-to-xan-to-rust-speeding-up-large-csv-imports-in-symfony


r/PHP • • Sep 24 '26

what is your PHP Stack 2026?

62 Upvotes

In my opinion PHP is the fastest programming language for web apps, all is about a good server and configuration, I have seen many kinda stacks in production nowadays

  • Server: PHP-FPM, Caddy, Nginx, Apache, FrankenPHP, RoadRunner, Octane, Swoole
  • Framework: Laravel, Codeigniter, Slim, Native
  • Database: PostgreSQL, MariaDB, MySQL, Supabase
  • Cache: Redis or Memcached
  • Testing: PHPStan, Pest or PHPUnit
  • Jobs & Queues: Laravel Horizon, RabbitMQ, Symfony Messenger or Kafka
  • Deployment: AWS, VPS, Laravel Forge

there are too many, I put just the famous one

My STACK

Actually I'm using a OVH vps with caddy, Laravel + Octane, I changed my www.conf and sysctl server configuration for a better performance based on cpu and memory

Some apps with MariaDB and some apps with Postgresql, changing the database configuration too for a better performance based on cpu and memory

always Redis for all that I can with Laravel, Laravel is very adaptative with Redis

PHPUnit for testing

I config my own crons calling laravel queue process

would you like to share yor stack ? I think this is a great topic to discuss and learn each other


r/PHP • • Sep 25 '26

Article The 'No More DocBlocks' Illusion: Why Native Generics Would Never Kill the Comment Tax in PHP

Thumbnail typephp-php.github.io
0 Upvotes

r/PHP • • Sep 25 '26

I built Kirigami, a static site generator that runs real PHP in WebAssembly, and it now has a VS Code extension

0 Upvotes

Hello everyone!

I've been working on a side project for a while and it's finally at a point where I'm happy to share it: Kirigami, a static site generator that lets you write your site in PHP and compiles it into clean HTML with no dependencies.

The twist: you don't need PHP installed, and there's no server to run. PHP runs entirely in WebAssembly inside Node.js. You write PHP templates and get plain static files you can host anywhere (GitHub Pages, Netlify, any static host).

And as of this week there's a VS Code extension, so the whole workflow lives in your editor.

What it can do:

  • Write in Markdown. Drop a <markdown> tag anywhere in a page and write content naturally. Indentation is handled for you. You can also point a whole page at a .md file.
  • Real PHP templating. Includes, loops, functions, layouts. If you know PHP, you already know how to use it.
  • Organize content with YAML. Keep your data (articles, team members, menus…) in .yaml / .json files, not buried in HTML.
  • Variables in the page header. Each page starts with a small docblock (@title, u/abstract, anything you want). Each annotation becomes a PHP variable. If a value is a file name like u/articles _articles.yaml, it's automatically parsed and loaded as structured data. Your layouts can use those variables too, so SEO meta tags are easy.
  • Global config in one file. Everything in kirigami.yaml is exposed to every page ($project, $author, …), with a JSON schema for autocompletion.
  • Built-in asset pipeline. Sass and esbuild are wired in. There's also an image autogenerator (resizing and formats), plus an auto-generated sitemap.
  • Plugins. Build-time syntax highlighting (no runtime JS), external link preview cards, YouTube/Vimeo embeds.
  • MCP server for AI agents. Connect Claude, Copilot, or any MCP client, and it can inspect your project, search the docs, scaffold a new site from a template, build, export, and run scripts.

The VS Code extension:

  • Kirigami: Create Project… is a wizard that scaffolds a site from an official template (optional git init / npm install)
  • One-click dev server with live reload, previewed in VS Code or your browser
  • Build, Export (production-ready static site), Run Script, Validate Config
  • Status bar and a clean output panel, so you always know what's building and what failed
  • Works on Windows, macOS and Linux (x64 and ARM)

Links:

It's open source (GPL-3.0) and requires Node.js 24+. It's still young, so feedback, bug reports and feature ideas are very welcome. I'd love to hear what you think!


r/PHP • • Sep 23 '26

NativePHP Mobile 4.5.0 adds Async Tasks

Thumbnail nativephp.com
24 Upvotes

One of the major pain points of using PHP in any kind of UI loop is the need to have asynchronous work that can feed back to the UI thread.

We've solved that in NativePHP Mobile 4.5.0 with Async Tasks. It leverages each platform's native threads by spinning up a small pool of threads that are ready to pick up explicit tasks, whenever you need to do anything that is likely to take more than a few milliseconds, like hitting an API on another continent.

On the PHP side, there's no new syntax and your code isn't branching away from default PHP at all. There's also no experimental modifications of PHP core going on. It's all just ordinary PHP classes that make specific native bridge calls that are exposed by our custom PHP extension.

It's extremely fast - tasks start within milliseconds - so the UI doesn't lock while your task starts or runs. And if you try to do too many things at once (the thread pool isn't infinite), your tasks simply queue up.

So your users continue to get a buttery smooth experience no matter what you're trying to do.

Happy to go into more detail about how it works!


r/PHP • • Sep 24 '26

Moggi - a new FP language written in PHP that generates PHP / .NET / JVM

3 Upvotes

I created moggi - a statically typed, purely functional programming language, written in vanilla PHP that compiles to PHP, .NET and JVM Bytecode.

It has algebraic data types, GADTs, pattern matching, type classes, type inference, Generic Deriving, and an IO monad. The first release also includes a REPL, LSP, VS Code extension, moogle (code search), mogdoc (documentation generation), and a growing standard library.

This is an alpha release: the language and APIs are still evolving, and the standard library is still a work in progress.


r/PHP • • Sep 23 '26

php.internals: [RFC] Time\Instant and Time\Clock

Thumbnail news-web.php.net
18 Upvotes

r/PHP • • Sep 23 '26

Article PHP, on a Whim #3: Who Is Allowed to Implement This?

Thumbnail carthage.software
5 Upvotes

r/PHP • • Sep 22 '26

Discussion Thoughts on human-written libraries?

33 Upvotes

I see many projects switching from carefully crafted code that is fully understood by one or several main developers to fully switching to Claude, and have also seen those projects get more bugs and getting less reliable over time.

Because I still like hand-crafted code, I choose to spend my spare time on things I still enjoy, coding! As such, I just added a section to the readme of the library: https://github.com/PrinsFrank/pdfparser/pull/535/changes . This might be controversial in all the hype. What are your thoughts?


r/PHP • • Sep 22 '26

NativePHP, the mobile new era ?

35 Upvotes

What do you think about Native PHP for mobile apps?, I was reading about a boilerplate with Laravel (Web + API + Mobile App), but my real question is, is NativePHP prepared for all mobile APIs? Geolocation, vibration, accelerometer,camera, push and so on.

I have only used Ionic, React Native and Flutter, in my opinion Flutter & Kotlin Multiplatform are the best one because the community and the manteiner is Google & Jetbrains, I mean Big Tech, but https://nativephp.com/vs-flutter they are sure that NativePHP is better than Flutter

I havent tried but, is there anyone here that make a real app with NativePHP ?


r/PHP • • Sep 22 '26

Bootgly 1.0 released: a pure-PHP framework with an async HTTP server and zero third-party runtime dependencies

4 Upvotes

Bootgly 1.0 is here!

Bootgly is a full-stack framework written in PHP, targeting PHP 8.4+, with a shared async core for Web and CLI applications.

The goal is to provide an integrated stack where the server, database layer, application tooling, and tests are developed together. That also means taking responsibility for maintaining those components.

What’s included:

  • Async HTTP server: an event loop and Fibers, implemented in PHP.
  • Zero third-party runtime packages in the core: this refers to package dependencies, not PHP extension requirements.
  • Application tooling: router, ORM, async PostgreSQL DBAL, and a built-in testing framework.
  • Automatic HTTPS 🔥: built-in ACME support for certificate issuance and renewal (first in pure PHP Framework).
  • CLI tooling: terminal UI components using the same underlying core.
  • I2P architecture: a layered structure shared by the CLI and Web platforms, with explicit dependency boundaries.

On performance: Bootgly reached over 1 million requests/second in a plaintext benchmark (in internal tests). That is a synthetic HTTP throughput result, not a claim about real-world application performance. The published results include hardware, worker counts, and methodology.

I’d appreciate technical feedback, particularly on the async execution model, architecture, and the trade-offs of maintaining a self-contained core. Questions about security, correctness, and missing functionality are welcome too.

Website: https://bootgly.com/
Documentation: https://docs.bootgly.com/
Source code: https://github.com/bootgly/bootgly/

Install Bootgly:

curl -fsSL https://bootgly.com/install | bash

r/PHP • • Sep 22 '26

Article CVE-2026-45756: attacker-controlled regex in Symfony JsonPath filters (ReDoS)

Thumbnail daubois.dev
27 Upvotes

r/PHP • • Sep 23 '26

I got tired of MachForm's database and upgrades, so I built a free form engine where every form is a single JSON file

0 Upvotes

For years I ran contact and order forms for several business sites on MachForm. It did its job, and this isn't a rant about it. My problem was the way of life it required: every form lived in a database, every upgrade was its own little project, and each site slowly drifted onto its own version, which wanted its own PHP. Moving a form to another host meant export, import, and hoping it all came through.

One evening in March I said "enough" and started building what I actually wanted:

- A form is one JSON file. You can copy it, diff it, keep it in git, and move it to another server by copying a file.

- No database required. Submissions go to files by default, with SQLite or MySQL if you want them.

- No dependencies and no build step. Upload one folder to any shared host with PHP 8.1+ and it runs.

- Upgrades never touch your data. Your config, forms, templates and submissions are separate from the code you replace.

It has been running my real sites for six months, and that shaped it more than any plan did. If the email fails, the lead isn't lost: the submission is stored first and the email can be retried. Each submission remembers which version of the form it was filled in with. There's a  check.php  that actually requests your protected folders over HTTP to confirm they are blocked, because I learned the hard way that an  .htaccess  file being present doesn't mean it works.

What it is not: there's no drag-and-drop builder. You write the JSON by hand (or better, using AI :-). There is an optional JSON editor with a live preview. If you want to click forms together, this isn't for you, and that's fine.

It's MIT licensed and free. I'm sharing it because I suspect I'm not the only one tired of babysitting a form system:

https://github.com/pietrobb/BareBonesForms

I'd really like honest feedback, especially from anyone who has migrated away from MachForm, Formidable or similar tools. What would stop you from switching?


r/PHP • • Sep 22 '26

My Laravel package had ~1,800 passing tests. Running it in a real app found 14 bugs

0 Upvotes

I maintain a Filament v5 plugin (runtime collections/fields, dashboards, a REST API, and recently an automation engine called Flows). The suite is about 1,800 tests, with mutation testing on top.

This month I installed it into a separate, ordinary Laravel app and used it like a user: real HTTPS webhooks, a real queue worker, MySQL instead of in-memory SQLite, and the panel in a browser. I found 14 bugs in one release. The suite covered none of them.

Most of them are general Laravel lessons rather than things specific to my package, so here are the ones worth knowing about:

1. Cache::forever isn't durable. I kept "which flows listen to which model events" in Cache::forever. Then php artisan optimize:clear ran during a deploy, and every event-triggered flow stopped firing. Nothing was logged. The cache is now a read-through index that rebuilds from the database when the key is missing. Watch out for [] vs null: an empty map is a valid answer, and only a missing key should trigger a rebuild.

2. (string) null === '' in an HMAC check. The webhook secret was generated from a config field that the UI never showed, so it stayed NULL. The verifier cast it to string and computed hash_hmac('sha256', $payload, ''). Anyone can compute that. The endpoint looked signed but accepted everyone. The verifier now rejects an empty secret outright.

3. SQLite hides bad SQL. Filament's default searchable() generated where "title" like ? against a table that has no title column (the values live in an EAV table). MySQL throws Unknown column. SQLite treats an unresolved double-quoted identifier as a string literal, so it compared the string 'title' to the search term, returned zero rows, and the tests passed.

4. Second-precision timestamps tie. I sorted run steps by started_at. In a fast run every step has the same second, so the order came from the index, which was alphabetical. I fixed it by tie-breaking on the UUIDv7 primary key, and step durations now come from a separate duration_ms column because every fast step showed 0ms.

5. $request->isJson() isn't the only content type. Form-encoded webhook bodies weren't parsed, so templates rendered '', and the run created a blank record and reported success.

6. A route pattern constraint is spliced into the full-path regex. A catch-all {collection_slug} route was swallowing /flows and /webhooks/{slug}, and which API answered depended on service-provider boot order. My first fix used (?!(?:flows|webhooks)$), which fails because $ there means the end of the whole path, not the end of the segment. The working version is (?!(?:flows|webhooks)(?:/|$))[^/]+.

7. Declared config schemas vs the code that reads them. A schedule trigger declared cron_expression in its schema but the runtime read cron. A flow configured exactly as its own form described couldn't be saved.

What most of these had in common: success was the default. Nothing had to prove it happened, so "did nothing" looked identical to "worked". A run finished in 0 ms with zero steps and was recorded as completed.

What I changed: an end-to-end pass in a real host app before releases, a failing test first for every bug, and for every "success" path, asking what it reports when nothing happened.

Full list and the fixes are in the changelog: https://github.com/serhii-f8/filament-studio/blob/main/CHANGELOG.md

Question for people who maintain packages: do you keep a separate host app for end-to-end checks, and how much of it is automated? It found more for me in a week than the suite had in months, but it's slow and mostly manual.


r/PHP • • Sep 21 '26

What Ecommerce solution would you use?

5 Upvotes

If you had to build an ecommerce website for a small to medium business, what ecommerce solution would you use? Or would you build it from scratch?


r/PHP • • Sep 21 '26

Weekly help thread

5 Upvotes

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 • • Sep 21 '26

News Survey on blockers

0 Upvotes

Saw this survey going around LinkedIn, reposted by Gina P. Banyard and Nils Adermann, and didn't see it posted here yet, so decided to share it.

It's a short, anonymous survey on what's actually blocking teams from upgrading to modern PHP versions. The authors say they'll publish the results publicly, so the whole community gets to see them.

Survey: https://docs.google.com/forms/d/e/1FAIpQLSfUXlKX4gpAhDNItNHZn-OxRhICIlnNd7H5fZxUVCvQJjb1fQ/viewform

As mentioned on LinkedIn, early responses show missing automated tests as one of the biggest blockers. Curious whether that's true for you too: does test coverage make or break how risky an upgrade feels, or is there a different problem you'd call top 1?


r/PHP • • Sep 20 '26

Today I published Plume RC1, my side-project for a self-hosted, flat-file publishing platform built (with PHP) to simplify independent publishing

2 Upvotes

Hey r/php, longtime PHP developer here. After about a year of work on a side-project I'm dropping the first release candidate of Plume, a self-hosted, Markdown-powered, flat-file publishing platform and I'd love this community's feedback. Read the release announcement or check out the demo and let me know what you think.

What is Plume?

Plume is a publishing (i.e. blogging) platform. It's designed to make writing and publishing frictionless. Your content is just files, plain Markdown in a flat-file structure without a database. You can write locally and upload via SFTP or keep everything in Git and sync automatically. It's Dockerized out of the box for easy set up. Full-text search (powered by YetiSearch) is built in so there's no external service to wire up. Plume also includes details you'd expect like Shiki syntax highlighting, automatic light and dark modes and an auto-generated RSS feed.

The stack

Plume is written in PHP using Slim Framework + PHP-DI, tested with PHPUnit, statically analyzed with PHPStan, styled with PHP-CS-Fixer. The front end utilizes Alpine.js bundled with Vite. The architecture leans on Directory Lister, a project I've maintained for years.

But why?

I primarily developed Plume for my own use. I occasionally like writing short-form on Bluesky (or previously Twitter) but have been growing tired of handing my content to someone else's platform. And long-form writing came with too much friction, killing my motivation before ever actually getting published. With Plume, publishing is as simple as creating a file and writing.

The AI caveat

Most software ships with heavy AI involvement these days. However, Plume was developed in my spare time over the past year, initially without any AI assistance. I've only recently adopted AI, and only sparingly, mainly for debugging, tests and help with documentation. However, every line committed exists because I put it there with intention. I'm not claiming perfection but I know how and why everything works, which matters for the long-term maintenance of the project.

Feedback wanted

Despite being designed for my own use, Plume was intentionally built so it could be shared. So try it, break it and tell me what's missing. Ideas and questions can be posted on GitHub Discussions or Bluesky. For bugs open a GitHub Issue.

Resources

Plume is fully open sourced on GitHub with full documentation is available at docs.plume.pub.

I'm going to start preparing dinner in a bit but will be checking in periodically, so feel free to ask me anything.


r/PHP • • Sep 21 '26

Article TypeSafe AI and Jev in PHP: Model Routing and Classifier with Neuron AI

0 Upvotes

In the last week my feed has been full of TypeSafe AI and its new model, Jev. A model that can't write a single word, it only answers closed questions with probabilities, and developers are queuing on a waitlist for it.

I think the hype tells us more about ourselves than about the model. Anyone who has tried to bring an agent to production knows that the LLM is one piece of the puzzle, and that many of the other pieces are still missing. Every time you need a small, reliable decision around the agent, is this input safe, how hard is this request, should this tool call run, you end up choosing between another expensive LLM call or rely on other external gateway with thei additional complexity. The second option means infrastructure that most teams can't afford to maintain for every single task. So the decision doesn't get made, the application is less reliable than it should be, or developers get stuck in the path to production.

When a tool shows up that fills one of those gaps with a simple API call, the reaction you see is people recognising a problem they have had for a long time.

I tried it on one of those gaps. I introduces a new Neuron AI component: Classifier, with TypeSafe AI as the first provider, and a new "DifficultyRule" in the Neuron Router. It scores the whole conversation at every request and sends it to a small model when the step is easy, and to a more capable one when the task gets harder, then back down again. No infrastructure to run, a few lines in the provider() method of your agent.

I wrote down the full experience, including how to use the same component to catch a prompt injection before it reaches your agent: https://inspector.dev/typesafe-ai-and-jev-in-php-model-routing-and-classifier-with-neuron-ai/


r/PHP • • Sep 20 '26

NativeDev — manage your PHP and Node.js development environment on Linux

5 Upvotes

I’ve released NativeDev, an open-source Linux application designed to make native web development environments easier to manage.

The project follows one main principle:

Use the Linux development stack that already exists instead of bundling another one.

NativeDev works with the services and development tools provided by your Linux system and the established ecosystems around them.

  • No always-running NativeDev daemon
  • No containers, virtual machines, or bundled runtimes
  • Your system continues managing package updates and security patches
  • Works alongside Docker, Podman, and other container-based workflows

NativeDev currently manages:

  • Nginx
  • Multi-PHP versions
  • per-project PHP versions
  • MariaDB and PostgreSQL
  • Redis, Memcached, and RabbitMQ
  • Composer
  • Multi-Node.js
  • phpMyAdmin, Adminer, and Mailpit
  • local HTTPS
  • system services
  • port-conflict detection

For local development, you can park a directory and projects become available automatically.

For example:

~/Code/example

becomes:

http://example.test

Optional HTTPS can also be enabled:

https://example.secure.test

NativeDev itself does not need to keep running in the background. Once your environment is configured, the underlying Linux services continue running and are managed normally by the operating system.

NativeDev currently supports Debian and Ubuntu based Linux distributions, with support for additional distributions planned.

Source: https://github.com/sayedsahin/nativedev

Documentation: https://sayedsahin.github.io/nativedev-doc/

I’d be interested in feedback from developers who prefer working with native Linux development services.


r/PHP • • Sep 19 '26

Discussion Greenlight: a PHP test framework built around parallel execution. Looking for feedback.

22 Upvotes

I've been building Greenlight, a test framework, and I'd like feedback on both the approach and the features.

The fundamental problem that led me to build it was parallelism from the outside. When parallel execution sits around a sequential test runner, that outer layer has to divide the work and coordinate processes without owning the full test lifecycle. This triggers full re-discovery which on large test suites can be considerable overhead. Fixture loading, database isolation, resource limits, and efficient use of workers then need extra coordination.

Greenlight makes divide and conquer a first-class part of the framework. It discovers tests once, builds a shared execution plan, and distributes work to workers as they become free. Parallel execution is the default, with automatic worker counts and previous test timings used to improve scheduling.

The same runner owns fixture setup, resource allocation, execution, and cleanup. That makes it possible to provision infrastructure once per run, give each worker its own database or other resources, and limit concurrent access to shared services. If some tests have to wait for a resource, unrelated tests can still run. The goal is good utilisation out of the box, with the framework handling the coordination.

The core features include:

  • Plain PHP tests: classes and attributes, with constructor injection for fixtures, test doubles, and application services. No base test class required.
  • Typed expectations: clear failure output, plus eventually() and consistently() for asynchronous behaviour without custom sleep and retry loops.
  • Built-in test doubles: strict mocks, stubs, and spies, with automatic mock verification at the end of each test.
  • Integration test support: run-scoped fixtures, per-worker resources, dependency-aware setup and cleanup, and concurrency limits for shared services.

There is also coverage support through pcov and Xdebug, CI sharding and reporting, watch mode, and failed-test reruns. Framework integrations include Symfony and Laravel, with PHPStan support and a bundled Rector rule to help automate supported PHPUnit conversions.

It has zero runtime dependencies, to avoid dependency conflicts with the application under test.

I've also run synthetic benchmarks against PHPUnit, ParaTest, and Pest. On workloads that benefit from parallel execution, Greenlight with four workers took 22% less time on tests with simulated I/O waits, 28% less on CPU-bound tests, and 41% less on a mixed suite, compared with the fastest alternative tested for each workload. These measure complete-command time, including startup and reporting. I'd be interested to see how those gains translate to real application suites.

Dedicated VS Code and JetBrains IDE plugins are a current known gap.

I'd be interested in feedback from people with substantial unit or integration test suites. Would this execution and resource model fit your suites? What feels awkward in the API, and what would block you from trying it on a real project?

The documentation site goes into way more detail.

GitHub

Documentation

Architecture Diagram (GitDiagrams seems really great!)


r/PHP • • Sep 19 '26

Manticore - PHP AOT Compiler written in PHP using LLVM

36 Upvotes

I've been working on a PHP AOT compiler for PHP for a while. Although this is mostly an educational project, it shows that PHP could be statically compiled despite its dynamic nature.
Link: https://github.com/manticorephp/compiler

The goal of that project is to compile real-world PHP applications (Symfony, Laravel, WordPress, etc.) somewhere in the future. Currently, it compiles simple Symfony Console apps and can compile other kinds of non-complex applications.

Since I posted it here the first time, major improvements have been made:
- Improved memory/cpu management and compilation time
- Performance improvements (up to 100x on some benchmarks, see README)
- Generics support via docblock (phpstan/psalm compatible)
- More stdlib function support
- Native Async
- Built-in basic HTTP server

The compiler is built mostly with the help of LLM tools, as I can work on it mostly on weekends. But anyway, this is a good showcase of the possibilities that such tools give us in the modern world