Download the PHP package jackiedo/xampp-php-switcher without Composer

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

Xampp PHP Switcher

Use and switch between different versions of PHP for Xampp on Windows OS.

Xampp-PHP-Switcher

Xampp is an easy to install Apache distribution containing MariaDB, PHP, and Perl. It has been around for more than 10 years – there is a huge community behind it. Currently, there are many other applications launched with more advantages. However, many people still love Xampp because of its ease of use. The problem is that quite a lot of people have not exploited the full power of Xampp.

Therefore, I have created 2 separate projects to take full advantage of what Xampp has to add to the features that many people desire to have in Xampp:

With this project, using and switching between different PHP versions for Xampp became easy. This will be useful for those who want to ensure their applications work smoothly on different PHP platforms or those who are researching PHP programming.

Note: Currently this project only supports Windows users.

Features of this project

Overview

Look at one of the following topics to learn more about Xampp PHP Switcher.

Compatibility

Requirement

Xampp PHP Switcher takes full advantage of what's included in Xampp, nothing more needed. So, you just need following things:

Note: See here to know how to add Windows Path Environment Variable.

Installation

There are two installation methods, via Composer or manual download. It is recommended to use the method via Composer if you already have it installed.

Via Composer Create-Project

Via Manual Download

Note: See here to know how to to open the command prompt as Administrator.

Updation

Currently, Xampp PHP Switcher does not have an automatic update mechanism, we have to do it manually step by step as follows:

Add other PHP versions to your Xampp

Important notes

After successfully installing Xampp PHP Switcher, by default you will have a built-in PHP version of your Xampp. In order to use other versions of PHP, we will proceed to add those builds to the repository. This will also be easily done. But you need to keep in mind the following requirements:

Step by step process of adding build

Check architectural information of the current build

Execute the following command:

View the information in Architecture section and remember it.

Download compatible PHP builds

Compatible items to download

Compatible items to download

Add recent downloaded PHP build

Execute the xphp add command:

or more simply with the second syntax:

And then provide the link above when requested.

Note: If you use the first syntax, you should put the path in the double quotes (") to avoid the errors of the effect of whitespaces.

And now we have many different versions of PHP to use. We can switch between versions with the xphp switch command.

Behind the process of adding PHP build

When we use the xphp add command, Xampp PHP Switcher will do the following:

Update the process of adding PHP builds in the future

The process of standardize paths is done based on a file named "need_standardize.lst" located in the "src" folder of project directory. Currently, this file has supported the path standardization for PHP builds from versions 5.4 (Xampp 1.8.3) to 8.0 (Xampp 8.0.x).

Every time a new version of Xampp is released, this file will be checked and updated. You only need to copy the whole new content of this file and overwrite your existing file in your Xampp PHP Switcher directory. Or you proceed to update Xampp PHP Switcher according to the instructions here.

Usage

Because of a path to the Xampp PHP Switcher application directory has been added to the Windows Path Environment Variables during the installation process, now you can just open the terminal (no need to open in Administrator mode anymore) anywhere and excute one of the following xphp commands:

Display the help message

Syntax:

Display information of current PHP version

Syntax:

Display information of existing PHP version in repository

Syntax:

Example:

Note: The VERSION parameter is optional. If you do not pass it to the command statement, you will also be asked to enter this information later.

List all existing PHP versions in repository

Syntax:

Remove an existing PHP version outof repository

Syntax:

Example:

Add one PHP version to repository

Syntax:

Example:

Switch to specific PHP version to use

Syntax:

Example:

The file php.ini editing

Once you have added the various PHP versions to your Xampp, they will be put in a repository located in a directory named "phpRepository" located in your Xampp directory. And they will have separate "php.ini" configuration files. If you need to edit the configuration for PHP, you must edit each "php.ini" file for each corresponding version in the repository.

License

MIT © Jackie Do


All versions of xampp-php-switcher with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
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 jackiedo/xampp-php-switcher contains the following files

Loading the files please wait ....