Download the PHP package minhyung/flysystem-mybox without Composer

On this page you can find all versions of the php package minhyung/flysystem-mybox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package flysystem-mybox

minhyung/flysystem-mybox

English | 한국어

CI Latest version PHP version

A Flysystem v3 adapter for Naver MYBOX, built on the minhyung/mybox SDK. It passes Flysystem's own adapter conformance suite.

Requirements

Installation

The SDK speaks PSR-18, and brings no HTTP client of its own. If your project has none yet:

Usage

Confining the adapter to a folder

Every path is resolved under that folder, and it is created on the first write. Nothing outside it is reachable, which makes this the safest way to share an account between an application and a human.

Options

Option Default What it does
deletionMode Trash Trash moves deleted files to the MYBOX trash, like the web UI. Purge also empties them from it.
visibility private What visibility() reports. MYBOX stores no such thing — see Limitations.
failOnSetVisibility true Whether setVisibility() throws or is a silent no-op.
unknownSize Buffer What writeStream() does when a stream's length cannot be read. Fail refuses instead of buffering.
bufferThresholdBytes 2 MiB Below this a buffered upload stays in memory; above it, php://temp spills to disk.
listPageSize 1000 Entries per listing request. The maximum MYBOX allows, and ten times its own default.
cacheTtlSeconds 10 How long a cached directory listing is trusted.
cacheMaxDirectories 128 How many directories the cache holds before evicting the least recently used.
strictTemporaryUrlExpiry true Whether to refuse a temporary URL asked to live longer than MYBOX allows.
lockedRetries 2 Retries when MYBOX answers 423, which it does briefly after an interrupted upload.

Uploading a large file without buffering

MYBOX reserves an upload against a declared byte length and answers HTTP 500 if the bytes disagree, so the adapter never guesses. It reads the length off a seekable regular file; for anything else — a socket, a pipe, an upload arriving over the network — it buffers through php://temp first. Skip that by saying how long the payload is:

Temporary URLs

The URL is single-use. A second request for it fails, and MYBOX ignores the expiry you ask for — it grants ten minutes. Hand it to one client immediately; never put it in a cached page, an email, or a job that might be retried.

With Laravel

The package is framework-agnostic. Register it as a disk driver in a service provider:

How path resolution works

MYBOX addresses everything by an opaque resource id, not by a path, and its only path-aware endpoint — search — is capped at ten calls a minute and served from an index that lags a just-created folder. So the adapter never uses search. It walks down from the drive root with listing calls, and keeps the whole listing rather than the one id it was after.

That matters because a listing already answers exists, size, last-modified and type for every child at once:

Cached listings are per-adapter-instance, per-process, and trusted for ten seconds. That window is what bounds the one failure this cannot detect: another client renaming a folder, which leaves the id valid but pointing elsewhere. Call $adapter->clearCache() after mutating the drive through the SDK directly, or pass new NullDirectoryCache() to turn caching off entirely — at the cost of three listing round-trips for every fileExists('a/b/c.txt').

Limitations

These are properties of the MYBOX API, not gaps in the adapter.

Measured against a live account and recorded in docs/adapter-notes.md: every special character Flysystem tests for is accepted in a file name, zero-byte uploads work, and a folder listing takes the maximum page size of 1000.

Contributing

See CONTRIBUTING.md. Note that the integration suite talks to a real MYBOX account and is off by default.

License

MIT. See LICENSE.


All versions of flysystem-mybox with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
ext-mbstring Version *
league/flysystem Version ^3.29
league/mime-type-detection Version ^1.0
minhyung/mybox Version ^0.1.1
psr/http-message Version ^1.1 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package minhyung/flysystem-mybox contains the following files

Loading the files please wait ...