PHPackages                             lamoda/codeception-flysystem - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. lamoda/codeception-flysystem

ActiveLibrary[File &amp; Storage](/categories/file-storage)

lamoda/codeception-flysystem
============================

Remote files checker for codeception tests

3.0.0(6y ago)165.1k3MITPHPPHP &gt;=7.1

Since Nov 19Pushed 6y ago23 watchersCompare

[ Source](https://github.com/lamoda/codeception-flysystem)[ Packagist](https://packagist.org/packages/lamoda/codeception-flysystem)[ RSS](/packages/lamoda-codeception-flysystem/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)Dependencies (7)Versions (8)Used By (0)

Codeception FlySystem Extension
===============================

[](#codeception-flysystem-extension)

[![Build Status](https://camo.githubusercontent.com/7ae0ca2119d9fcd6785a184ef12cb4035660b45532bfffd797e8e1d7407ffbae/68747470733a2f2f7472617669732d63692e6f72672f6c616d6f64612f636f646563657074696f6e2d666c7973797374656d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lamoda/codeception-flysystem)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/460deee0004cd276d01c399b38dd6ccc8f5f53def388ecb344f8102ba3a1daed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c616d6f64612f636f646563657074696f6e2d666c7973797374656d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lamoda/codeception-flysystem/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/1b6785976b9d3395948f690be88987561a864c4582f363e37c369a30a5878fe2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c616d6f64612f636f646563657074696f6e2d666c7973797374656d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lamoda/codeception-flysystem/?branch=master)[![Build Status](https://camo.githubusercontent.com/a3a741a656aa2e1265d9ca26c6470d886dbd4abc148f301907b4301e02007e60/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c616d6f64612f636f646563657074696f6e2d666c7973797374656d2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lamoda/codeception-flysystem/build-status/master)

This extension supports working with [FlySystem](https://flysystem.thephpleague.com/) with several adapters.

Provides a set of methods for checking and modifying files on remote storage.

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

[](#installation)

1. Install library

    ```
    composer require lamoda/codeception-flysystem
    ```
2. Add configuration to codeception.yml

    ```
    modules:
        config:
            \Lamoda\Codeception\Extension\FlySystemModule:
                adapters:
                    webdav:
                        builderAdapter: \Lamoda\Codeception\Extension\AdapterFactory\WebdavAdapterFactory
                        config:
                            baseUri: "http://webdav-host"
                            userName: "userName"
                            password: "password"
                            authType: "authType"
                    sftp:
                        builderAdapter: \Lamoda\Codeception\Extension\AdapterFactory\SftpAdapterFactory
                        config:
                            host: "http://sftp-host"
                            username: "username"
                            password: "password"
                            port: "22"
                            root: "/"
                    s3:
                        builderAdapter: \Lamoda\Codeception\Extension\AdapterFactory\AwsS3AdapterFactory
                        config:
                            bucket: "your-bucket"
                            endpoint: "endpoint" # if you are using S3-compatible object storage service
                            credentials:
                                key: "key"
                                secret: "secret"
                            region: "region"
                            version: "version"
    ```
3. Include to suite

    ```
    modules:
        enabled:
            - \Lamoda\Codeception\Extension\FlySystemModule
    ```

Supported adapters
------------------

[](#supported-adapters)

### [sftp](https://flysystem.thephpleague.com/adapter/sftp/)

[](#sftp)

Configuration example:

```
modules:
    config:
        \Lamoda\Codeception\Extension\FlySystemModule:
            adapters:
                sftp:
                    builderAdapter: \Lamoda\Codeception\Extension\AdapterFactory\SftpAdapterFactory
                    config:
                        host: "http://sftp-host"
                        username: "username"
                        password: "password"
                        port: "22"
                        root: "/"
```

Usage:

```
$fileSystem = $this->tester->getFileSystem('sftp');
```

### [webdav](https://flysystem.thephpleague.com/adapter/webdav/)

[](#webdav)

Configuration example:

```
modules:
    config:
        \Lamoda\Codeception\Extension\FlySystemModule:
            adapters:
                webdav:
                    builderAdapter: \Lamoda\Codeception\Extension\AdapterFactory\WebdavAdapterFactory
                    config:
                        baseUri: "http://webdav-host"
                        userName: "userName"
                        password: "password"
                        authType: "authType"
```

Usage:

```
$fileSystem = $this->tester->getFileSystem('webdav');
```

### [AWS S3](https://flysystem.thephpleague.com/adapter/aws-s3/)

[](#aws-s3)

Configuration example:

```
modules:
    config:
        \Lamoda\Codeception\Extension\FlySystemModule:
            adapters:
                s3:
                    builderAdapter: \Lamoda\Codeception\Extension\AdapterFactory\AwsS3AdapterFactory
                    config:
                        bucket: "your-bucket"
                        endpoint: "endpoint" # if you are using S3-compatible object storage service
                        credentials:
                            key: "key"
                            secret: "secret"
                        region: "region"
                        version: "version"
```

Usage:

```
$fileSystem = $this->tester->getFileSystem('s3');
```

Usage
-----

[](#usage)

Get instance of FileSystem by name from config:

```
$fileSystem = $this->tester->getFileSystem('sftp');
```

Modify file on remote server:

```
$fileSystem->clearDir('/path/to/dir');
$fileSystem->writeFile('test.txt', 'Hello world!');
$fileSystem->copyFile('test.txt', 'test_copy.txt');
$fileSystem->deleteFile('test.txt');

$files = $fileSystem->grabFileList('/path/to/dir');
```

Check files on remote server:

```
$fileSystem->canSeeFile('test_copy.txt');
$fileSystem->cantSeeFile('test.txt');

$fileSystem->seeInFile('test_copy.txt', 'Hello');

$fileSystem->seeFilesCount('/path/to/dir', 1);

$fileSystem->seeFileFoundMatches('/copy$/', '/path/to/dir');
$fileSystem->dontSeeFileFoundMatches('/test$/', '/path/to/dir');
```

Development
-----------

[](#development)

### PHP Coding Standards Fixer

[](#php-coding-standards-fixer)

```
make php-cs-check
make php-cs-fix
```

### Tests

[](#tests)

Unit

```
make test-unit
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~131 days

Total

5

Last Release

2209d ago

Major Versions

1.0 → 2.0.02019-03-16

2.2.0 → 3.0.02020-04-27

PHP version history (2 changes)1.0PHP &gt;=5.6

2.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed906771163ff68cfb365bdd3b8278a3ce1b464f94051ff7ab50c03a30110efe?d=identicon)[scaytrase](/maintainers/scaytrase)

![](https://avatars.githubusercontent.com/u/1481343?v=4)[Pavel Savelyev](/maintainers/pavelsavelyev)[@pavelsavelyev](https://github.com/pavelsavelyev)

![](https://avatars.githubusercontent.com/u/4680327?v=4)[Anton Trekov](/maintainers/AntonTrekov)[@AntonTrekov](https://github.com/AntonTrekov)

---

Top Contributors

[![AntonTrekov](https://avatars.githubusercontent.com/u/4680327?v=4)](https://github.com/AntonTrekov "AntonTrekov (3 commits)")[![shiron](https://avatars.githubusercontent.com/u/707753?v=4)](https://github.com/shiron "shiron (1 commits)")[![Tekill](https://avatars.githubusercontent.com/u/965890?v=4)](https://github.com/Tekill "Tekill (1 commits)")

---

Tags

codeceptioncodeception-flysystemcodeception-moduleflysystemphps3sftpwebdav

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/lamoda-codeception-flysystem/health.svg)

```
[![Health](https://phpackages.com/badges/lamoda-codeception-flysystem/health.svg)](https://phpackages.com/packages/lamoda-codeception-flysystem)
```

###  Alternatives

[codeception/module-filesystem

Codeception module for testing local filesystem

1916.7M331](/packages/codeception-module-filesystem)[craftcms/aws-s3

Amazon S3 integration for Craft CMS

631.5M26](/packages/craftcms-aws-s3)

PHPackages © 2026

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