Free · 365 days · 2 hours a day
Learn Rust the way a PHP developer thinks.
A structured, daily path from Laravel to production Rust: lessons that compare every idea to PHP, exercises checked by cargo test, quizzes, a bilingual book, and a tracker that keeps you consistent.
Same logic, two languages
function total(array $items): int {
$sum = 0;
foreach ($items as $item) {
$sum += $item['price'] * $item['qty'];
}
return $sum;
}
fn total(items: &[Item]) -> u64 {
items.iter().map(|i| i.price * i.qty).sum()
}
By Day 31 you'll write the second one without thinking, and know why it can't crash on a missing key.
- 365
- daily lessons
- 31
- book chapters
- 5
- portfolio projects
- $0
- forever
How it works
One session. Same shape every day.
Consistency beats intensity: two focused hours a day for a year turns a PHP developer into a Rust engineer.
Read the lesson
Every concept is explained through what you already know: Composer → Cargo, arrays → Vec and HashMap, null → Option, exceptions → Result.
Make the tests pass
Each coding day has exercises with real tests. Replace the todo!()s until cargo test is green, like a code review that never gets tired.
Take the quiz
A short quiz checks you actually understood it. Scores are saved, and weak days go into a review queue.
Track the habit
Your own schedule, streaks, an activity heatmap, milestones with projected dates, and a journal of everything you learned.
Curriculum
Five phases, five real projects.
The projects use what PHP developers already know (logs, invoices, payment gateways), so your experience counts from day one.
- Phase 1Days 1–30
Foundations
Cargo, types, functions, ownership, borrowing, structs, enums, error handling, traits and testing.
Projectlogsnap: an NGINX access-log analyzer CLI
- Phase 2Days 31–60
Intermediate Rust
Iterators, closures, smart pointers, threads, async with Tokio, serde, and publishing a crate.
Projectlogsnap v1.0, published on crates.io
- Phase 3Days 61–100
Backend Rust, Professional Level
Axum, SQLx and Postgres, auth, multi-tenancy, payment-gateway webhooks, Docker and deployment.
ProjectLedgerly: a multi-tenant invoicing API
- Phase 4Days 101–120
Job-Ready
A second production project, open-source PRs, résumé, and mock interviews.
Projectpayhook: a payment-webhook relay with a Laravel client
- Phase 5Days 121–365
Advanced → Expert
Performance, macros, unsafe, distributed systems, and a specialization of your choice.
ProjectA distributed job queue or key-value store
Lessons are published weekly, ahead of learners. Days 1–7 are available now.
The book
The Rust Book for PHP/Laravel Developers
A reference you read at your own pace. Every chapter has the same shape: the concept, a PHP example, a Rust example, key takeaways, and exercises, with a Go comparison where it helps.
- 01Available
Why Rust? Through a PHP developer's eyes
Compiled vs interpreted, when to use Rust and when PHP, a comparison with Go
- 02Available
Installation, Cargo and your first program
Composer and Artisan vs Cargo, project layout, reading compiler errors
- 03Available
Variables, mutability and data types
let and mut, shadowing, integer overflow, PHP type juggling vs Rust's strict types
- 04Available
Functions, expressions and control flow
Expressions vs statements, if as an expression, loop, while, for
- 05Available
Ownership: Rust's core idea
Stack and heap, the three rules, move, clone, Copy; compared with PHP's copy-on-write and object handles
- 06
References and borrowing
&T and &mut T, the borrow checker's rules, how they differ from PHP's &$var references
- …and 25 more chapters, from collections to async, Axum and running Rust alongside Laravel.
FAQ
Questions
Is it really free?+
Yes. No trial, no card, no paid tier. Every resource the course depends on is free too.
Do I need to know any Rust?+
No. It starts from installing Rust. You should be comfortable with PHP (or a similar backend language), Git and the terminal.
How much time does it take?+
Two hours a day: about 60 minutes of lesson, 50 of practice, and 10 to log your progress. You choose the time of day.
What's the difference between the course and the book?+
The course is a day-by-day plan with exercises, quizzes and tracking. The book is a reference you read at your own pace: each chapter puts PHP/Laravel code next to Rust (and Go, where it helps). They cover the same ground and work well together.
Is the book available in other languages?+
The book is in English, with a full Bangla (বাংলা) edition. You can switch languages at any time while reading.
Why GitHub sign-in?+
Because the exercises live in a GitHub template repository. You'll commit your work every day, and that green contribution graph becomes evidence for employers.
Day 1 takes two hours. Start today.
Install Rust, write your first program, and learn to read the compiler's errors.