npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sr_logan/php-ver-manager

v2.0.0

Published

A hark fork of ![jalendport/switch-php](https://github.com/jalendport/switch-php/blob/master/LICENSE.md) which aims to continue supporting new PHP versions and fixing any stability issues. Easily maintain and switch between PHP versions on your Mac. Requi

Downloads

2

Readme

php-ver-manager

A hark fork of jalendport/switch-php which aims to continue supporting new PHP versions and fixing any stability issues.

Easily maintain and switch between PHP versions on your Mac. Requires Homebrew and works with Laravel Valet.

Installation:

Installing php-ver-manager is as easy as running:

npm install --global php-ver-manager

If you use Yarn, you can do this:

yarn global add php-ver-manager

Alternatively you can move the php-ver-manager.sh file from this repo into your home directory and add this line in your .bashrc/.zshrc/etc.:

source ~/php-ver-manager.sh

Usage:

You must have PHP installed via Homebrew in order for php-ver-manager to work. php-ver-manager also works really well with Laravel Valet, but Valet is not a requirement in order to use php-ver-manager.

Here's an example of how you would use php-ver-manager:

$ php-ver-manager 7.1 -v -m 512M
  1. php-ver-manager -> The main command. (Required)
  2. 7.1 -> Specify the version of PHP you want to switch too, in this case php71. (Required)
  3. -v -> Request verbose output (Optional)
  4. -m 512M -> Request a custom PHP memory setting. If you don't pass an additional arugment, the memory will be reset to the Valet default. (Optional)

Here's the full list of versions/options:

Usage:
  version [options] [arguments]

Options:
  -h, --help      Display the help message
  -v, --verbose   Display more info during the process
  -m, --memory    Customize the PHP memory setting (Valet only)

Available Versions:
  5.6              Switch to [email protected]
  7.0              Switch to [email protected]
  7.1              Switch to [email protected]
  7.2              Switch to [email protected]
  7.3              Switch to [email protected]
  7.4              Switch to [email protected]
  8.0              Switch to [email protected]

Customizing the PHP Memory Settings:

  • If you don't pass an argument to -m or --memory, it will reset any previously set custom memory settings to the default Valet config.
  • Alternatively, you can pass an argument to -m or --memory if you want to override the default Valet memory settings. For example, you can do:
php-ver-manager 7.1 -m 512M       # [email protected] with 512MB of memory
php-ver-manager 7.3 -m 2G -v      # [email protected] with 2GB of memory; verbose output
php-ver-manager 5.6 --memory=1G   # [email protected] with 1GB of memory
  • Note: customizing PHP memory settings currently only works for Laravel Valet users. If you don't use Valet, we hope to get this working for you as well in an upcoming release.