Download the PHP package jalsoedesign/filezilla without Composer

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

FileZilla Configuration Parser

Latest Stable Version License

A powerful PHP library for parsing and working with FileZilla sitemanager.xml files. It allows you to extract server details, manage configurations, and integrate FileZilla data into your PHP applications.


Features


Installation

Install the package via Composer:


Usage

Basic usage

Load the default sitemanager.xml from your system (using fromSystem()) and iterate through all servers and print their name.

Many other examples

See the examples folder.

Structure of sitemanager.xml

The test fixture tests/fixtures/sitemanager.xml provides an example of all possible options.

Folder structure of sitemanager.xml

Documentation

API Reference

Server

The Server class represents a single server configuration from the FileZilla sitemanager.xml file. It provides access to all attributes of a server, including its host, protocol, directories, and more.

Method Returns Description
getHost() string Get the server's hostname or IP address.
getPort() int Get the server's port number.
getProtocol() int Get the server's protocol (ServerProtocol enum).
getLogonType() int Get the server's logon type (LogonType enum).
getUser() ?string Get the username for authentication (nullable).
getPassword() ?string Get the password for authentication (nullable).
getKeyFile() ?string Get the path to the server's private key file (nullable).
getTimezoneOffset() ?int Get the server's timezone offset (nullable).
getPassiveMode() ?string Get the server's passive mode (PassiveMode enum, nullable).
getMaximumMultipleConnections() ?int Get the maximum concurrent connections (nullable).
getEncodingType() ?string Get the encoding type (CharsetEncoding enum, nullable).
getCustomEncoding() ?string Get the custom encoding if the encoding type is custom.
getBypassProxy() ?bool Check whether the server bypasses the proxy (nullable).
getType() int Get the server's type (ServerType enum).
getName() string Get the name of the server as it appears in FileZilla.
getComments() ?string Get the server's comments (nullable).
getLocalDirectory() ?string Get the initial local directory for the server (nullable).
getRemoteDirectory(string $default = null, bool $useRootPrefix = true) ?string Parse and return the server's remote directory (nullable).
getSynchronizedBrowsing() ?bool Check whether synchronized browsing is enabled (nullable).
getDirectoryComparison() ?bool Check whether directory comparison is enabled (nullable).
getColour() int Get the background color.
getColor() ?string Alias for getColour() (nullable).

Folder

The Folder class represents a collection of Server and/or Folder objects, allowing for recursive structures of servers and folders.

Method Returns Description
getName() string Get the name of the folder.
getChildren(bool $recursive, ?string $filter) Server[]/Folder[] Get all children in the folder, optionally recursive and filtered by type.
countServers(bool $recursive) int Count the number of servers in the folder, optionally including subfolders.
countFolders(bool $recursive) int Count the number of folders in the folder, optionally including subfolders.
getServers(bool $recursive) Server[] Get all servers in the folder, optionally including subfolders.
getFolders(bool $recursive) Folder[] Get all folders in the folder, optionally including subfolders.
getServer(string $serverPath) Server Get a specific server by its path.
getFolder(string $folderPath) Folder Get a specific folder by its path.
getChildPath(string $childName, ?string $childPath) string Construct a full path for a child within the folder.

SiteManager

The SiteManager class extends Folder, inheriting all of its functionality, and represents the root structure of FileZilla's server and folder configuration as defined in the sitemanager.xml file. In addition to managing nested folders and servers, it provides access to metadata about the configuration file itself.

Method Returns Description
SiteManager::fromSystem() SiteManager Create a SiteManager instance from the system's default configuration.
getVersion() string Get the version of the sitemanager.xml file.
getPlatform() string Get the platform specified in the sitemanager.xml file.

Enums

Enum Class Description
CharsetEncoding Charset encodings (Auto, UTF-8 or Custom)
Colour Background colours (e.g. Red, Green, Blue).
LogonType User authentication types (e.g., Normal, Anonymous).
PassiveType The PasvMode setting (MODE_DEFAULT, MODE_ACTIVE or MODE_PASSIVE)
ServerProtocol Server protocols like FTP, SFTP, FTPS, etc.
ServerType Server types like Unix, DOS, etc.

All enum classes have Enum::toCamelCase($value) as well as Enum::getConstantName($value) methods.

Filezilla config parsing

FileZilla Field Attribute Casting Note
Host host string Required
Port port int
Protocol protocol int
Type type int
User user string Required
Pass password string Required. Base64 encoded if encoding="base64"
Keyfile keyFile string Required
Colour colour int
Logontype logonType int
TimezoneOffset timezoneOffset int
PasvMode passiveMode string Required
MaximumMultipleConnections maximumMultipleConnections int
EncodingType encodingType string Required
BypassProxy bypassProxy bool
Name name string Required
Comments comments string Required
LocalDir localDirectory string Required
RemoteDir remoteDirectory string Required
SyncBrowsing synchronizedBrowsing bool
DirectoryComparison directoryComparison bool
CustomEncoding customEncoding string Required

Contributing

Contributions are welcome! Please submit a pull request or open an issue if you find a bug or have an idea for an enhancement.


License

This library is open-sourced under the MIT license.


Credits


Support

If you find this library useful, feel free to ⭐ the repository or share your feedback!


All versions of filezilla with dependencies

PHP Build Version
Package Version
Requires ext-dom Version *
php Version >=8.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 jalsoedesign/filezilla contains the following files

Loading the files please wait ....