Download the PHP package sweetchuck/composer-suite without Composer

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

Composer Suites

CircleCI codecov

Generates multiple variations of the original composer.json

  1. You have to define the differences in the composer.json#/extra/composer-suite, see the examples below.
  2. Next step is to generate the alternative composer.json files by running the following command: \ composer -vv suite:generate
  3. Activate one of the alternative composer.json file by setting the COMPOSER environment variable.
    1. export COMPOSER='composer.my-suite-01.json'
    2. composer update --lock

Other benefit is that, if there is any relative path in the composer.json – for example under the #/repositories/FOO/url or anywhere under the #/extra – then those paths will work with the alternative composer.*.json files as well.

Example composer.json - multi-version dependency

Run: composer suite:generate \ The generated files: \ composer.symfony4.json

composer.symfony5.json

Then

Example composer.json - local development

Use case

A certain third-party service has to be integrated into a framework.

Composer packages:

Run: composer suite:generate \ The generated file: \ composer.local.json

Then

Suites

You can have as many suites as many you want.

As the examples above show that, suites can be defined in the composer.json#/extra/composer-suite, but suite definitions can be stored in external files as well. \ ./.composer-suite/composer-suite.*.json. Then it is up to you if these files will be tracked by the VCS or not.

Example ./.composer-suite/composer-suite.foo.json:

The name key is optional. If it is omitted then, the suite name will be parsed from the file name.

If two suites have the same name, then the one which comes from external file, has the highest priority.

Actions

You can define different array manipulation actions under the extra/composer-suite/<suite-id> keys.

An action has two main properties:

Action - replaceRecursive

Official PHP documentation: array_replace_recursive()

Result:

Action - unset

Removes the specified elements.

Result:

In the "config.parents" array the last item can be an array:

Result:

Action - prepend

Adds new elements at the beginning of an array.

Result:

Action - append

Adds new elements at the end of an array.

Action - insertBefore

Insert one or more "items". The last item in the "parents" is the reference point.

Action - insertAfter

Insert one or more "items". The last item in the "parents" is the reference point.

Commands

This Composer plugin defines the following commands:

Validate

You can check the status of the autogenerated files by running the official COMPOSER='composer.json' composer validate command. \ If one of the autogenerated file is exists AND out-of-date, then the exit code will be other than 0. \ This command does not report any problem about the missing composer.*.json files.

Links

  1. COMPOSER environment variable

Other

  1. "$(composer config bin-dir)/codecept" _completion --generate-hook --program codecept | source /dev/stdin


All versions of composer-suite with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
composer-plugin-api Version ^2.0
sweetchuck/composer-suite-handler Version ^1.0
symfony/filesystem Version ^4.4 || ^5.4 || ^6.0
symfony/finder Version ^4.4 || ^5.0 || ^6.0
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 sweetchuck/composer-suite contains the following files

Loading the files please wait ....