All Projects → twistor → flysystem-stream-wrapper

twistor / flysystem-stream-wrapper

Licence: MIT license
Provides the ability to register Flysystem filesystems as stream wrappers.

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects

Labels

Projects that are alternatives of or similar to flysystem-stream-wrapper

librarify-back
Librarify. Creando una API con Symfony 5 es un curso completo sobre Symfony 5 en el que cuento cómo desarrollar una API desde cero empleando FOS Rest Bundle.
Stars: ✭ 30 (-49.15%)
Mutual labels:  flysystem
flysystem-curlftp
Flysystem Adapter for the FTP with cURL implementation
Stars: ✭ 36 (-38.98%)
Mutual labels:  flysystem
mediasort
Upload manager using Laravel's built-in Filesystem/Cloud Storage
Stars: ✭ 20 (-66.1%)
Mutual labels:  flysystem
Kodexplorer
A web based file manager,web IDE / browser based code editor
Stars: ✭ 5,490 (+9205.08%)
Mutual labels:  flysystem
flysystem-cos
💾 Flysystem adapter for the Qcloud COS storage.
Stars: ✭ 57 (-3.39%)
Mutual labels:  flysystem
flysystem-google-cloud-storage
Flysystem v1 adapter for Google Cloud Storage
Stars: ✭ 21 (-64.41%)
Mutual labels:  flysystem
yii2-flysystem-component
The League Flysystem Library for Yii Framework
Stars: ✭ 22 (-62.71%)
Mutual labels:  flysystem
flysystem-sync
Filesystem sync using Flysystem project.
Stars: ✭ 26 (-55.93%)
Mutual labels:  flysystem

Flysystem stream wrapper

Author Build Status AppVeyor Coverage Status Software License Packagist Version Total Downloads

Installation

composer require twistor/flysystem-stream-wrapper

Usage

use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
use Twistor\FlysystemStreamWrapper;

// Get a Filesystem object.
$filesystem = new Filesystem(new Local('/some/path'));

FlysystemStreamWrapper::register('fly', $filesystem);

// Then you can use it like so.
file_put_contents('fly://filename.txt', $content);

mkdir('fly://happy_thoughts');

FlysystemStreamWrapper::unregister('fly');

Notes

This project tries to emulate the behavior of the standard PHP functions, rename(), mkdir(), unlink(), etc., as closely as possible. This includes emitting wanrings. If any differences are discovered, please file an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].