Rust for PHP developers

PHP to Rust

Learn Rust from a PHP perspective. Interactive readings, exercises, and optional PHP refreshers.

Browse the outline below. Log in to view section content; free sections are available to everyone, paid sections unlock after purchase.

Course content

  • Install Rust, understand compiled versus interpreted, and use Cargo the way you use Composer to ship a tiny CLI.

    • Install Rust with rustup and confirm rustc and cargo.
    • Tell a compile-time type error from PHP coercing a string into an int.
    • Create a project with Cargo, including the lockfile, fmt, and clippy.
    • Stay on stable, and pin the toolchain version for the team.
    • Write a tiny CLI that stops at end of input, and run cargo test.
    • ·About the course Free
      View
    • ·What Rust checks for you Free
      View
    • ·Installing Rust Free
      View
    • ·Hello Rust Free
      View
    • ·What is Cargo? Free
      View
    • ·Managing dependencies with Cargo.toml Free
      View
    • ·Stable, nightly, and pinning a version Free
      View
    • ·A CLI calculator Free
      View
    • ·What you learned Free
      View
    • ·How this course is tested Free
      View