a PHP application library dependency manager.

learn more… | top users | synonyms

1
vote
1answer
31 views

Installing drush for use with Drupal 8

I have now found two instances where it seems I will finally need to learn how to install and use drush for my new drupal 8 site. I've been avoiding drush the last 5 years working with drupal 7 ...
0
votes
0answers
10 views

Strategy on running drupal-update

What kind of strategies do people use with regards to updating and then testing the composer managed dependencies? I have recently upgraded core and at that point updated all dependencies using ...
1
vote
0answers
28 views

How to upgrade to 8.1.0 using composer? [duplicate]

I used composer create-project drupal-composer/drupal-project and have happily been using composer install composer require and composer update to keep my development system up-to-date and moving it ...
1
vote
2answers
13 views

Force Drush8 to Download Drupal 8 Module on a Remote D7

Anyone happen to know, how to force download d8 module to remote d7? I tried doing the following and still letting me to choose 7s. $ drush @remote.dev dl --default-major=8 composer There are no ...
1
vote
1answer
135 views

How to update 8.0.x to 8.1.x with composer?

This is excerpt from my composer.json file (trimmed for readability). It was created by running composer create-project drupal/drupal my_site_name 8.0.* as described on drupal.org: { "name": ...
0
votes
1answer
31 views

Dependencies in a custom module with drupal-composer

I have a problem with dependencies in my custom module. I'm using drupal-composer (https://github.com/drupal-composer/drupal-project) and I'm able to install my own module with the composer.json. My ...
1
vote
1answer
24 views

How to update Twig - does it need to be updated?

Does Twig will be updated automatically? Or does an updated version comes with a new Drupal 8.x release? Or does Drupal just stuck on the current version? I'm just wondering because Twig will be ...
0
votes
1answer
20 views

Use Composer to manage sub-theme Bootstrap LESS dependencies when using LESS starterkit

In Drupal 8 let's say I want to use a Bootstrap subtheme and the LESS starterkit described here: http://drupal-bootstrap.org/api/bootstrap/starterkits!less!README.md/group/subtheme_less/8 The ...
0
votes
1answer
113 views

Drush and Composer installed but I'm getting errors

Trying to use any drush command I get an error saying autoload.php won't load. It's in the vendor folder which is in the web root where I'm pretty sure it's supposed to be. It also has chmod +x ...
0
votes
1answer
42 views

composer-install of Drupal8 creates a tmp####/ folder. How to manage & clean it?

I'm working with Drupal, with v8, using Composer to install & manage it. I create a new Drupal8 project using the 'drupal-composer/drupal-project' template, composer create-project --keep-vcs ...
0
votes
1answer
193 views

Error during “composer drupal-update” for Drupal 8.0.5

I've been running a Drupal 8 site since 8.0.0, using the Address module. As this required some CommerceGuys dependencies in the /vendor folder, I've been using the following commands to load ...
1
vote
1answer
34 views

composer place git repo to a custom path

How to place git repo to a custom path? I am using composer/Installer. and I have develop a module on git repo. I would like to add it to composer.json but after pull it should be placed ...
0
votes
1answer
37 views

How do you exclude 'drush' & 'drupal console' requirements from a drupal-composer/drupal-project install?

When I create a Drupal project with composer create-project --keep-vcs drupal-composer/drupal-project:8.x-dev myD8 --stability dev --no-interaction it installs Latest version of drush is installed ...
0
votes
2answers
38 views

How can I force Composer to install a dev branch over a stable release?

I am experimenting with Bootstrap 3 in Drupal 8 and I want to stay on the dev branch of composer. In my composer.json, I wrote the following line based on Drupal Packagist:  "drupal/bootstrap": ...
0
votes
2answers
53 views

Why doesn't drush check for updates of dev versions of my modules installed by composer?

I am using Drush (8.0.3) on my Drupal 8 site (8.0.3) to check for updates, but Drush is not checking for updates of any modules that I checked out the dev branch for. $ drush @mysite ups ...
0
votes
0answers
42 views

How can I include a third party library in my custom module without using Composer Manager

I'm trying to create a custom Twitter Pull module in Drupal 8. I would like to include https://github.com/abraham/twitteroauth. I can't seem to get it working adding it via composer in the root ...
2
votes
2answers
188 views

How do I install dependencies for commerce using the Composer manager module

I installed the composer manager module and enabled it. I have tried initializing it from using drush in the command line and failed using the command drush composer-manager-init. I am confused on ...
0
votes
0answers
39 views

Problems with composer manager on windows

I'm trying to use the dev version of openlayers which requires composer mananger. I can successfully install the module, and the module creates a json file with my packages inside my ...
3
votes
1answer
29 views

What is the difference between drupal/drupal and drupal-composer/drupal-project packages?

I want to use composer with my future Drupal projects. I installed Composer on my machine and I noticed two packages (drupal/drupal and drupal-composer/drupal-project). When I install the second ...
6
votes
1answer
220 views

How do I update Drupal core on composer install? [duplicate]

I installed (or downloaded) drupal 8 via: composer create-project drupal/drupal my_site_name 8.0.* Which, at the time I ran it, downloaded Drupal 8.0.1. Now drupal 8.0.2 is available and I'd like ...
7
votes
1answer
116 views

Is there a good reason to prefer one method of installing over another?

Starting to play around with drupal 8. My first method of installing was installing drush8 (as mentioned in https://www.drupal.org/documentation/install/download): Get drush8: composer require ...
3
votes
1answer
157 views

How to add JavaScript or CSS library to Composer project?

For some cases, there is the need to add a JavaScript or CSS package to a project. One of those cases was the DropzoneJS package for the drupal/entity_browser. All recommendations I could read online ...
4
votes
1answer
102 views

Where should I download libraries for modules through composer?

I've started to use Drupal 8 and some modules requires some libraries. For example search api solr. When I'm installing these libraries via composer it downloads the libraries into directory of the ...
2
votes
0answers
194 views

Drupal 8: composer, git and update core and modules

I started working with Drupal 8 and try to find out the best way for developing and administrating projects. As Drupal 8 with all its dependencies is very big (more than 60 MB) I like the suggestion ...
2
votes
2answers
79 views

How to use composer for module dependency?

I installed Drupal 8, and for the Panels module, I had to install the following other modules manually: Page Manager Layout Chaos tools suite Can we use composer to install modules with their ...
0
votes
2answers
223 views

Unable to use Composer (for Drush) on Bluehost - install problem

I apparently successfully installed Composer (for use with Drush) on bluehost. See messages below. It does not work, however. When I type composer.phar I get nothing or "command not found" among other ...
0
votes
0answers
111 views

Install Drush error on bluehost

I am following instructions at https://www.drupal.org/node/2366283 to install Drush at bluehost.com using PuTTY. I'm stuck at the install composer step. I tried the curl -sS ...
1
vote
1answer
119 views

How to use composer for installation profile?

I have a Drupal 8 installation profile with custom modules and themes and I am wondering how should I use composer so that I can run it and drupal core and other dependencies(like contrib modules) ...
7
votes
2answers
546 views

What is the correct composer based core update workflow?

I want to use composer to manage Drupal 8 dependencies, but I'm not sure what is the right core update workflow. At the moment I'm using drush to update core to latest beta release, but I also have ...
0
votes
1answer
47 views

Drush not installing correctly

I'm attempting to install Drush on a new system OSX 10.10.4. The process is no longer the simple one it used to be :( I've complied with the requirement to install via Composer (that was not small ...
0
votes
3answers
251 views

How to check if library is present in vendor folder?

I have a form in which I am providing some options to users. But I want the options to appear in the form on the basis of presence of 3rd party libraries in vendor directory. I want something like ...
1
vote
1answer
415 views

D7, AmazonS3, composer_manager and awssdk libraries understanding

I have been struggling with the installation of amazonS3. Although I was finally able to have it working pretty well, I would like to confirm with experts my understanding of the problem, and check ...
2
votes
1answer
1k views

How to install drush 8 properly on Debian 8?

Finding hundreds of articles and documents about how to install drush and none of it explains where exactly and how properly I got a bit lost. I've got a Debian 8 system with a root user, NGinx and a ...
1
vote
1answer
364 views

How to resolve error “Failed to load MailChimp PHP library. Please refer to the installation requirements.”?

I'm try to set up Mailchimp module but i keep geeting Failed to load MailChimp PHP library. Please refer to the installation requirements. My steps: disable mailchimp module install ...
3
votes
4answers
2k views

Drush - No Drupal Site Found when clearing cache [duplicate]

I installed drush using composer following the instructions here: http://docs.drush.org/en/master/install/ When trying to run drush cc all I get this error: No Drupal site found, only 'drush' ...
4
votes
1answer
53 views

Can composer-dependent PHP libraries be used with the Libraries API?

I'm trying to include a PHP library called Geocod.io in my custom module. I am also trying to use the Libraries API. So far I have: Downloaded geocod.io to sites/all/libraries composer install'ed in ...
0
votes
1answer
185 views

How to include a PHP Framework / Library in my module?

I wanted to include PHPExcel.php in a testing module. So I put this file and the rest of the lib into: sites/all/libraries/phpexcel/ and I used this in my module: function mymod_libraries_info() { ...
6
votes
1answer
2k views

how to install package via composer?

I would like to add library to my drupal 7 custom module. Library can be installed via composer, but i can't find a solution for install? How can i install this library? I have installed "composer ...
3
votes
5answers
2k views

After installing composer: “The drush command X could not be found”

Edit: re-wrote intro paragraph to highlight the installation of composer - I suspect composer may have broken drush. I want to test out elastic search with D7. I used drush to install a fresh D7 ...
2
votes
1answer
105 views

New Drush install instructions use Composer for install, even on Drupal 7?

The current Github install instructions for drush (http://docs.drush.org/en/master/install/#git-clone-ie-manual-install) say as the last step: From Drush root, run Composer to fetch dependencies. ...
7
votes
1answer
5k views

How to uninstall drush via composer?

There is method of installing drush via composer: composer global require drush/drush:dev-master But how to uninstall it using composer?
3
votes
2answers
2k views

How to safely remove drush via pear and then install via composer?

I have drush 5 installed on my VPS running CentOS 6. Drush was installed using PEAR. Can I just remove the drush directory and the simlinks and then install drush 7 using composer? I have been ...
1
vote
2answers
632 views

How to install a specific version of drush? [closed]

How can I install the a specific version of Drush, for example 5.9.0?
1
vote
1answer
1k views

Drush installed globally via composer as root user, but how to access Drush with ordinary user?

By following the instructions on the Drush git page: composer global require drush/drush:6.* I have Drush up and running (it seems to live in /root/.composer/vendor/drush/drush). But I imagine I ...
2
votes
1answer
2k views

Why doesn't composer install drush on $HOME/bin directory?

I'm trying to learn to to use drush. I installed composer to my $HOME/bin/directory: $ ls ~/bin composer composer.phar subl sublime sublime_config.sh sublime_text Then tried to install ...
7
votes
3answers
8k views

Undefined error: 0 OR Unable to load autoload.php. Drush now requires Composer

I've installed drush in /usr/local/lib/drush/drush and composer in /usr/local/bin/composer. When I try to run drush /usr/local/lib/drush/drush I get the following: /usr/local/lib/drush/drush: ...
7
votes
1answer
735 views

How to manage contrib modules composer dependencies on drupal 8

Let's say I have a module exposing a composer.json file, composer manager let me merge it with others modules composer.json. In Drupal 8 composer.json are used from the core, so is it possible to ...
0
votes
0answers
23 views

composor manager stability setting

I am trying to install some packages using composer manager. My installation failed reflecting the following error: Potential causes: - A typo in the package name - The package is not available in ...
8
votes
3answers
921 views

Is it acceptable to modify Drupal's composer.json file?

Drupal adheres to the best-practice of never modifying core. Drupal 8 has a composer.json file built into core, if you need to add a third-party library, should you modify composer.json, or is there ...
0
votes
2answers
756 views

How do I compile Mustache.php to use with the Template Field module?

The Template Field module requires the Mastache Template Rendering Library. The Mustache Template Rendering Library can be found here. It must be installed at libraries/mustache/Mustache.php. ...