PHPackages                             ossobuffo/switch\_to\_minimal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ossobuffo/switch\_to\_minimal

ActiveDrupal-drush[Utility &amp; Helpers](/categories/utility)

ossobuffo/switch\_to\_minimal
=============================

Drush hook to switch Drupal install profile to whatever profile is configured in core.extension.yml.

v0.0.4(1y ago)03GPL-2.0-or-laterPHPPHP &gt;=8.3.0

Since Jun 26Pushed 1y agoCompare

[ Source](https://github.com/ossobuffo/switch-to-minimal)[ Packagist](https://packagist.org/packages/ossobuffo/switch_to_minimal)[ Docs](https://github.com/ossobuffo/switch-to-minimal)[ RSS](/packages/ossobuffo-switch-to-minimal/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Drush switch\_to\_minimal
=========================

[](#drush-switch_to_minimal)

This command file adds a pre-command hook to the `config:import` command, which ensures that the install profile is set to whatever is defined in `core.extension.yml`. If the current profile is not the same as that profile, the install profile is changed. This hook will run **EVERY TIME**`drush config:import` is invoked, including when it is run as a subprocess of `drush deploy`. It is perfectly harmless to keep this code around after you switch profiles; it will simply bail, with the message “Current profile is already \[profile-name\]” if you run it with the `--verbose` option.

If `core.extension.yml` cannot be found, this command will fall back to the `minimal` profile.

This package also provides the command `switch-profile` which will perform the profile switch without invoking `drush config:import`.

The command file will be installed in `${PROJECT_ROOT}/drush/Commands/contrib/switch_to_minimal`.

How do I install it?
--------------------

[](#how-do-i-install-it)

Just invoke the following in your project:

```
composer require ossobuffo/switch_to_minimal

```

Why would I need this?
----------------------

[](#why-would-i-need-this)

This is designed to help move projects away from abandoned or deprecated contrib or custom profiles. If your automated deployment process is to push code and then run `drush deploy`, this should seamlessly integrate with that workflow.

Why is it named “switch\_to\_minimal” when it is actually switching to some other profile name?
-----------------------------------------------------------------------------------------------

[](#why-is-it-named-switch_to_minimal-when-it-is-actually-switching-to-some-other-profile-name)

The very first iterations of this command package had the `minimal` profile hardcoded.

Caveats
-------

[](#caveats)

If the profile you are moving away from includes contrib modules or libraries in its `composer.json`, you should make sure that they are now pulled in by your current main `composer.json`.

This could quite possibly work with older versions of Drush than advertised in the `composer.json` file. I have not tested, and do not consider it worth my while to do so.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance49

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

371d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e458bda52737ec3f7a31b3f695cd73e66baf762fd2d4d0854d6570823a19128?d=identicon)[ossobuffo](/maintainers/ossobuffo)

---

Top Contributors

[![ossobuffo](https://avatars.githubusercontent.com/u/1753478?v=4)](https://github.com/ossobuffo "ossobuffo (5 commits)")

### Embed Badge

![Health badge](/badges/ossobuffo-switch-to-minimal/health.svg)

```
[![Health](https://phpackages.com/badges/ossobuffo-switch-to-minimal/health.svg)](https://phpackages.com/packages/ossobuffo-switch-to-minimal)
```

###  Alternatives

[farmos/farmos

A web-based farm record keeping application.

1.3k7.1k1](/packages/farmos-farmos)[lullabot/drainpipe

An automated build tool to allow projects to have a set standardized operations scripts.

43785.5k4](/packages/lullabot-drainpipe)[vardot/varbase-project

Project template for Varbase distribution.

5362.5k](/packages/vardot-varbase-project)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
