Download the PHP package koodimonni/composer-dropin-installer without Composer

On this page you can find all versions of the php package koodimonni/composer-dropin-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 composer-dropin-installer

Composer Dropin installer

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

This composer plugin helps you to move or copy your composer packaged files where you want them to be.

Composer only allows you to install full directories into their own directories. There's really useful composer/installers for custom installation paths but it overwrites everything in folder and doesn't allow coexist of two or more projects. We just let composer install things and take it from there.

I created this originally for installing multiple languages for WordPress with composer. I needed to have multiple packages living in same directory . See how you can update WordPress languages with composer.

How to use it

Follow the baby steps

1.Require "koodimonni/composer-dropin-installer": "*" or "dev-master"

2.Add custom paths into your composer.json -> extra -> dropin-paths.

3.Enjoy nice dependency management by composer and install things where the fuck you want them to be.

End result looks something like this

Moving vs. copying files

By default this dropin installer moves files from the source to the destination, which means the files disappear from the source.

If you would prefer copying instead (which keeps the files at the source after installation) insert the following configuration to your composer.json config declarations:

But how about the impossible looking syntax?

Dropin syntax consists from four parts: "{path}": "{directive}:{target}:{files}"

Path is relative path to destination folder.

Directive is one of:

Files is optional and by default it will move all files.

In some cases it would be nice to move just one file from the package. I found out that WordPress dropins needed just that. Good example is this one: Domain Mapping or object-cache.php.

Some Notices

Testing

Run PHPUnit tests with

Tests are run inside the tests/ directory where two dummy Composer projects are used to test dropin installation methods.

Todo

Changelog

Finally

Thanks to @Seldaek for all of this hard work with packagist.org!


All versions of composer-dropin-installer with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.2
composer-plugin-api Version ^1.0 | ^2.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 koodimonni/composer-dropin-installer contains the following files

Loading the files please wait ....