Friday, 25 July 2014

MightyFtp (Add-ons)


Imagine if I asked you to login into an ftp server then create a new sub directory under root, upload a new file to that sub directory and then rename the newly uploaded file using the current set of php apis.


How many lines of php code it would take you to achieve such an operation? 10 Maybe?


Imagine if a library existed to reduce that to just two lines.


$root = (new MightyFtpClient(“ftphost”,new MightyFtpCredentials(“username”,”password”))->getRoot(); //login and get root directory


$root->makeSubDirectory(“SubDirectoryName”)>upload(“mylocalfile.txt”)>rename(“renamedUploadedFile.txt”);


That library is Mighty Ftp!!


Mighty Ftp is a php library that provides a simple and intuitive experience for programmers who wish to interact with ftp servers through php.

Like jquery it supports chaining which means like the example above the MightyFtp allows people to apply many operations

to files / directories on an ftp server with very little effort.


Keywords




MightyFtp (Add-ons)

No comments:

Post a Comment