All Projects → asdf-community → asdf-php

asdf-community / asdf-php

Licence: Apache-2.0 license
PHP plugin for the asdf version manager

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to asdf-php

asdf-elm
elm version manager plugin for asdf.
Stars: ✭ 26 (-83.65%)
Mutual labels:  asdf, asdf-plugin
asdf-deno
Deno plugin for the asdf version manager
Stars: ✭ 71 (-55.35%)
Mutual labels:  asdf, asdf-plugin
asdf-ocaml
OCaml plugin for the asdf version manager
Stars: ✭ 20 (-87.42%)
Mutual labels:  asdf, asdf-plugin
asdf-gleam
Gleam plugin for the asdf version manager
Stars: ✭ 22 (-86.16%)
Mutual labels:  asdf, asdf-plugin
asdf-gcloud
☁️ GCloud CLI (Google Cloud SDK) plugin for asdf version manager. Pin gcloud versions for each project!
Stars: ✭ 24 (-84.91%)
Mutual labels:  asdf, asdf-plugin
asdf-poetry
Poetry plugin for the asdf version manager
Stars: ✭ 23 (-85.53%)
Mutual labels:  asdf, asdf-plugin
asdf-crystal
Crystal plugin for the asdf version manager
Stars: ✭ 60 (-62.26%)
Mutual labels:  asdf, asdf-plugin
asdf-elm
Elm plugin for the asdf version manager
Stars: ✭ 18 (-88.68%)
Mutual labels:  asdf, asdf-plugin
asdf-haxe
Haxe plugin for the asdf version manager
Stars: ✭ 13 (-91.82%)
Mutual labels:  asdf, asdf-plugin
asdf-yarn
asdf plugin for Yarn.
Stars: ✭ 111 (-30.19%)
Mutual labels:  asdf, asdf-plugin
asdf-flutter
Flutter plugin for the asdf version manager
Stars: ✭ 68 (-57.23%)
Mutual labels:  asdf, asdf-plugin
ansible-role-asdf
No description or website provided.
Stars: ✭ 45 (-71.7%)
Mutual labels:  asdf
dotfiles
My dotfiles
Stars: ✭ 22 (-86.16%)
Mutual labels:  asdf
dotfiles
This is what I use to get things done!
Stars: ✭ 59 (-62.89%)
Mutual labels:  asdf
dotfiles
🗿 dotfilery, configuration, environment settings, automation, etc. 🛖
Stars: ✭ 67 (-57.86%)
Mutual labels:  asdf
dotfiles
Dotfiles. Mac and *nix. Handy scripts, configurations for bash, zsh, git, asdf, Sublime Text, Karabiner-Elements, BetterTouchTool and more.
Stars: ✭ 15 (-90.57%)
Mutual labels:  asdf
workbench
A hierarchical environment manager for bash, written in bash.
Stars: ✭ 17 (-89.31%)
Mutual labels:  asdf

asdf-php

PHP plugin for asdf version manager

Original version of this plugin created by @Stratus3D

Build History

Build history

Prerequirements

Check the .github/workflows/workflow.yml for dependencies, paths, and environment variables needed to install the latest PHP version. To be honest, supporting a major version other than the latest without any extra work from the user is an endless endeavor that won't ever really work too well. It's not that we don't support them at all, but it's almost impossible for us to support them.

Installation

asdf plugin-add php https://github.com/asdf-community/asdf-php.git

Note

Composer is installed globally alongside PHP by default. If your application requires additional php extensions, you may need to install them via pecl. For example:

pecl install redis
pecl install imagick

echo "extension=redis.so
extension=imagick.so" > $(asdf where php)/conf.d/php.ini

macOS

To install PHP on macOS, you'll need a set of packages installed via homebrew.

There's also a set of optional packages which enable additional extensions to be enabled:

brew install gmp libsodium imagemagick

Note that the supported extension are not exhaustive, so you may need edit the bin/install script to support additional extension. Feel free to submit a PR for any missing extensions.

PHP-PEAR

If PHP PEAR is down you can install PHP without PEAR. Specify PHP_WITHOUT_PEAR variable with any value (except no), eg:

PHP_WITHOUT_PEAR=yes asdf install php <version>

Usage

Check asdf readme for instructions on how to install & manage versions.

Global Composer Dependencies

Composer is installed globally by default. To use it, you'll need to reshim:

composer global require friendsofphp/php-cs-fixer
asdf reshim
php-cs-fixer --version

License

Licensed under the Apache License, Version 2.0.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].