Download the PHP package mouf/archive-installer without Composer

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

Archive installer

This is a simple installer that let's you create simple Composer packages that are actually downloading and extracting an archive from the web.

Downloading an archive from the web is actually already possible in Composer using the "package" repository, but this approach has a number of drawbacks. For instance, you cannot unpack the package in the root directory, or you cannot build dependencies easily upon that package.

Using the archive installer, you can let Composer install big packages that have no Composer package for you. For instance, you can build a Drupal installer just by writing a composer.json file.

A package implementing the archive installer should contain at least these statements in composer.json:

{
    ...
    "type": "archive-package",
    ...
    "extra": {
        "url": "http://exemple.com/myarchive.zip"
        "target-dir": "destination/directory",
        "omit-first-directory": "true|false"
    }
}

Please note that target-dir is relative to the root of your project (the directory containing the composer.json file). If target-dir is omitted, we default to the package's directory.

The omit-first-directory is useful if you download an archive where all the files are contained in one big directory. If you want the files without the container directory, just pass true to the omit-first-directory parameter (it defaults to false).

Detailed behaviour

The archive installer is not a perfect implementation. Actually, it is kind of stupid. Here is what you might want to know:

It assumes that the downloaded file at the URL you pass will never change. Once a download and installation is performed, it will not download the file again, unless the URL changes. If the URL changes, it will download the new archive and overwrite any previous files.

If you uninstall the package, the downloaded files will not be removed (it is up to you to do the cleanup).

Working in team

You might wonder whether you should commit the downloaded files in your code repository or not.

Actually, it's up to you. You might want to let the other users run composer install to download the package, or you might as well commit the files. If you commit the files, we strongly suggest that you also commit the download-status.txt file too, that you can find at the root of your package. This way, when your team-mates will run composer install, the package will not be downloaded again. Of course, the opposite is equally true: if you do not commit the downloaded package, then you should not commit download-status.txt.


All versions of archive-installer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 mouf/archive-installer contains the following files

Loading the files please wait ....