marko/session
Session management for the Marko PHP framework, offering a clean API for persisting user data across requests. Handles session storage, retrieval, and lifecycle with drivers that integrate into Marko's container and middleware pipeline.
marko/session is a read-only split of the Marko Framework monorepo, not an independent product. Its value is only realized through the "adopt Marko" decision, so treat it as one input to a framework bake-off against Laravel, Symfony, and Slim—not as a line item on its own.$_SESSION and buy ourselves simplicity at the cost of portability?Consider it when:
marko-php/marko repository, accepting that this package has no independent release cadence or maintainer roster.Look elsewhere when:
For executives: This is an MIT-licensed piece of a young PHP framework, not a product you buy or adopt on its own. The strategic question is whether we are willing to standardize on the Marko Framework. Its existence is a positive signal that Marko takes session handling seriously enough to abstract it; its zero-star, zero-dependent status is a signal that almost nobody else has bet on Marko yet. Recommendation: do not adopt this package directly. Instead, run a time-boxed framework evaluation with sessions, auth, and CSRF as explicit acceptance criteria, and make the framework call deliberately rather than by default.
For engineering: The package provides session interfaces and infrastructure, which is the right shape—contracts you can mock, storage you can swap. Treat the READ-ONLY banner as informational: it is a monorepo split, so issues and PRs belong upstream in marko-php/marko. Before committing, confirm three things: (1) an actively maintained upstream with recent commits and a security contact, (2) that the session implementation meets our requirements for ID rotation, fixation defense, and storage backend flexibility, and (3) a viable exit path—since the interfaces are simple, wrapping them behind an internal adapter now buys us the option to replace the implementation later without rewriting call sites.
How can I help you explore Laravel packages today?