2017 © Pedro Peláez
 

project composer-archive-creator

Create archives of a composer.json for latter use in order to speed up install process

image

sonata-project/composer-archive-creator

Create archives of a composer.json for latter use in order to speed up install process

  • Thursday, November 7, 2013
  • by webeith
  • Repository
  • 3 Watchers
  • 11 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Composer Archive Creator

The idea of this project is to create a ready to use archive from a git repository using composer., (*1)

Features

  • Neutral install (no errors possible due to local changes)
  • Download git repository
  • Fetch project's dependencies
  • Create archives with or without VCS files
  • Log
  • Alerting on fealure
  • Start unit tests on each dependency
  • Generate a global JUnit.xml file for all tests
  • Generate API documentation (using Sami)

Usages

Create standard archives

php bin/composer-archiver package sonata-sandbox-v1.0.0 git@github.com:sonata-project/sandbox.git test

This will create 2 archives :, (*2)

  • sonata-sandbox-v1.0.0.zip : this will contains all files in a zip archive without vcs files
  • sonata-sandbox-v1.0.0.tar.gz : this will contains all files in a tarball archive without vcs files

Create standard archives including VCS files

php bin/composer-archiver package sonata-sandbox-v1.0.0 git@github.com:sonata-project/sandbox.git test --vcs

This will create 4 archives :, (*3)

  • sonata-sandbox-v1.0.0.zip : this will contains all files in a zip archive without vcs files
  • sonata-sandbox-v1.0.0_vcs.zip : this will contains all files in a zip archive with vcs files
  • sonata-sandbox-v1.0.0.tar.gz : this will contains all files in a tarball archive without vcs files
  • sonata-sandbox-v1.0.0_vcs.tar.gz : this will contains all files in a tarball archive with vcs files

Create standard archives including only VCS files

php bin/composer-archiver package sonata-sandbox-v1.0.0 git@github.com:sonata-project/sandbox.git test --only-vcs

This will create 2 archives :, (*4)

  • sonata-sandbox-v1.0.0_vcs.zip : this will contains all files in a zip archive with vcs files
  • sonata-sandbox-v1.0.0_vcs.tar.gz : this will contains all files in a tarball archive with vcs files

Create zip archive with only VCS files

php bin/composer-archiver package sonata-sandbox-v1.0.0 git@github.com:sonata-project/sandbox.git test --reuse --only-vcs --format=zip

This will create 1 archive :, (*5)

  • sonata-sandbox-v1.0.0_git.zip : this will contains all files in a zip archive with vcs files

Use cases

  • create archive for client delivery
  • create archive to be download from a website

The Versions