Download the PHP package eviweb/composer-wrapper without Composer

On this page you can find all versions of the php package eviweb/composer-wrapper. 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 composer-wrapper

Composer Wrapper

This project aims to provide a way to use composer from within a script, even if it is not installed.

Build Status

How to install :

You can choose between :

  1. clone this repo
  2. use composer by adding to the require section of your composer.json
  3. directly download the Wrapper.php
  4. dynamic install see below

How to use :

Include the wrapper

First, you need to include the wrapper into your code, according to the previous installation choice :

  1. add require_once 'PATH_TO_COMPOSER_WRAPPER_DIRECTORY/src/evidev/composer/Wrapper.php'; where _PATH_TO_COMPOSER_WRAPPERDIRECTORY is the path to the cloned repository
  2. add require 'vendor/autoload.php'; please refer to the Composer Documentation
  3. add require_once 'PATH_TO_COMPOSER_WRAPPER_FILE'; where _PATH_TO_COMPOSER_WRAPPERFILE is the path to the Wrapper.php file
  4. add

Use the wrapper

  1. for a command line use, simply add exit(\evidev\composer\Wrapper::create()->run()); to your executable script
  2. if you want to use it in the body of your script, and pass specific arguments to the Wrapper::run() method you need to do as the following :

where _COMPOSER_OPTION_OR_COMMAND_ASSTRING is a composer option or command

How it works

The Wrapper downloads the composer.phar file when created.
By default the composer.phar is downloaded in sys_get_temp_dir(), but you can specify a target directory by passing its path as a parameter of Wrapper::create().
If this parameter is an empty string or if the directory does not exist, sys_get_temp_dir() is used as fallback
In case of use of many instances of the Wrapper, created with different directories (which should never happened), the first downloaded composer.phar is used.


All versions of composer-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0 <7.5
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 eviweb/composer-wrapper contains the following files

Loading the files please wait ....