Training & Development

Rust For Laravel Developers

Write Rust for Laravel and PHP developers, review existing Rust for PHP habits, and explain Rust errors in PHP terms, in Laravel for Rust or any other Rust project. Use when writing Rust for a PHP developer, reviewing Rust for PHP habits (truthy checks, default arguments, copied arrays, null and ??, throw/try-catch, associative arrays, strlen and substr, (int) casts, inheritance, __toString, Collection chains, use() closures, static state, Composer and PSR-4), or explaining an ownership, borrow, lifetime, Option, Result, iterator or async error in PHP terms. Maps each PHP behaviour to Rust and shows what the PHP habit does there: a compiler error, a panic, a wrong value or needless work. Every Rust code block compiles with rustc 1.100 (edition 2024); the PHP and Laravel examples were checked on PHP 8.4 and Laravel 13. For porting Laravel framework code use laravel-php-to-rust; for auditing a Laravel for Rust app use laravel-rust-audit.

Publisher / source
AsyrafHussin/agent-skills (found on skills.sh)
Upstream record
AsyrafHussin/agent-skills
Version
Version 1
Published
Publication review
Approved for publication
Content fingerprint
09dcefc72201cec683b1e25138d74ad9bd6f26327434057d59fcb6f659c4e75c