Skip to content

Lightweight PHP library for managing sessions with a simple API. Ideal for use in CMS Flowaxy, landing pages, and any modern PHP web projects.

License

Notifications You must be signed in to change notification settings

flowaxy/session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔒 Flowaxy Session

Flowaxy Session is a lightweight PHP library for secure and easy session management.
Perfect for Flowaxy CMS, landing pages, web apps, and custom PHP projects.


✨ Features

✅ Simple session initialization
✅ Namespaced keys to prevent conflicts (s_key)
✅ Clean API: start(), set(), get(), remove(), destroy()
✅ Auto-integration with flowaxy/cookie
✅ Compatible with PHP 8.2+


⚙️ Installation

Install via Composer:

composer require flowaxy/session

Dependency: To enable full functionality (like cookie cleanup), install flowaxy/cookie:

composer require flowaxy/cookie

🧪 Usage Example

use Flowaxy\Session;

// Start session
Session::start();

// Set value
Session::set('user_id', 42);

// Get value
$userId = Session::get('user_id');

// Remove value
Session::remove('user_id');

// Destroy session
Session::destroy();

💡 destroy() also clears the cookie via Flowaxy\Cookie if the library is available.


📌 Requirements


🔗 Links


🏷️ Version

v1.0.0 — Stable
🧰 Follows Semantic Versioning (SemVer)


📃 License

MIT License


Made with ❤️ for developers.

About

Lightweight PHP library for managing sessions with a simple API. Ideal for use in CMS Flowaxy, landing pages, and any modern PHP web projects.

Topics

Resources

License

Stars

Watchers

Forks

Languages