session-forge / session-forge
The SessionForge library is designed to provide developers with a flexible and efficient tool for managing sessions using file manipulation. With SessionForge, you can easily create, read, update, and delete session data stored in files, enabling seamless integration of session management functional
Requires
- php: >=8.0
Requires (Dev)
- phpbench/phpbench: ^1.2
Suggests
- ext-json: For Prase and Manipulate JSON
- ext-sodium: For Cryptography
Provides
- ext-json: *
- ext-libsodium: *
- ext-zlib: *
This package is auto-updated.
Last update: 2024-09-26 12:12:08 UTC
README
SessionForge
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.
Features
- 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.
Technology Stack
- 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
Installation
composer require biswas-abhishek/session-forge
Development Installation
- Clone the repository from
GitHub
. - Navigate to the project directory.
- Install dependencies using
Composer
.
Usage
- 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.
Security
SessionForge
uses the libsodium extension to encrypt session data. Ensure that libsodium is installed and enabled in your PHP environment.
Contributing
We welcome contributions! Please read our Contributing Guidelines for more information.
License
SessionForge
is released under the Apache License 2.0
. See the LICENSE file for more details.
Future Goals for SessionForge
-
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.