Download the PHP package drupalwxt/wxt-project without Composer

On this page you can find all versions of the php package drupalwxt/wxt-project. 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 wxt-project

Composer Project template for Drupal

Build Status

An composer project template generator for the Drupal WxT distribution.

Note: Please consult the README.md file in the Drupal WxT repository for up-to-date information.

Requirements

Dependencies

The composer.json file calls the following dependencies:

The Drupal WxT distribution is a web content management system which assists in building and maintaining innovative Web sites that are accessible, usable, and interoperable.

This distribution is open source software and free for use by departments and external Web communities. This distribution integrates extensively with the WET-BOEW jQuery Framework for improved accessible markup.

Get Started

The following command is all you need to get started:

Note: For development you may also specify a branch using drupalwxt/wxt-project:5.4.x-dev.

You can see a working example of a fully generated Composer Project Template over at:

Where the following is the command that was used for the initial generation:

Note: Remember to keep the composer.json and composer.lock files that exist above docroot in source control as they are controlling your dependencies.

Maintenance

List of common commands are as follows:

Task Composer
Installing a contrib project (latest version) composer require drupal/PROJECT
Installing a contrib project (specific version) composer require drupal/PROJECT:1.0.0-beta5
Updating all projects including Drupal Core composer update
Updating a single contrib project composer update drupal/PROJECT_NAME
Updating Drupal Core composer update drupal/core

Note: Composer is a dependency manager and helps us keep track of what code and at what version our application relies on so that it always get installed the right way on every copy of that application.

Specifying a version

A specific version can be specified from the cli:

However please note if you specify a branch, such as 1.x you must add -dev to the end of the version:

Source Control

Taking a look at the .gitignore file, you will discover that certain directories, including all those directories containing contributed projects, are excluded from source control which is by design.

Note: Unlike Drush in a Composer derived project you should never commit your install dependencies to source control.

Composer will create composer.lock file, which is a list of dependencies that were installed, and in which versions.

Note: In general you should always commit your composer.lock file to source control so that others via a quick composer install can have everything installed along with the correct versions specified in the composer.lock file.

How to update Drupal Core?

Please don't add drupal/core to your project's composer.json since WxT manages Drupal Core for you along with the series of patches on top of it.

WxT's minor versions will always correspond to Drupal Core's. For example, drupalwxt/wxt:~4.2.0 will require Drupal Core 9.2.x and drupalwxt/wxt:~4.1.0 will require Drupal Core 9.1.x.

When you need to update Drupal Core as an example from 9.1.x to 9.2.x, all you would do is change your requirement for drupalwxt/wxt in your composer.json file:

Compatibility table

drupalwxt/wxt version Drupal Core version Drush version
~4.2.0 9.2.x >=9.7
~4.1.0 9.1.x >=9.7
~4.0.0 8.8.x+ >=9.7

Acknowledgements

Extended with code and lessons learned by the Acquia Team over at Lightning and BLT.


All versions of wxt-project with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^2.1
cweagans/composer-patches Version ^1.7
drupal/core-composer-scaffold Version 10.4.x
drupalwxt/wxt Version 5.4.x-dev
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 drupalwxt/wxt-project contains the following files

Loading the files please wait ....