> For the complete documentation index, see [llms.txt](https://docs.varbase.vardot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.varbase.vardot.com/10.0.x/developers/varbase-libraries/the-composer-method-deprecated.md).

# The Composer Method (Deprecated)

List of needed libraries for Varbase used packages with Composer.

Moving to have a better and more dynamic way of managing `drupal-library` packages as libraries.

***

Use `"vardot/varbase-libraries": "~10.0.0"`

> with **Varbase `~10.0.0`** and **Drupal `~10`**

***

#### Managing Only Local Libraries in Projects <a href="#managing-only-local-libraries-in-projects" id="managing-only-local-libraries-in-projects"></a>

In case of needing to manage project's local libraries only.

* Moving to a better drupal libraries management with Varbase
* As a step to remove the use of **asset-packagist.org** in Varbase

***

NO libraries **for Varbase \~10.0.0**

> With **Drupal 10/11** : Use the `"vardot/varbase-libraries": "10.0.0.0"` static version to have no libraries and manage local libraries in the project with a copy of libraries from <https://github.com/Vardot/varbase-libraries/blob/10.0.x/composer.json> or NPM/YARN

***

#### Advanced: Merge `composer.libraries.json` from `vardot/varbase-libraries` in `vendor/` <a href="#advanced-merge-composer.libraries.json-from-vardot-varbase-libraries-in-vendor" id="advanced-merge-composer.libraries.json-from-vardot-varbase-libraries-in-vendor"></a>

For projects that want full control over which libraries are included, without relying on `asset-packagist.org`, you can merge the libraries directly from the `vardot/varbase-libraries` package using [`wikimedia/composer-merge-plugin`](https://github.com/wikimedia/composer-merge-plugin).

**Setup Steps**

1. **Install the merge plugin:**

```bash
composer require wikimedia/composer-merge-plugin:~2
```

2. **Add merge configuration to your root `composer.json`**

<pre class="language-json"><code class="lang-json"><strong>"extra": {
</strong>  "merge-plugin": {
    "include": [
      "vendor/vardot/varbase-libraries/composer.libraries.json"
    ],
    "recurse": true,
    "replace": false,
    "merge-dev": false
  }
}
</code></pre>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/10.0.x/developers/varbase-libraries/the-composer-method-deprecated.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
