Repository navigation
Releases
4.7.0 — db:seed runner + migrate auto-create
Added
db:seedrunner + composableIons\Database\Seeder. The framework could scaffold seeders (make:seeder) but had no command to run them — every host had to write its own. Newdb:seed {--class= : defaults to DatabaseSeeder} {--database=}resolves a seeder by FQCN, by the layout namespace (Database\Seeders\Xon the host-root layout,App\Database\Seeders\Xlegacy), or by requiring the file directly when the host hasn't dumped autoload — then runs itsseed()(orrun(), Laravel-style). A new baseIons\Database\Seederaddscall([A::class, B::class])for composing seeders (aDatabaseSeederorchestrating others); themake:seederstub now extends it and the skeleton ships adatabase/seeders/DatabaseSeeder.php. Plain seeders — a class withseed()and no base (the previous shape) — still run unchanged (BC).
Fixed
migrateauto-creates the migrations table on first run.php bin/ions migrateon a fresh database threwSQLSTATE[42S02] … Table 'migrations' doesn't exist, because the bookkeeping table only existed after a separatemigrate --install.migratenow creates it itself when missing (Laravel parity);--installremains as an explicit, idempotent alias. Also fixes theMigrations table exits→existsmessage typo.- No
composer create-projectautoload warning. The skeleton'stests/ExampleTest.phpdeclared a non-namespaced class whilecomposer.jsonmapsTests\ => tests/, so scaffolding printedClass ExampleTest … does not comply with psr-4 autoloading standard … Skipping. The test is nownamespace Tests;(PSR-4 compliant); harmless before (Pest ran it anyway), just noisy on first impression.
4.6.0 — Interactive debug UI + Laravel database layout
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/503get a JS-free, self-contained page instead of a bare<h1>whenAPP_DEBUGis off. Hostviews/errors/{status}.twigoverrides 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
Sessionobjects (the legacyKernel::session()and the boundSessionManager) each calledsession_start()— breaking every web page underphp -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 underAPP_DEBUG. Override viaconfig('app.security.csp'). - Form-less rendered pages are now response-cacheable.
_csrf_tokenbecame a lazy, output-onlyStringable— 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 CIexamplejob 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/coreRequirements: PHP 8.3 or 8.4 · Illuminate ^12 · Symfony ^7.
📋 Full changelog: CHANGELOG.md · Full Changelog: 4.5.0...4.6.0
2.1.0
2.0.1
Full Changelog: 2.0.0...2.0.1
fix error in attributes route