Search by

splinter / framework

Splinter — lightweight PHP micro-framework core (DI, routing, ORM, HTTP, console, queues)

Maintainers

Package info

github.com/vhar/splinter-framework

pkg:composer/splinter/framework

Transparency log

Statistics

Installs: 9

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

0.2.0 2026-08-26 15:03 UTC

This package is auto-updated.

Last update: 2026-08-26 15:04:29 UTC


README

Lightweight PHP micro-framework core: DI container, routing glue, Eloquent via Capsule, HTTP helpers, console commands and a Redis-backed queue. No view layer, no opinion on authorization — those are separate packages built on top of this core.

Install

composer create-project splinter/skeleton my-service

Entry points

  • bootstrap/app.php — boots Splinter\Kernel\HttpKernel and handles the current HTTP request.
  • splinter (CLI, like Laravel's artisan) — boots Splinter\Kernel\ConsoleKernel and runs the console application.

Configuration

Every config/*.php file is loaded and exposed under its filename, e.g. config/app.php is available as $config['app'] inside service providers. config/app.php controls providers, route files, global middlewares, and any additional console commands.

Commands

  • splinter migrate [--connection=default]
  • splinter migrate:rollback [--connection=default] [--target=VERSION]
  • splinter migrate:status [--connection=default]
  • splinter migrate:create <Name>
  • splinter queue:work [queue]

Queue

EventDispatcher pushes listeners implementing Splinter\Contracts\ShouldQueue onto a Redis list; queue:work consumes it with a retry mechanism, storing permanently failed jobs in failed_jobs. That table's migration ships inside this package (database/migrations/) — list both the package path and your app's db/migrations/ in config/phinx.php (see example).

Not included (by design)

  • View/template rendering (Twig) — separate package.
  • Authorization/permissions model — separate package. AccessRuleInterface is provided here as a neutral contract; concrete implementations (permission-based, role-based, etc.) live elsewhere.