Skip to content

4.6.0 — Interactive debug UI + Laravel database layout

Choose a tag to compare

@tahadeveloper tahadeveloper released this 13 Jun 05:14
· 5 commits to main since this release

Ions core 4.6.0 brings a full first-party debugging UI, a Laravel-aligned database layout, and a batch of correctness fixes surfaced by dogfooding the new Taskflow reference application.

⚠️ This is a breaking release — the migration/dump folder convention changed. New projects are unaffected; existing apps need a one-time file move (see Upgrading below).

✨ Highlights

Interactive debug & error UI (Ions\Http\Ui)

A cohesive, dependency-free developer UI — no Whoops, no JS framework, no external/CDN assets (everything inlined so an error page renders even if the asset pipeline is broken), all dev-only gated.

  • Interactive debug page — clickable two-pane stack (frame list ↔ source), server-side syntax highlighting via token_get_all(), Request/Headers/Params/Cookies/Session/Context tabs, copy-as-markdown, and per-frame open-in-editor links (app.debug.editor). Fully usable with JS off. Request redaction preserved (Authorization/password/token/secret/CSRF masked; cookie values blanket-masked).
  • Expandable debug toolbar — the footer strip now opens panels: queries (SQL + timings + binding counts, never values; capped at 100), request, and timing/memory. Scoped styles, ephemeral state, same safe injection rules.
  • Branded production error pages — 400/401/403/404/405/419/429/500/503 get a JS-free, self-contained page instead of a bare <h1> when APP_DEBUG is off. Host views/errors/{status}.twig overrides still win.
  • New guide: docs/errors-and-debugging.md.

🛠️ Fixes

  • Web pages no longer 500 with "session already started by PHP" under real SAPIs. Two independent Session objects (the legacy Kernel::session() and the bound SessionManager) each called session_start() — breaking every web page under php -S/ions serve/PHP-FPM (the test suite missed it because CLI uses a mock session). Unified onto a single session.
  • Default CSP no longer renders first-party pages unstyled. A bare default-src 'self' made browsers block the framework's inline <style> blocks, so every shipped page appeared unstyled. The default now permits inline styles (style-src 'unsafe-inline'), with inline script allowed only under APP_DEBUG. Override via config('app.security.csp').
  • Form-less rendered pages are now response-cacheable. _csrf_token became a lazy, output-only Stringable — it only writes the session when a template actually prints it, so the 12.5 response cache can cache form-less pages while form pages remain correctly uncached.
  • Laravel-compatible path globals (base_path(), app_path(), database_path(), …) — fixes a fatal in Illuminate components (e.g. file-based SQLite).
  • Symlink-safe host boot — skeleton entry points pass the host root explicitly (Kernel::boot(dirname(__DIR__))), fixing path-repo/monorepo installs.

📦 Reference application & CI

  • examples/taskflow/ — a complete, working host app (project/task tracker) that exercises every subsystem once and ships its own Pest suite as living documentation, path-linked to the working-tree core. A dedicated CI example job keeps it green. Six framework bugs in this release were surfaced by running it for real.

💥 Breaking change — database folder layout

The Ions convention was inverted from Laravel. It is now aligned:

Artifact 4.5 and earlier 4.6
Runnable migrations (make:schema / migrate) database/schemas/ database/migrations/
Schema dumps (schema:dump / migrate:rollback) database/migrations/ database/schemas/

⬆️ Upgrading from 4.5

Move your files (one-time):

# runnable migrations
git mv database/schemas/*.php        database/migrations/
# schema dumps (if any)
git mv database/migrations/*_schema.dump database/schemas/

Full instructions: UPGRADE-4.6.md.

📥 Install

# new app
composer create-project ionzile/app my-app

# add / update the core
composer require ionzile/core:^4.6
composer update ionzile/core

Requirements: PHP 8.3 or 8.4 · Illuminate ^12 · Symfony ^7.


📋 Full changelog: CHANGELOG.md · Full Changelog: 4.5.0...4.6.0