SessionForge
is an open-source PHP library designed to provide developers with a robust and flexible solution for managing sessions using file manipulation. With SessionForge
, you can effortlessly create, read, update, and delete session data stored in files, making it ideal for applications that require lightweight session management without the complexity of database dependencies.
- Create Sessions: Easily initialize new session files with unique identifiers.
- Read Sessions: Retrieve session data from files with simple and intuitive commands.
- Update Sessions: Modify existing session data and ensure changes are accurately saved.
- Delete Sessions: Remove session files when they are no longer needed, keeping your storage clean and efficient.
- PHP Compatibility: Fully compatible with the most recent four versions of the latest PHP release (PHP 8.0).
- Extensions Utilized:
- Libsodium: Ensures secure encryption and decryption of session data.
- JSON: Enables efficient handling and storage of session data in JSON format.
- Zlib: Efficient Compression for Optimized Data Storage
composer require biswas-abhishek/session-forge
- Clone the repository from
GitHub
. - Navigate to the project directory.
- Install dependencies using
Composer
.
- Creating a Session: Initialize a new session file with a unique identifier.
- Reading a Session: Retrieve session data from a file using the session ID.
- Updating a Session: Modify existing session data and save the changes.
- Deleting a Session: Remove session files that are no longer needed.
SessionForge
uses the libsodium extension to encrypt session data. Ensure that libsodium is installed and enabled in your PHP environment.
We welcome contributions! Please read our Contributing Guidelines for more information.
SessionForge
is released under the Apache License 2.0
. See the LICENSE file for more details.
-
Add XML and YAML Support: Enhance the flexibility of
SessionForge
by introducing support for XML and YAML file formats. -
Implement Public Key Encryption: Increase the security of session data by incorporating public key encryption mechanisms.
-
Expand Hashing Options: Offer a broader selection of hashing algorithms to meet diverse security needs. By supporting more hashing options, developers can choose the most suitable and secure hashing methods for their specific use cases.
-
Provide More Private Encryption Methods: Allow users to select from a variety of private encryption methods to better secure session data.