Download the PHP package juanchosl/ftpclient without Composer
On this page you can find all versions of the php package juanchosl/ftpclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download juanchosl/ftpclient
More information about juanchosl/ftpclient
Files in juanchosl/ftpclient
Download juanchosl/ftpclient
More information about juanchosl/ftpclient
Files in juanchosl/ftpclient
Vendor juanchosl
Package ftpclient
Short Description Little methods collection in order to create connections with file servers
License MIT
Homepage https://github.com/JuanchoSL/FtpClient
Package ftpclient
Short Description Little methods collection in order to create connections with file servers
License MIT
Homepage https://github.com/JuanchoSL/FtpClient
Please rate this library. Is it a good library?
Informations about the package ftpclient
FtpClient
Description
Little methods collection in order to create connections to remote file servers
How to use
You needs to know the remote file server type connection in order to select the rigth instance
- Ftp
- Ftps over SSL
- Sftp over SSH
Instance
Direct instantiation
Using a factory
Connect
Authenticate
Authenticate with public key
For use public and private key over Sftp connection, set the credentials before login
Operate
You have a few generic methods and can operate over directories and files
Generic
| Method | Description |
|---|---|
| connect | Connect to a server |
| isConnected | Check if is connected |
| login | Login into server |
| disconnect | Disconnect from server |
| isLogged | Check if is logged |
| isDir | Check if is a dir |
| chmod | Change permissions |
| mode | Retrieve permissions |
| rename | Rename file or dir |
Directories
| Method | Description |
|---|---|
| listDirContents | For list the directory contents |
| listDirs | For list the directory subdirs |
| listFiles | For list the directory files |
| currentDir | The current directory path |
| createDir | For create a new directory |
| changeDir | For change to the selected directory |
| parentDir | For change to the parent directory |
| deleteDir | For remove a directory |
Files
| Method | Description |
|---|---|
| upload | For upload a file |
| write | For write contents into remote file |
| download | For download a file |
| read | For read contents from remote file |
| delete | For delete a file |
| filesize | For retrieve the filesize |
| lastModified | For retrieve the file last modification |
For FTP and FTPS
| Method | Description |
|---|---|
| pasive | true or false for apply pasive mode |
| system | The server operative system |
For SFTP
| Method | Description |
|---|---|
| getFingerprint | Retrieve and return the server fingerprint |
| getNegotiation | Retrieve and return the negotiation methods |
| setCredentials | Set public and private key for use on connection |
Adapters
You can use a wrapper in order to call the library functions using the native names from few OS
| Client | Linux | Windows | Description |
|---|---|---|---|
| chmod | chmod | icacls | Change permissions |
| mode | stat | cacls | Retrieve permissions |
| rename | mv | move | Rename file or dir |
| listDirContents | ls | dir | For list the directory contents |
| listDirs | lsDirs | dirDirs | For list the directory subdirs |
| listFiles | lsFiles | dirFiles | For list the directory files |
| currentDir | pwd | cd | The current directory path |
| createDir | mkdir | mkdir | For create a new directory |
| changeDir | cd | cd | For change to the selected directory |
| parentDir | cdUp | cdUp | For change to the parent directory |
| deleteDir | rm | rmdir | For remove a directory |
| upload | put | put | For upload a file |
| write | put | put | For write contents into remote file |
| download | get | get | For download a file |
| read | get | get | For read contents from remote file |
| delete | rm | del | For delete a file |
| filesize | filesize | filesize | For retrieve the filesize |
| lastModified | lastModified | lastModified | For retrieve the file last modification |
All versions of ftpclient with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
psr/log Version 3.0.*
juanchosl/exceptions Version 1.0.*
juanchosl/validators Version 1.0.*
juanchosl/datamanipulation Version ^1.0
juanchosl/socketclient Version 1.0.*
juanchosl/curlclient Version 1.0.*
juanchosl/httpdata Version ^1.0
psr/log Version 3.0.*
juanchosl/exceptions Version 1.0.*
juanchosl/validators Version 1.0.*
juanchosl/datamanipulation Version ^1.0
juanchosl/socketclient Version 1.0.*
juanchosl/curlclient Version 1.0.*
juanchosl/httpdata Version ^1.0
The package juanchosl/ftpclient contains the following files
Loading the files please wait ...