Download the PHP package lumen-cool/sdk without Composer
On this page you can find all versions of the php package lumen-cool/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lumen-cool/sdk
More information about lumen-cool/sdk
Files in lumen-cool/sdk
Package sdk
Short Description PHP client for uploading files to Lumen Files drives.
License AGPL-3.0-or-later
Informations about the package sdk
Lumen PHP Client SDK
A lightweight PHP 8.4+ SDK for interacting with Lumen Files uploads. It provides:
- A
LumenVaultResolverthat can hydrate vault definitions from the public registry and from custom overrides. - A
LumenClientthat automatically targets the right vault from the drive ID annotation ({drive}-{vault}). - Strongly-typed response objects for both simple and multipart uploads.
Installation
Getting started
Simple upload
If you prefer to embed the vault in the drive identifier, pass "{drive}-{vault}" as the drive_id. The client will split it automatically:
Encrypted upload
Download file
Files can be downloaded directly from a vault. If the file is encrypted, you can pass the raw_file_key obtained from a shareable link or unwrapped using your mnemonic.
Multipart upload (automatic)
Multipart upload (manual control)
Vault resolution helpers
The resolver can also map arbitrary URLs back to a vault, which is useful when handling callbacks:
Error handling
- HTTP failures bubble up as
GuzzleHttp\Exception\GuzzleException. - File-system issues throw
RuntimeException. - JSON decoding uses
JSON_THROW_ON_ERRORto surface malformed responses.
Testing
No tests are bundled yet; you can add your own in the tests/ directory.
📄 License
This project is licensed under the GNU Affero General Public License v3 (AGPLv3). See the LICENSE file for details.
Contributions are licensed to the maintainers under both AGPLv3 and the Apache License 2.0 for use in commercial or relicensed versions. See CONTRIBUTING.md for details.
🤝 Contributing
We welcome community contributions! Please read our contributing guidelines before submitting a pull request.
All versions of sdk with dependencies
ext-ctype Version *
ext-fileinfo Version *
ext-hash Version *
ext-mbstring Version *
ext-openssl Version *
ext-sodium Version *
guzzlehttp/guzzle Version ^7.9
nyra/bip39 Version ^1.0