PHPackages                             bluebaytravel/ftp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. bluebaytravel/ftp

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

bluebaytravel/ftp
=================

Laravel 5 FTP Service Provider

v1.2.0(10y ago)32.0kMITPHPPHP &gt;=5.5.9CI failing

Since Jan 8Pushed 4y ago6 watchersCompare

[ Source](https://github.com/BlueBayTravel/FTP)[ Packagist](https://packagist.org/packages/bluebaytravel/ftp)[ RSS](/packages/bluebaytravel-ftp/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

FTP
===

[](#ftp)

Laravel 5 wrapper for the FTP with multiple connections.

[![Build Status](https://camo.githubusercontent.com/99e38425f28c454e821372b5184c0d251efc59fb9d323c457ae74243bd25d9ad/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f426c756542617954726176656c2f4654502e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/BlueBayTravel/FTP)[![StyleCI](https://camo.githubusercontent.com/e4af94ce7f74dea6e77653bcee1a91a07d0ad24ae9ff000179a0132c3844fb42/68747470733a2f2f7374796c6563692e696f2f7265706f732f32353135393935372f736869656c64)](https://styleci.io/repos/25159957)

```
// Return the files on the server.
Ftp::ls()

// Dependency injection example.
$ftpManager->ls()
```

Installation
------------

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
composer require bluebaytravel/ftp
```

Add the service provider to `config/app.php` in the `providers` array.

```
BlueBayTravel\Ftp\FtpServiceProvider::class
```

If you want you can use the [facade](http://laravel.com/docs/facades). Add the reference in `config/app.php` to your aliases array.

```
'Ftp' => BlueBayTravel\Ftp\Facades\Ftp::class
```

Configuration
-------------

[](#configuration)

Laravel Ftp requires connection configuration. To get started, you'll need to publish all vendor assets:

```
php artisan vendor:publish
```

This will create a `config/ftp.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

#### Default Connection Name

[](#default-connection-name)

This option `default` is where you may specify which of the connections below you wish to use as your default connection for all work. Of course, you may use many connections at once using the manager class. The default value for this setting is `main`.

#### Ftp Connections

[](#ftp-connections)

This option `connections` is where each of the connections are setup for your application. Example configuration has been included, but you may add as many connections as you would like.

Usage
-----

[](#usage)

### Ftp

[](#ftp-1)

This is a wrapper around the native `ftp_` functions.

#### FtpManager

[](#ftpmanager)

This is the class of most interest. It is bound to the ioc container as `ftp` and can be accessed using the `Facades\Ftp` facade. This class implements the ManagerInterface by extending AbstractManager. The interface and abstract class are both part of [Graham Campbell's](https://github.com/GrahamCampbell) [Laravel Manager](https://github.com/GrahamCampbell/Laravel-Manager) package, so you may want to go and checkout the docs for how to use the manager class over at that repository. Note that the connection class returned will always be an instance of `BlueBayTravel\Ftp\Ftp`.

#### Facades\\Ftp

[](#facadesftp)

This facade will dynamically pass static method calls to the `ftp` object in the ioc container which by default is the `FtpManager` class.

#### FtpServiceProvider

[](#ftpserviceprovider)

This class contains no public methods of interest. This class should be added to the providers array in `config/app.php`. This class will setup ioc bindings.

### Examples

[](#examples)

Here you can see an example of just how simple this package is to use. Out of the box, the default adapter is `main`. After you enter your authentication details in the config file, it will just work:

```
// You can alias this in config/app.php.
use BlueBayTravel\Ftp\Facades\Ftp;

Ftp::users();
```

The Ftp manager will behave like it is a `BlueBayTravel\Ftp\Ftp`. If you want to call specific connections, you can do that with the connection method:

```
use BlueBayTravel\Ftp\Facades\Ftp;

// Writing this…
Ftp::connection('main')->ls();

// ...is identical to writing this
Ftp::ls();

// and is also identical to writing this.
Ftp::connection()->ls();

// This is because the main connection is configured to be the default.
Ftp::getDefaultConnection(); // This will return main.

// We can change the default connection.
Ftp::setDefaultConnection('alternative'); // The default is now alternative.
```

If you prefer to use dependency injection over facades like me, then you can inject the manager:

```
use BlueBayTravel\Ftp\FtpManager;

class Foo
{
    protected $ftp;

    public function __construct(FtpManager $ftp)
    {
        $this->ftp = $ftp;
    }

    public function bar($id)
    {
        $this->ftp->ls();
    }
}

App::make('ftp')->ls();
```

License
-------

[](#license)

FTP is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Total

4

Last Release

3792d ago

PHP version history (2 changes)4.2.x-devPHP &gt;=5.3

v1.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e4934b15ff7d8cffabece955994bed29b31429f4c2e8f13fa0868c753bb1c30?d=identicon)[jbrooksuk](/maintainers/jbrooksuk)

---

Top Contributors

[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (31 commits)")[![alex-bowers](https://avatars.githubusercontent.com/u/7655111?v=4)](https://github.com/alex-bowers "alex-bowers (1 commits)")

---

Tags

ftplaravelBlue Bay Travel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bluebaytravel-ftp/health.svg)

```
[![Health](https://phpackages.com/badges/bluebaytravel-ftp/health.svg)](https://phpackages.com/packages/bluebaytravel-ftp)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
