# Migrating from PHP (oxblade-adminlte)

> This page lists each jeroennoten/laravel-adminlte call and its Rust equivalent, for code moving from PHP. Only the parts ported in 0.1 are listed.

- Package: oxblade-adminlte (Rust, alpha), crates: `oxblade-adminlte`
- Maintenance: active; Latest release: 0.1.0 (2026-12-05); MSRV: Rust 1.99 or later; Licence: MIT
- Links: [Repository](https://github.com/bowerbird-si/oxblade-adminlte), [crates.io](https://crates.io/crates/oxblade-adminlte/0.1.0), [docs.rs](https://docs.rs/oxblade-adminlte/0.1.0), [Changelog](https://oss.bowerbird.si/oxblade-adminlte/docs/changelog/), [Contributing](https://github.com/bowerbird-si/oxblade-adminlte/blob/c4cc5d05f8707b760d95552ef70a05236193a07d/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/oxblade-adminlte/blob/c4cc5d05f8707b760d95552ef70a05236193a07d/SECURITY.md)
- Based on: [jeroennoten/laravel-adminlte](https://github.com/jeroennoten/Laravel-AdminLTE): The PHP package whose dashboard layout, menu, asset and plugin behavior this port follows.; [AdminLTE](https://github.com/ColorlibHQ/AdminLTE): The dashboard frontend used by applications. The crate does not bundle the distribution.
- PHP parity: core (30 covered, 18 diverged, 189 planned of 237 abilities; 30 fixtures; follows jeroennoten/laravel-adminlte v4.1.0; verified 2026-12-05)
- HTML version: https://oss.bowerbird.si/oxblade-adminlte/docs/migrating-from-php/
- Source: https://github.com/bowerbird-si/oxblade-adminlte/blob/c4cc5d05f8707b760d95552ef70a05236193a07d/docs/migrating-from-php.md

This page lists each jeroennoten/laravel-adminlte call and its Rust equivalent, for code moving from
PHP. Only the parts ported in 0.1 are listed.

| PHP | Rust |
| --- | --- |
| `AdminLteServiceProvider` (auto-discovered) | Register `oxblade_adminlte::AdminLteServiceProvider` |
| `@extends('adminlte::page')` | `@extends('adminlte::page')`, with a `layout` value in the view data |
| `config('adminlte.layout_*')`, `classes_*` | Deserialize `Layout`, then `Layout::view(locale)` |
| `LayoutHelper::makeBodyClasses()` | `LayoutView::body_classes()` |
| `config('adminlte.menu')` | Deserialize `MenuBuilder` |
| `BuildingMenu` event, `$event->menu->add(...)` | `MenuBuilder::add` before compiling |
| `addBefore`, `addAfter`, `addIn`, `remove` | `MenuBuilder::edit` with `MenuEdit::Before`, `After`, `Inside`, `Remove` |
| `itemKeyExists` | `MenuBuilder::contains_key` |
| `Gate`, `route()`, `url()`, `__()` in menu filters | A `MenuBindings` implementation |
| `AdminLte::menu('sidebar')` | `MenuBuilder::compile(...)`, then `Menu::section("sidebar")` |
| `config('adminlte.assets')` | Deserialize `AssetConfig`, then `AssetConfig::page` |
| `config('adminlte.plugins')` | `Plugins::presets()` or your own `Plugins` |
| `@section('plugins.Chartjs', true)` | `PluginActivation::Enable` for `"Chartjs"` |
| `auth/login`, `auth/register`, `auth/passwords/*`, `auth/verify` | `AuthForm` with an `AuthKind`, rendered with `adminlte::auth.form` |
