Download the PHP package digipolisgent/drupal-copy-profile without Composer

On this page you can find all versions of the php package digipolisgent/drupal-copy-profile. 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 drupal-copy-profile

drupal-copy-profile

Latest Stable Version Latest Unstable Version Total Downloads License

Build Status Maintainability Test Coverage PHP 7 ready

Composer plugin to assist in installation profile development. This allows the install profile to be used as if your project is like drupal-composer/drupal-project, with your project being an install profile to test and being the root project.

Credits

This project is basically a rip-off of drupal-composer/drupal-scaffold. Thanks to the developers of that package for the inspiration.

Usage

Run composer require --dev digipolisgent/drupal-copy-profile:dev-master in your composer project before installing or updating drupal/core.

Once drupal-copy-profile is required by your project, it will automatically copy the install profile in the project directory to the correct profiles directory in an installed drupal site.

You can use this easily by requiring these packages in the require-dev section of the composer.json.

You'll also have to configure the drupal-scaffold paths as follows:

Configuration

You can configure the plugin with providing some settings in the extra section of your root composer.json.

With the drupal-copy-profile option excludes, you can provide additional paths that should not be copied from the root project. The plugin provides these default includes:

web-root is configurable through the options, but defaults to the location where drupal/core is installed. vendor-path is taken from the composer config and defaults to vendor

When setting omit-defaults to true, the default excludes will not be used; in this instance, only those files explicitly listed in the excludes options will be considered. If omit-defaults is false (the default), then any items listed in excludes will be in addition to the usual defaults.

The profile-name option allows you to set the install profile name. It defaults to the project name of the root package (the second part of the package name)

The web-root option allows you to set an alternative path to copy the profile to. It defaults to the install location of drupal/core, which should be fine.

Custom command

The plugin by default is executed on each composer install and update. If you want to call it manually, you can add the command callback to the scripts-section of your root composer.json, like this:

After that you can manually copy the profile according to your configuration by using composer drupal-scaffold.


All versions of drupal-copy-profile with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.5
composer-plugin-api Version ^1.0.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 digipolisgent/drupal-copy-profile contains the following files

Loading the files please wait ....