https://github.com/haehnchen/drupal-packagist
Provides a Composer packagist page for Drupal projects
https://github.com/haehnchen/drupal-packagist
Last synced: 5 months ago
JSON representation
Provides a Composer packagist page for Drupal projects
- Host: GitHub
- URL: https://github.com/haehnchen/drupal-packagist
- Owner: Haehnchen
- Created: 2013-01-12T08:34:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-12T09:46:25.000Z (over 12 years ago)
- Last Synced: 2025-04-08T14:45:43.810Z (6 months ago)
- Language: PHP
- Homepage:
- Size: 120 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# drupal-packagist
Provides a composer packagist page for Drupal projects, so that every module, theme is installable on composer.
- Only proof-of-concept!
- Currently only the common projects are in, for not bothering updates.drupal.org
- Versions: 6x, 7x, 8x
- http://drugist.espend.de/packages.json## composer.json
Just add the following lines to you composer.json and your done
```
"repositories": [
{
"type": "composer",
"url": "http://drugist.espend.de"
}
],
```## Examples
```
composer.phar show drupal/views
name : drupal/views
descrip. :
keywords :
versions : 8.3-dev, * 7.3.5, 7.3.4, 7.3.3, ...
type : drupal-module
license :
source : []
dist : [tar] http://ftp.drupal.org/fil ...
names : drupal/views
```composer.json with version
```
{
"repositories": [
{
"type": "composer",
"url": "http://drugist.espend.de"
}
],
"require": {
"drupal/views": "7.*",
"drupal/ctools": "7.*",
"drupal/zen": "7.5.*"
}
}
```composer.phar update -v
```
Loading composer repositories with package information
Updating dependencies
- Installing drupal/zen (7.5.1)
Loading from cache
Unpacking archive
Cleaning up
153 Datei(en) kopiert
100 Datei(en) kopiert
2 Datei(en) kopiert
13 Datei(en) kopiert
31 Datei(en) kopiertWriting lock file
Generating autoload files
```## Own Server: Symfony2
Just install a Symfony2; add lines to composer.json and change add routing for this bundle
```
"repositories": [
{
"type": "vcs",
"url": "git://github.com/Haehnchen/drupal-packagist.git"
}
],"require": {
"composer/composer": "1.0.*@dev",
"kriswallsmith/buzz":"dev-master",
"espend/drupal-packagist": "dev-master"
},
```run command for generate packages
```
app/console espend:drupal:packagist:generator
```