Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1.18 KB

File metadata and controls

24 lines (19 loc) · 1.18 KB

initphp/sessions — Developer Documentation

This directory is the in-repo reference manual for the initphp/sessions package. The top-level README is the front door; everything here is detail.

Contents

File What it covers
01 — Getting Started Installation, the facade, your first session, the two call styles.
02 — Session API Every method on the Session facade, with examples.
03 — Adapters Each bundled save handler: requirements, every option, examples.
04 — Custom Adapters Build your own save handler on top of AbstractAdapter.
05 — Error Handling The exception hierarchy and what triggers each type.

Conventions in These Docs

  • Every PHP code block is written against the current src/. Copy a block, require 'vendor/autoload.php', and it runs.
  • "Payload" means the raw, PHP-session-encoded string PHP hands to a save handler's write() — not your individual $_SESSION values.
  • Examples assume use InitPHP\Sessions\Session; and the relevant adapter use statement.