Download the PHP package dg/ftp-php without Composer

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

FTP for PHP

Downloads this Month Latest Stable Version License

FTP for PHP is a very small and easy-to-use library for accessing FTP servers.

It requires PHP 8.1 or newer and is licensed under the New BSD License. You can obtain the latest version from our GitHub repository or install it via Composer:

If you like it, please make a donation now. Thank you!

Usage

Opens an FTP connection to the specified host:

Login with username and password

Upload the file

Close the FTP stream

Ftp throws exception if operation failed. So you can simply do following:

On the other hand, if you'd like the possible exception quietly catch, call methods with the prefix try:

When the connection is accidentally interrupted, you can re-establish it using method $ftp->reconnect().


(c) David Grudl, 2008, 2023 (http://davidgrudl.com)


All versions of ftp-php 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 dg/ftp-php contains the following files

Loading the files please wait ....