laravel-php-to-rust

laravel-php-to-rust is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 185 tokens per session (2,884 once invoked), scanned A, original, MIT.

A porting guide for moving a Laravel PHP application, or Laravel programming habits, to Laravel for Rust. It explains how common Laravel features map to the Rust-based framework.

In plain words
What is it for?
Use it to move controllers, form handling, database models, migrations, permissions, jobs, events, mail, templates, Inertia pages, or Pest tests to Rust.
Why use it?
It reduces uncertainty when translating routes, models, tests, and other Laravel code into a different programming language and framework.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to move controllers, form handling, database models, migrations, permissions, jobs, events, mail, templates, Inertia pages, or Pest tests to Rust.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asyrafhussin/agent-skills/laravel-php-to-rust
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AsyrafHussin/agent-skills --skill laravel-php-to-rust
Clone the repo
git clone --depth 1 https://github.com/AsyrafHussin/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laravel-php-to-rust

README.md
[![agentmods](https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-php-to-rust/github.svg)](https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-php-to-rust)
Your own site
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-php-to-rust"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-php-to-rust/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laravel-php-to-rust

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-php-to-rust"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-php-to-rust.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 185 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,884 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00185 $0.02884
Opus 5.5 $0.00074 $0.01154
Sonnet 5.5 $0.00037 $0.00577
Haiku 4.5 $0.00018 $0.00288

Measured today against content hash 21c2c80e1b15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

laravel-php-to-rust scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/laravel-php-to-rust/SKILL.md · 168 lines

How it starts

The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel PHP to Laravel for Rust

Port a Laravel PHP application, or the habits of a Laravel PHP developer, to Laravel for Rust. Contains 28 rules across 9 categories. Every Rust example compiles against laravel-rust 0.2.0, and each "Tested" note records what a test or command run on that version showed.

Version 1.1.0 (December 2026). Laravel for Rust is in beta, and releases before 1.0 may change APIs. The bundled docs never mention PHP, so there is no official porting guide; check every API against the docs bundled with the version you install. To move an app to a newer release, use the upgrading-laravel-rust skill that new apps ship in .agents/skills/.

When to Apply

  • Porting a Laravel PHP app, or one feature of it, to Laravel for Rust
  • A Laravel PHP developer starting a Laravel for Rust app
  • Reviewing Rust code that looks like PHP: facades, route names, $fillable, save(), down(), Inertia::lazy, 'Y-m-d'

Not for: auditing a Laravel for Rust app (laravel-rust-audit), or writing new features without a PHP original (the app's own .agents/skills/, and laravel-rust-best-practices).

How to Port

  1. Start from laravel new example-app --rust, and read the bundled docs for the installed version (port-plan)
  2. Inventory the PHP app, and decide each gap with port-missing-features
  3. Port in layers: migrations and models, policies, routes with handlers and input structs, background work, mail and views
  4. Port each feature's PHP tests with it, and run cargo test, cargo clippy --all-targets, npm run types:check and npm run check

Quick Map

Laravel PHP Laravel for Rust Rule
Route::resource, controllers resource!(posts) over a module of handler functions http-routes-and-handlers
route('posts.show', $post) route!(posts::show, &post)? http-routes-and-handlers
FormRequest #[laravel::input] with #[validate(..)]; authorization required http-form-requests
max:255, in:a,b, nullable, sometimes max_length(255), one_of("a", "b"), Option<T>, Sometimes<T> http-form-requests
$request->input('x') A typed struct: Valid<T> (body, last argument), Query<T> http-handler-arguments
abort(404), response()->json($x, 201) laravel::abort!(404), Created(x) http-responses-errors
Middleware class + alias #[middleware] async fn, referenced by name http-middleware-session
Eloquent model, casts, $hidden #[model] struct, typed fields, #[serde(skip)] data-models
$fillable, create(), update(), save() Fill struct, create!, update!; Sometimes<T> for PATCH data-writes
where, orWhere, scopes .filter(a | b), scope functions returning db::Condition data-queries
Lazy loading, ->pivot, withCount .with(..) or a panic, .join, .count() data-relationships
up() / down(), migrate:rollback Forward-only migrate functions data-migrations
Factories, seeders #[factory(Post)] structs, #[seeder] functions data-factories-seeders
SoftDeletes, global scopes, observers deleted_at + scope, explicit scopes, model event listeners data-soft-deletes-scopes-observers
Auth::attempt, guards Auth<User>, one session guard, #[laravel::auth::page(..)] auth-guards-and-login
Sanctum A RequestGuard over hashed tokens auth-api-tokens
Gate, policies, @can #[policy] methods passed by name; booleans to the view auth-policies
Password::sendResetLink, Hash::make, MustVerifyEmail Passwords<User>, automatic hashing, the derive plus marked pages auth-passwords-verification
config(), env(), app(), facades Section<T>, #[env(..)], Inject<T>, module functions app-config-env-container
Cache, Storage, Http::..->throw() cache::, storage::, client::..ensure_successful() app-cache-storage-http
Artisan commands, Log, Carbon #[command] functions, tracing, laravel::now() in UTC with strftime app-console-logging-time
ShouldQueue jobs, Horizon #[derive(Queueable)] + #[job], queue:work async-jobs-and-queues
Events, listeners, Schedule #[listener] functions, #[schedule::tasks] in UTC async-events-and-scheduling
Mailables, notifications, Echo #[derive(Mailable)], #[notification], namespace: false async-mail-notifications-broadcasting
Blade MiniJinja templates view-blade-to-templates
Inertia::render, Inertia::optional (older apps: Inertia::lazy) inertia::render, inertia::optional; not inertia::lazy view-inertia
Pest, actingAs, fakes #[laravel::test], .acting_as(&user) on the request, bound fakes test-pest-to-laravel-test
artisan optimize, storage:link A release binary with public/, resources/views/, storage/ deploy-release-binary

Read the full file on GitHub · 168 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed 21c2c80e1b15
  2. 2d ago First seen · 168 lines · 185 tokens per session scan A 2fb8a52d3280

Subscribe to this mod's changes

laravel-php-to-rust is a skill published in the GitHub repository AsyrafHussin/agent-skills (116 stars, last pushed today), licensed MIT. It adds 185 tokens to every session and 2,884 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-03.

Related

laravel-php-to-rust compared with skills from other repositories

laravel-php-to-rust next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
laravel-php-to-rustAsyrafHussin/agent-skillsSkill116todayMITA185Claude Code, Codex
rust-skillsleonardomso/rust-skillsSkill7968d agoMITA56Claude Code, Codex
rustolehsvyrydov/AI-development-teamSkill1815d agoMITA105Claude Code
standardssamibs/skillfoundrySkill132mo agoMITA29Claude Code, Codex
rust-coreadonai-labs/agent-runwaySkill28d agoMITA82Claude Code, Codex
rust-reviewcamilooscargbaptista/cto-toolkitSkill98mo agoMITA100Claude Code
ia-rust-systemsiliaal/whetstoneSkill37todayMITA61Claude Code