Dev.to
7/20/2026

The original title is: "phpurs: A PureScript-to-PHP compiler backend for functional web development"
Original: 🐘 Like... TypeScript for PHP? Yes. And it's not what you think
Short summary
phpurs is a new compiler backend that transpiles PureScript to modern PHP 8.4+, passing the official PureScript test suite and ready for production. It enables developers to write purely functional, strictly typed code and deploy it as plain .php files on cheap shared hosting without Docker or Node.js. The compiler leverages PHP Fibers and the Revolt event loop to support PureScript's asynchronous Aff monad natively.
- •phpurs transpiles PureScript to PHP 8.4+ for production use
- •Enables functional programming on cheap shared hosting without containers
- •Uses PHP Fibers and Revolt for native async Aff monad support
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



