Download the PHP package bitw/laravel-ftp without Composer

On this page you can find all versions of the php package bitw/laravel-ftp. 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 laravel-ftp

Laravel-FTP

A simple Laravel 5/6/7/8 ftp service provider.

Latest Stable Version Build Status Quality Total Downloads License

For Laravel 4.x, check v1.0.0

Installation

Add the package to your composer.json and run composer update.

{
    "require": {
        "jilfond/laravel-ftp": "~2.0"
    }
}

If you're using Laravel 5.5+ skip the next step, as Laravel auto discover packages.

Add the service provider in config/app.php:

'Anchu\Ftp\FtpServiceProvider',

Configuration

Run php artisan vendor:publish --tag=config and modify the config file(config/ftp.php) with your ftp connections.

You can add dynamic FTP connections with following syntax

Accessing connections

You can access default FTP connection via the FTP::connection method:

When using multiple connections you can access each specific ftp connection by passing connection name:

Sometimes you may need to reconnect to a given ftp:

If you need to disconnect from a given ftp use the disconnect method:

Basic usage examples

Supported methods

getDirListing($directory, $parameters )

Returns a list of files in the given directory

getDirListingDetailed($directory)

Returns a list of files in the given directory as an associative array with the following keys: rights, number, user, group, size, month, day and time

makeDir($directory)

Creates the specified directory on the FTP server.

changeDir($directory)

Changes the current directory on a FTP server.

uploadFile($fileFrom, $fileTo, $mode)

Uploads a local file to the FTP server.

downloadFile($fileFrom, $fileTo, $mode)

Downloads a file from the FTP server

readFile($fileFrom)

Same as the downloadFile() method except it downloads the remote file to the PHP output buffer and returns it.

moveUp()

Changes to the parent directory.

permission($mode, $filename)

Set permissions on a file.

delete($path)

Deletes the file specified by path from the FTP server.

currentDir()

Returns the current directory name

rename($oldName, $newName)

Renames a file or a directory on the FTP server.

removeDir($directory, $recursive)

Removes a directory

truncateDir($directory)

Truncates a directory

size($remoteFile)

Returns the size of the given file in bytes. Note: Not all servers support this feature.

time($remoteFile)

Returns the last modified time of the given file Note: Not all servers support this feature.


All versions of laravel-ftp with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
illuminate/support Version ^5.0|^6.0|^7.0|^8.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 bitw/laravel-ftp contains the following files

Loading the files please wait ....