Download the PHP package solophp/storage without Composer
On this page you can find all versions of the php package solophp/storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download solophp/storage
More information about solophp/storage
Files in solophp/storage
Download solophp/storage
More information about solophp/storage
Files in solophp/storage
Vendor solophp
Package storage
Short Description Simple file-based storage system for storing string data using key-value pairs.
License MIT
Package storage
Short Description Simple file-based storage system for storing string data using key-value pairs.
License MIT
Please rate this library. Is it a good library?
Informations about the package storage
Solo Storage
A lightweight, file-based storage system for PHP applications that provides simple key-value pair storage functionality.
Features
- Simple key-value storage interface
- File-based persistence
- Thread-safe file operations
- Directory traversal protection
- Minimal dependencies
- Type-safe implementation (strict types)
Requirements
- PHP 8.1 or higher
Installation
Usage
Basic Setup
Store Data
Retrieve Data
Check Data Existence
Delete Data
Error Handling
All methods are designed to fail gracefully:
set()
returnsbool
indicating success/failureget()
returnsnull
if key doesn't exist or on errorhas()
returnsbool
indicating key existencedelete()
returnsbool
indicating success/failure
Security
The storage system includes protection against directory traversal attacks by sanitizing storage keys.
Thread Safety
File operations use exclusive locks (LOCK_EX
) to ensure thread safety when writing data.
License
MIT
All versions of storage with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package solophp/storage contains the following files
Loading the files please wait ....