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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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

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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package juanchosl/ftpclient contains the following files

Loading the files please wait ...