Download the PHP package markocupic/composer-file-copier-plugin without Composer

On this page you can find all versions of the php package markocupic/composer-file-copier-plugin. 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-file-copier-plugin

Logo

Composer File Copier Plugin

Let's assume you have developed a composer package. Now you want selected files inside your package to be copied to a defined location on your local file system after each post-install-cmd and post-update-cmd event. With a bit of configuration this composer plugin can do this job for you.

The configuration is made inside the extra key of the composer.json file of your freshly programmed composer package.

Installation

composer require markocupic/composer-file-copier-plugin

Build your composer package

Big thanks to https://tree.nathanfriend.io for sharing this fancy tree generator. :heart:

Configuration

The configuration is made inside the extra key of the composer.json file inside your composer package.

Note, that source paths are always relative to the installation directory of your package.

Note, that target paths are always relative to the project root.

Inside the composer.json of your package:

Mandatory keys Description
source Add a path to a file or directory. The path you set is relative to the package root.
target Add a path to a file or directory. If the source path points to a file, then the destination path should point to a file as well. The target path is always relative to the document root.

Options

Option Description Affects
OVERRIDE Accepted values: boolean true or false. Overwrite existing newer files in target directory. Default to false. files & folders
DELETE Accepted values: boolean true or false. Whether to delete files that are not in the source directory should be deleted. Default to false. This option is not available, when using filters. folders

Filters

Filter Description
NAME Accepted values: array "NAME": ["*.less","*.json"]. See Symfony Finder component.
NOT_NAME Accepted values: array "NOT_NAME": ["*.php","*.js"]. See Symfony Finder component.
DEPTH Accepted values: array "DEPTH": ["< 1","> 4"] See Symfony Finder component.

Additional configuration

By default this package will not process the following package types: library','metapackage','composer-plugin','project'.
This can be overridden in your composer.json by specifying which package to exclude:

:warning: Last but not least!

Note, that this is a very powerful but also dangerous tool that can OVERRIDE/DELETE files/folders and DESTROY/DAMAGE your installation if wrongly applied.


All versions of composer-file-copier-plugin with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
composer-plugin-api Version ^2.1
symfony/filesystem Version ^5.0 || ^6.0 || ^7.0
symfony/finder Version ^5.0 || ^6.0 || ^7.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 markocupic/composer-file-copier-plugin contains the following files

Loading the files please wait ....