PHPackages                             yangweijie/filesystem-ctfile - 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. yangweijie/filesystem-ctfile

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

yangweijie/filesystem-ctfile
============================

A PHP filesystem extension package that integrates ctFile functionality with the Flysystem filesystem abstraction library

v0.9(8mo ago)13MITPHPPHP ^8.1CI failing

Since Aug 19Pushed 8mo agoCompare

[ Source](https://github.com/yangweijie/filesystem-ctfile)[ Packagist](https://packagist.org/packages/yangweijie/filesystem-ctfile)[ Docs](https://github.com/yangweijie/filesystem-ctfile)[ GitHub Sponsors](https://github.com/sponsors/yangweijie)[ RSS](/packages/yangweijie-filesystem-ctfile/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Filesystem ctFile Extension
===========================

[](#filesystem-ctfile-extension)

[![Latest Stable Version](https://camo.githubusercontent.com/2f5cc7eb94a38cafb5ba971ee547a914abd2d632e8efd415b30c688f040468ff/68747470733a2f2f706f7365722e707567782e6f72672f79616e677765696a69652f66696c6573797374656d2d637466696c652f762f737461626c65)](https://packagist.org/packages/yangweijie/filesystem-ctfile)[![Total Downloads](https://camo.githubusercontent.com/97e8b9da7237d96e1bafa034a23258a824fdf14731862c0dd0bc299d23a0acda/68747470733a2f2f706f7365722e707567782e6f72672f79616e677765696a69652f66696c6573797374656d2d637466696c652f646f776e6c6f616473)](https://packagist.org/packages/yangweijie/filesystem-ctfile)[![License](https://camo.githubusercontent.com/f08ee922e41dbf59addebb3d3e330df5417a909fc6e883981b723532f6aea171/68747470733a2f2f706f7365722e707567782e6f72672f79616e677765696a69652f66696c6573797374656d2d637466696c652f6c6963656e7365)](https://packagist.org/packages/yangweijie/filesystem-ctfile)[![PHP Version Require](https://camo.githubusercontent.com/91bacc61070c0c69bc21bd83ac216b4e4a39776c63a99f445e137f1bebed7eaa/68747470733a2f2f706f7365722e707567782e6f72672f79616e677765696a69652f66696c6573797374656d2d637466696c652f726571756972652f706870)](https://packagist.org/packages/yangweijie/filesystem-ctfile)

A PHP filesystem extension package that integrates ctFile functionality with the Flysystem filesystem abstraction library.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Advanced Usage](#advanced-usage)
- [Troubleshooting](#troubleshooting)
- [Documentation](#documentation)
- [Development](#development)
- [Contributing](#contributing)
- [License](#license)
- [Support](#support)

Features
--------

[](#features)

- Full Flysystem adapter implementation for ctFile
- Enhanced file management capabilities through ctFile integration
- Comprehensive error handling and logging
- PSR-3 logging support
- Configurable caching and retry mechanisms
- Extensive test coverage with Pest

Requirements
------------

[](#requirements)

### System Requirements

[](#system-requirements)

- **PHP**: 8.1 or higher
- **Composer**: 2.0 or higher
- **Extensions**: json, mbstring, openssl (typically included in PHP)
- **ctFile**: Access to ctFile server/API

### Supported Versions

[](#supported-versions)

- **PHP**: 8.1, 8.2, 8.3+
- **Flysystem**: 3.x
- **Operating Systems**: Linux, macOS, Windows

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

[](#installation)

### Step 1: Install via Composer

[](#step-1-install-via-composer)

Install the package using Composer:

```
composer require yangweijie/filesystem-ctfile
```

### Step 2: Verify System Requirements

[](#step-2-verify-system-requirements)

Check that your system meets all requirements:

```
# Check PHP version (must be 8.1+)
php --version

# Check Composer version (must be 2.0+)
composer --version

# Verify required PHP extensions
php -m | grep -E "(json|mbstring|openssl)"

# Check if all extensions are loaded
php -r "
echo 'JSON: ' . (extension_loaded('json') ? 'OK' : 'MISSING') . PHP_EOL;
echo 'MBString: ' . (extension_loaded('mbstring') ? 'OK' : 'MISSING') . PHP_EOL;
echo 'OpenSSL: ' . (extension_loaded('openssl') ? 'OK' : 'MISSING') . PHP_EOL;
"
```

### Step 3: Verify Installation

[](#step-3-verify-installation)

Create a test script to verify the installation:

```
