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
FTP Library yang telah direfactor untuk CodeIgniter 3 dengan arsitektur modular PSR-4.
Fitur
- ✅ 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 - Support FTP dan FTPS (SSL)
- ✅ Testable - Connection bisa di-mock untuk unit testing
- ✅ 100% Backward Compatible - API CI3 tetap berfungsi
Struktur Folder
Instalasi
Via Composer
Manual
Copy folder src/ ke project Anda dan setup autoloading:
Penggunaan
CodeIgniter 3 Style (Backward Compatible)
Modern PSR-4 Style
FTP over SSL (FTPS)
Methods
| Method | Deskripsi |
|---|---|
connect($config) |
Connect ke server FTP |
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 direktori (rekursif) |
mkdir($path, $perm) |
Buat direktori |
list_files($path) |
List file dalam direktori |
changedir($path, $suppress) |
Change directory |
chmod($path, $perm) |
Change permissions |
close() |
Tutup koneksi |
Mode Transfer
Library otomatis mendeteksi mode transfer berdasarkan ekstensi file:
ASCII Mode (otomatis untuk):
.txt,.text,.php,.html,.htm,.css,.js,.json.xml,.csv,.log,.sql,.md,.yaml,.yml
Binary Mode (default untuk lainnya):
.jpg,.png,.gif,.zip,.tar,.gz- Dan semua ekstensi lainnya
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 ...