Download the PHP package kodhe/ftp without Composer
On this page you can find all versions of the php package kodhe/ftp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor kodhe
Package ftp
Short Description Refactored FTP Library for CodeIgniter 3 with PSR-4 autoloading
License MIT
Package ftp
Short Description Refactored FTP Library for CodeIgniter 3 with PSR-4 autoloading
License MIT
Please rate this library. Is it a good library?
Informations about the package ftp
Kodhe FTP Library
An FTP library refactored for CodeIgniter 3 with a modular PSR-4 architecture.
Features
- ✅ PSR-4 Autoloading - Namespace
Kodhe\Ftp\ - ✅ PSR-12 Coding Standards - Clean code style
- ✅ Design Patterns:
- Facade Pattern (class Ftp utama)
- Adapter Pattern (ConnectionInterface)
- Strategy Pattern (mode transfer ascii/binary)
- ✅ Multiple Connections - Supports FTP and FTPS (SSL)
- ✅ Testable - The connection can be mocked for unit testing
- ✅ 100% Backward Compatible - The CI3 API keeps working
Folder Structure
Installation
Via Composer
Manual
Copy the src/ folder into your project and set up autoloading:
Usage
CodeIgniter 3 Style (Backward Compatible)
Modern PSR-4 Style
FTP over SSL (FTPS)
Methods
| Method | Description |
|---|---|
connect($config) |
Connect to an FTP server |
upload($local, $remote, $mode, $perm) |
Upload file |
download($remote, $local, $mode) |
Download file |
rename($old, $new, $move) |
Rename file |
move($old, $new) |
Move file (alias rename) |
delete_file($path) |
Delete file |
delete_dir($path) |
Delete a directory (recursive) |
mkdir($path, $perm) |
Create a directory |
list_files($path) |
List files in a directory |
changedir($path, $suppress) |
Change directory |
chmod($path, $perm) |
Change permissions |
close() |
Close the connection |
Transfer Modes
The library automatically detects the transfer mode based on the file extension:
ASCII Mode (automatic for):
.txt,.text,.php,.html,.htm,.css,.js,.json.xml,.csv,.log,.sql,.md,.yaml,.yml
Binary Mode (default for everything else):
.jpg,.png,.gif,.zip,.tar,.gz- And all other extensions
Testing
License
MIT License
All versions of ftp with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
The package kodhe/ftp contains the following files
Loading the files please wait ...