Download the PHP package maestroerror/wget-download without Composer

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

wget-download

easy to use, chainable PHP class for downloading files, uses wget CLI

Docs

I will try to provide some instructions, to better understand and use the main features of this little library.

installation

via Composer:

Don't forget to require autoload.php file

from github:

Note: It needs wget command to be available from your terminal. Check with wget --help or install: Run apt-get install wget for linux or download for windows

Initialization of class (Construction)

You can construct object with 3 different ways: with array of configs, with string of URL or without any parameters (and provide them further). Which you choose, it depends on your needs:

Options

set speed limit:

enable continue after the interrupt, so if the internet connection stopped it will automatically resume the download after the connection is restored:

$checkCertificate is defined in wgd class as protected boolean property and by default it is set to false, you can use secure method, to allow HTTPS certificate check for specific downloads:

By default silent (download in background) mode is enabled, but for some specific downloads you can specify conditions:

Sometimes you should use a user agent for download. first, you need to allow and after set user agent for your download:

for multiple .txt downloads, you need .txt file with urls (line by line). Like in user agent case, first, allow multiple download with multiple method and then give .txt file to run:

Logs

default log file is defined as protected property in wgd class protected string $logFile = "wgetlog.txt";, but if you need, you can specify with setLog method:

Run

The last step is an execution, you can start your download with run method: $file->run().
Now let's say, we need to download file on background, with secure connection, set speed limit 1MB and allow continue:


To Do


All versions of wget-download with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 maestroerror/wget-download contains the following files

Loading the files please wait ....