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

Three Devs & A Maybe Podcast:
Flysystem with Frank de Jonge
Oct 15, 2014 @ 09:38:49

The Three Devs & A Maybe podcast has released the latest episode of their podcast today, episode #47, that features an flysystem library.

This week we are lucky to have Frank de Jonge (of Flysystem fame) on the show. Discussion starts off with an update on the latest Snapchat security vulnerability, and if there is any real point in the service to begin with. We then move on to chat about how Frank got into software development and his method for handling freelance work, by way of meeting his own expectations. This leads on to talk about Flysystem, how the package came about and its' addition to 'The League of Extraordinary Packages'. Finally, we touch upon the PHP community in Amsterdam and the great times had at Laracon Europe this year.

They also mention Snapchat and some of the parasite applications that "screw its users", the FuelPHP framework and in-page audio player or downloading the mp3 directly. Remember to also subscribe to their feed if you enjoy the show and content.

tagged: threedevsandamaybe podcast ep47 frankdejonge flysystem

Link: http://threedevsandamaybe.com/flysystem-with-frank-de-jonge/

SitePoint PHP Blog:
Build a Database with Eloquent, Faker and Flysystem
Aug 28, 2014 @ 11:55:09

In the latest post to the SitePoint PHP blog Aleksander Koko continues with his series about creating an application with PHP and EmberJS with a look at building databases. In the first part of the series he introduced the main toolset and set up a simple Laravel application inside of a Homestead instance. This latest post builds on that platform.

In this part, we will create the structure of the database. We will create the tables using migrations and seed the database using seeders. Also, you will learn how to grab some random images from LoremPixel and put them on the filesystem using Flysystem. You’ll also be adding some randomly generated data using the Faker library. Much like with part 1, you can download this part’s code from github.

He shows you how to get all the needed libraries installed and run the migrate command to create the needed tables. He also helps you set up a Dropbox application so you can use their API and configure the application with your API settings. Next he modifies the migrations and seeds the sample data. Next up he makes the models for each of the tables and integrates Faker to populate them with better seed data, making seeder classes to handle some of the more custom logic.

tagged: database eloquent faker flysystem dropbox seed data tutorial emberjs

Link: http://www.sitepoint.com/build-database-eloquent-faker-flysystem/

SitePoint PHP Blog:
Abstract File Systems with Flysystem
Apr 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.

tagged: abstract filesystem flysystem library tutorial

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