PHPackages                             sonnguyen/swap-php-version - 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. sonnguyen/swap-php-version

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sonnguyen/swap-php-version
==========================

Swap PHP version support all version

1.0.0(3y ago)15MITShell

Since Aug 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SonNguyen1609/swap-php-version)[ Packagist](https://packagist.org/packages/sonnguyen/swap-php-version)[ RSS](/packages/sonnguyen-swap-php-version/feed)WikiDiscussions main Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

 [ ![Son Nguyen](https://avatars.githubusercontent.com/u/111854079?v=4) ](https://magento.com)
##### contact

[](#contact)

 [ ![Facebook](https://camo.githubusercontent.com/46f02647990a82f0835e7492876615b43d87dee00043510aa5002c8ffeb9883e/68747470733a2f2f696d672e69636f6e73382e636f6d2f6e6f6c616e2f3334342f66616365626f6f6b2d6e65772e706e67) ](https://www.facebook.com/s1609) [ ![Facebook](https://camo.githubusercontent.com/f70833eeef48eb549068e1f2494bc5da3c0c5dff9f8c5e5787eefd60faf3fbd5/68747470733a2f2f696d672e69636f6e73382e636f6d2f636f6c6f722f3334342f747769747465722d2d76312e706e67) ](https://twitter.com/sonnguyen1609)

[Swap PHP Version](https://packagist.org/packages/sonnguyen/swap-php-version) by Son Nguyen
===========================================================================================

[](#swap-php-version-by-son-nguyen)

Guide Install
-------------

[](#guide-install)

```
composer require sonnguyen/swap-php-version
cd vendor/sonnguyen/swap-php-version
sudo cp swap.sh /usr/local/bin/
sudo chmod 777 /usr/local/bin/swap.sh

```

Run
---

[](#run)

```
swap.sh

```

It will show "Please select PHP version: "
Then you can enter the version you want to change

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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

Unknown

Total

1

Last Release

1352d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3b798eafc98103baae40d405a0fd0daa49054db8e4397c715d23bcbb65208fd?d=identicon)[sonnguyenhong](/maintainers/sonnguyenhong)

---

Top Contributors

[![SonNguyen1609](https://avatars.githubusercontent.com/u/111854079?v=4)](https://github.com/SonNguyen1609 "SonNguyen1609 (5 commits)")[![sonnguyenwiki](https://avatars.githubusercontent.com/u/77257713?v=4)](https://github.com/sonnguyenwiki "sonnguyenwiki (1 commits)")

### Embed Badge

![Health badge](/badges/sonnguyen-swap-php-version/health.svg)

```
[![Health](https://phpackages.com/badges/sonnguyen-swap-php-version/health.svg)](https://phpackages.com/packages/sonnguyen-swap-php-version)
```

PHPackages © 2026

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