Skip to content

Releases

4.7.0 — db:seed runner + migrate auto-create

Choose a tag to compare

@tahadeveloper tahadeveloper released this 13 Jun 09:41

Added

  • db:seed runner + composable Ions\Database\Seeder. The framework could scaffold seeders (make:seeder) but had no command to run them — every host had to write its own. New db:seed {--class= : defaults to DatabaseSeeder} {--database=} resolves a seeder by FQCN, by the layout namespace (Database\Seeders\X on the host-root layout, App\Database\Seeders\X legacy), or by requiring the file directly when the host hasn't dumped autoload — then runs its seed() (or run(), Laravel-style). A new base Ions\Database\Seeder adds call([A::class, B::class]) for composing seeders (a DatabaseSeeder orchestrating others); the make:seeder stub now extends it and the skeleton ships a database/seeders/DatabaseSeeder.php. Plain seeders — a class with seed() and no base (the previous shape) — still run unchanged (BC).

Fixed

  • migrate auto-creates the migrations table on first run. php bin/ions migrate on a fresh database threw SQLSTATE[42S02] … Table 'migrations' doesn't exist, because the bookkeeping table only existed after a separate migrate --install. migrate now creates it itself when missing (Laravel parity); --install remains as an explicit, idempotent alias. Also fixes the Migrations table exits → exists message typo.
  • No composer create-project autoload warning. The skeleton's tests/ExampleTest.php declared a non-namespaced class while composer.json maps Tests\ => tests/, so scaffolding printed Class ExampleTest … does not comply with psr-4 autoloading standard … Skipping. The test is now namespace Tests; (PSR-4 compliant); harmless before (Pest ran it anyway), just noisy on first impression.

4.6.0 — Interactive debug UI + Laravel database layout

Choose a tag to compare

@tahadeveloper tahadeveloper released this 13 Jun 05:14

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

2.1.0

Choose a tag to compare

@tahadeveloper tahadeveloper released this 10 May 05:44

Full Changelog: 1.7.12...2.1.0

2.0.1

Choose a tag to compare

@tahadeveloper tahadeveloper released this 29 Mar 03:54

Full Changelog: 2.0.0...2.0.1

fix error in attributes route

2.0.0

Choose a tag to compare

@tahadeveloper tahadeveloper released this 29 Mar 01:39

Full Changelog: 1.7.12...2.0.0

1.7.12

Choose a tag to compare

@tahadeveloper tahadeveloper released this 15 Aug 05:45

Full Changelog: 1.7.11...1.7.12

1.7.11

Choose a tag to compare

@tahadeveloper tahadeveloper released this 11 Aug 08:19

Full Changelog: 1.7.10...1.7.11

1.7.10

Choose a tag to compare

@tahadeveloper tahadeveloper released this 10 Aug 07:37

Full Changelog: 1.7.9...1.7.10

1.7.9

Choose a tag to compare

@tahadeveloper tahadeveloper released this 01 Jul 06:51

Full Changelog: 1.7.8...1.7.9

1.7.8

Choose a tag to compare

@tahadeveloper tahadeveloper released this 06 Jun 08:37

Full Changelog: 1.7.7...1.7.8