Download the PHP package webit-de/php-version-pickup without Composer

On this page you can find all versions of the php package webit-de/php-version-pickup. 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 php-version-pickup

PHP Version Pickup

Set a PHP version used in a shell session through a .php-version file.

Packagist Made With License

Vision

This tool is a small shell script to set the version of PHP used in a shell session, by reading the expected version number from a .php-version file.

This allows to handle multiple PHP versions in a local development environment and switch the version between projects on the fly. By pinning the version in a file it also allows team members to use same PHP version when working on a project.

The script is inspired by nvm use and php-version. The former is made for Node and does a lot more (build & install versions etc.). The letter works perfectly well with PHP, but does not want to store files nor support PHP versions installed by the OS package manager. That's why this script was created.

The file .php-version is already used by popular PHP packages like Symfony Server.

Key Features

Current limitations ✨ Feel free to send a PR to resolve them✨

Requirements

Installation

Source

https://github.com/webit-de/php-version-pickup/

Usage

The script reads the version from a file.

Create a version file in your project of choice

⚠ Right now only mayor PHP release numbers are allowed, which means something like 7.4 or 8.1 (not a specific version like 7.4.10).

Example to set PHP version 7.4 in a project:

(This is the same as running echo "7.4" > .php-version manually).

Pick up the version

Run php-version-pickup use in your directory to pick up the version number. You should see a message telling you that a file was found and which version is used in your shell session from now on.

Run php --version to check the version.

Now you can run PHP scripts, Composer, whatever with the set version.

🥏 Play around with the version file, open and close shells, run some PHP scripts and make yourself comfortable with this simple version picker.

Provide feedback

This script is a prototype and helped us in a very specific use case. Therefore, some limitations exists (see vision). Feel free to send some feedback or create a PR to enhance this script.

License

GNU General Public License version 2 or later

The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.

Author

Dan Untenzu (@pixelbrackets) for webit! Gesellschaft für neue Medien mbH (http://www.webit.de/)

Changelog

See CHANGELOG

Contribution

TYPO3 - inspiring people to share!

This package is Open Source, so please use, patch, extend or fork it.


All versions of php-version-pickup with dependencies

PHP Build Version
Package Version
No informations.
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 webit-de/php-version-pickup contains the following files

Loading the files please wait ....