Search by

naf / storage

floknapp

Provider-independent file storage with named disks and streams for NAF.

Package info

github.com/nafphp/storage

Type:naf-plugin

pkg:composer/naf/storage

Statistics

Installs: 11

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-09-19 09:16 UTC

This package is auto-updated.

Last update: 2026-09-19 10:40:35 UTC


README

Provider-independent file storage for NAF.

One API over local disks, S3-compatible services and WebDAV. Named disks keep public assets and private documents apart, streams keep large files out of memory, and the helper is namespaced like every other NAF plugin helper.

use function Naf\Storage\storage;

storage()->put('foo.txt', 'Hello World');
storage('documents')->put('invoices/2026/1234.pdf', $contents);
storage('public')->url('avatars/123.jpg');

🧩 Part of the official NAF plugin collection. Install it when your application handles files, and nothing else.

Documentation

Read the documentation →

What this package does, how the disks are configured and what each adapter needs lives in the NAF documentation. Not sure which packages you need? Start here.

Install

composer require naf/storage

License

MIT. Part of NAF.