News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
Abstract File Systems with Flysystem
April 07, 2014 @ 11:27:59

The SitePoint PHP blog has a new tutorial today from Lukas White showing you how to work with abstract file systems that aren't local. In this case, the file system is virtual and living on a remote system.

Reading and writing files is an integral aspect of any programming language, but the underlying implementation can vary enormously. For example, the finer details of writing data to the local filesystem compared to uploading over FTP is very different - yet conceptually, it's very similar. In addition to old warhorses like FTP, online storage is increasingly ubiquitous and inexpensive - with scores of services available such as Dropbox, Amazon's S3 and Rackspace's Cloud Files - but these all use subtly different methods for reading and writing. That's where flysystem comes in.

He shows how to install the flysystem library (via Composer) and a few examples showing how to make connections to:

  • an Amazon S3 instance
  • a Dropbox account
  • SFTP
  • even Memcache

Examples of both reading and writing to this virtual system are also included as well as a few other features like handling visibility, listing files/directories and mounting the remote filesystem locally.

0 comments voice your opinion now!
abstract filesystem flysystem library tutorial

Link: http://www.sitepoint.com/abstract-file-systems-flysystem

blog comments powered by Disqus

Similar Posts

DevShed: Using the Active Record Pattern with PHP and MySQL

Simon Holywell: Idiorm and Paris 1.3.0 released - the minimalist ORM and fluent query builder for PH

DevShed: Working with MySQL and Sessions to Serialize Objects in PHP (Part 3)

DevShed: An Introduction to Simulating the Model-View-Controller Schema in PHP

SitePoint PHP Blog: 13 Steps to Get eZ Publish 5.x to Work on Homestead


Community Events

Don't see your event here?
Let us know!


interview symfony framework example series application language podcast api yii2 part2 introduction community laravel testing list project composer php7 opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework