PHP to Rust Code Examples
This is a PHP-to-Rust course repository with side-by-side examples and small hands-on projects.
- 1-hello-world
- 2-cli_calculator
- 3-user-input-classifier
- 4-laravel-collection-clone
- 5-basic-cart
- 6-tuple-exercises
- 7-organised-tuple-exercises
- 8-error-handling-capstone
- 9-universal-media-player
- 10-decorator-pattern
- 11-builder-pattern
- 12-factory-pattern
- 13-adapter-pattern
- 14-strategy-pattern
- 15-observer-pattern
- 16-state-pattern
- 17-CoR-pattern
- 18-functional-exercise
- 19-testing-practice
- 20-shared-documentviews
- 21-http-server
- 22-cmd-file-operations
- 23-merge-line-counts
- 24-concurrent-word-file-counter
- 25-docker-setup
- 26-docker-rust-with-postgresql
- 27-shop-api — Axum + SQLx + PostgreSQL (catalog, baskets, validation, JSON resources). Includes every route,
curlexamples, and how to run Docker Compose. - 28-shop-ui — Dioxus 0.7 WASM shop (catalog, product, basket) +
dx serve; needs27-shop-apirunning. Setup: 28-shop-ui/README.md. - 29-inventory — CLI directory inventory:
Path/PathBuf, recursive walk, summary by file extension +cargo testfor pure logic. - learn/rust-for-web-development — LMS-ready copy: three WASM UI options, then one simple front-end build lesson.
- learn/rust-for-systems-development — LMS-ready copy: paths,
PathBuf, and related systems topics (PathBuf/Pathlesson).
