Download the PHP package tomedio/php-ftp-client without Composer

On this page you can find all versions of the php package tomedio/php-ftp-client. 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 php-ftp-client

tomedio/php-ftp-client

Latest Stable Version Total Downloads License PHP Version

A modern FTP and SSL-FTP client for PHP, offering easy-to-use helpers for managing remote files.

Note: This library requires PHP >=8.1.

Installation

To get started with PHP FTP Client in your project, you can install it via Composer:

After installation, you can use the library in your PHP project to connect to an FTP server and perform various operations.

Getting Started

Connect to an FTP server:

OR

Connect to an FTP server via SSL (on port 990 or another port):

Note: The connection is implicitly closed at the end of script execution (when the object is destroyed). Therefore, it is unnecessary to call $ftp->close(), except for an explicit re-connection.

Usage

Upload all files and directories:

Note: FTP_ASCII and FTP_BINARY are predefined PHP internal constants.

Get a directory size:

Count the items in a directory:

Detailed list of all files and directories in a directory:

Results:

Upload a file to the FTP server:

Download a file from the FTP server:

Delete a file from the FTP server:

Delete a directory from the FTP server:

Create a directory on the FTP server:

Rename a file or directory on the FTP server:

Change the permissions of a file or directory on the FTP server:

Change the owner of a file or directory on the FTP server:

Change the group of a file or directory on the FTP server:

Get the last modified time of a file or directory on the FTP server:

Get the size of a file on the FTP server:

Get the system type of the FTP server:

Get the current working directory on the FTP server:

Change the current working directory on the FTP server:

List the contents of the current directory on the FTP server:

List the contents of a directory on the FTP server:

Error Handling

The library throws exceptions when an error occurs. You can catch exceptions to handle errors in your application:

License

PHP FTP Client is open-source software licensed under the MIT license.


All versions of php-ftp-client with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-ftp Version *
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 tomedio/php-ftp-client contains the following files

Loading the files please wait ....