Download the PHP package rawdreeg/phpswitcher without Composer

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

PHP Switcher

A simple CLI tool to manage multiple PHP versions on macOS using Homebrew. (Currently only supports macOS with Homebrew. Linux/Windows support is planned).

Features

Prerequisites

Installation (Recommended)

Run the following command in your terminal to download and execute the installation script:

Follow any prompts from the script. You may need to enter your password for sudo commands if installing to a system-wide directory like /usr/local/bin.

After installation, open a new terminal session or run source ~/.zshrc (or the equivalent for your shell, like source ~/.bash_profile) and verify with:

Installation from Source (for Development)

  1. Clone the repository: git clone https://github.com/rawdreeg/phpswitcher.git
  2. Navigate into the project directory: cd phpswitcher.
  3. Run the local setup script: bash install.sh. Note: Running the script locally like this is intended for development. It checks dependencies and builds the PHAR in the bin/ directory.
  4. Test commands using the locally built executable: ./bin/phpswitcher install 8.2.

Usage

(Currently supports macOS/Homebrew only)

Install a PHP version:

Similar to the use command, if you are in a directory containing a composer.json file with a PHP requirement, you can omit the <version> argument to automatically detect and install the required X.Y version.

Switch active PHP version:

If you are in a directory containing a composer.json file with a PHP requirement (require.php or config.platform.php), you can omit the <version> argument, and phpswitcher will attempt to detect and use the appropriate X.Y version.

Check active PHP version (after switching):

Development

  1. Clone the repository.
  2. Navigate into the project directory: cd phpswitcher.
  3. Install dependencies: composer install.
  4. Run the setup script (this installs dependencies including Homebrew if missing): bash install.sh.
  5. Run commands directly using the local executable: ./bin/phpswitcher install 8.2.

Contributing

Contributions are welcome! Please feel free to open issues or submit pull requests.

License

MIT License


All versions of phpswitcher with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
symfony/console Version ^6.0|^7.0
symfony/process Version ^6.0|^7.0
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 rawdreeg/phpswitcher contains the following files

Loading the files please wait ....