Advertisement
asanchez75

composer

Mar 4th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. a) Use this to remove a package from composer dependencies
  2.  
  3. composer remove asanchez75/phpflickr
  4.  
  5. b) Use this to add the following line
  6.  
  7. "require": {
  8. "Jeroen-G/Flickr": "^1.0"
  9. }
  10.  
  11. to the composer.json
  12.  
  13. composer require Jeroen-G/Flickr
  14.  
  15. c) Use this command to update your composer dependencies
  16.  
  17. composer update
  18.  
  19. ###########################################################################
  20.  
  21. {
  22. "name": "drupal/flickrgallery",
  23. "type": "drupal-module",
  24. "description": "My Awesome Module",
  25. "keywords": ["Drupal"],
  26. "license": "GPL-2.0+",
  27. "homepage": "https://www.drupal.org/project/flickrgallery",
  28. "minimum-stability": "dev",
  29. "support": {
  30. "issues": "http://drupal.org/project/issues/flickrgallery",
  31. "source": "http://cgit.drupalcode.org/flickrgallery"
  32. },
  33. "repositories": [
  34. {
  35. "type": "vcs",
  36. "url": "https://github.com/Jeroen-G/Flickr"
  37. }
  38. ],
  39. "require": {
  40. "Jeroen-G/Flickr": "^1.0"
  41. }
  42. }
  43.  
  44. ###########################################################################
  45.  
  46. If you want, you can add your github repo to packagist.org.
  47. If you do not want, add this lines to your composer.json
  48.  
  49. "repositories": [
  50. {
  51. "type": "vcs",
  52. "url": "https://github.com/Jeroen-G/Flickr"
  53. }
  54. ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement