SaaSHub helps you find the best software and product alternatives Learn more →
Top 3 Rust PHP Projects
-
Project mention: PHP-Tokio – Use any async Rust library from PHP | news.ycombinator.com | 2023-08-27
The PHP <-> Rust bindings are provided by https://github.com/Nicelocal/ext-php-rs/ (our fork of https://github.com/davidcole1340/ext-php-rs with a bunch of UX improvements :).
php-tokio's integrates the https://revolt.run event loop with the https://tokio.rs event loop; async functionality is provided by the two event loops, in combination with PHP fibers through revolt's suspension API (I could've directly used the PHP Fiber API to provide coroutine suspension, but it was a tad easier with revolt's suspension API (https://revolt.run/fibers), since it also handles the base case of suspension in the main fiber).
-
phper
The framework that allows us to write PHP extensions using pure and safe Rust whenever possible.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
phanalist
Performant static analyzer for PHP, which is extremely easy to use. It helps you catch common mistakes in your PHP code.
Phanalist needs a way to detect when we are in the function's scope with the name tooComplex(). With pattern matching, it is super easy to detect if the statement is either: if,else,etc.. The first statement that I want to match for is class Index{ and from there, we will continue down the tree. If you think the same way as I do you know that I will be using recursion to calculate the cyclomatic complexity. After we have matched the scope of the tooComplex() function.
Rust PHP related posts
- Traversing an AST of PHP source code.
- How I made it impossible to write spaghetti code.
- WasmGC – Compile and run GC languages such as Kotlin, Java in Chrome browser
- Was Rust Worth It?
- PHP-Tokio – Use any async Rust library from PHP
- Ask HN: Which Lemmy communities and instances are you visiting daily?
- Lemmy.ml's admin is pro chinese government and actively censors comments that are critical. (Reposting this for awareness)
-
A note from our sponsor - SaaSHub
www.saashub.com | 17 Apr 2024
Index
What are some of the best open-source PHP projects in Rust? This list will help you:
Project | Stars | |
---|---|---|
1 | ext-php-rs | 524 |
2 | phper | 251 |
3 | phanalist | 99 |