• Stars
    star
    571
  • Rank 78,127 (Top 2 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 13 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Thin Wrapper around rbenv for PHP version managment

phpenv

![Gitter](https://badges.gitter.im/Join Chat.svg)

Sets up a separate rbenv environment for PHP

man page

SYNOPSIS

phpenv-install.sh
UPDATE=yes phpenv-install.sh

DESCRIPTION

The phpenv-install.sh command sets up a separate rbenv environment for usage with PHP. This environment is stored in the $HOME/.phpenv directory and contains a phpenv executable which sets the RBENV_ROOT environment variable to $HOME/.phpenv.

To install PHP versions, just put them to the $HOME/.phpenv/versions directory. You can use php-build to do this with one command:

$ php-build -i development 5.4.9 $HOME/.phpenv/versions/5.4.9
$ phpenv versions
  5.4.9
$ phpenv rehash
$ phpenv global 5.4.9
$ php --version
  PHP 5.4.9 (cli) (built: Nov 25 2012 17:27:10) 
  Copyright (c) 1997-2012 The PHP Group
  Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
      with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

The phpenv-install.sh command has an optional "update" mode which updates the $HOME/.phpenv to the latest source code from the rbenv repository and creates a new phpenv executable.

This mode is triggered by setting the UPDATE environment variable before calling phpenv-install.sh, for example:

$ UPDATE=yes phpenv-install.sh

Finally, enable phpenv in your shell by adding $HOME/.phpenv/bin and $HOME/.phpenv/shims to your PATH and adding eval "$(phpenv init -)" to your $HOME/.bash_profile or $HOME/.bashrc (or your shell's respective file) and restart your shell.

IMPORTANT NOTES

  • For rbenv users: Make sure that ~/.rbenv/bin takes precedence in the PATH over ~/.phpenv/bin by placing it before, so rbenv gets used from ~/.rbenv.

  • You need to have git installed to run the phpenv-install.sh command.

SEE ALSO

rbenv

More Repositories

1

heroku-buildpack-php

A more advanced PHP buildpack for Heroku, inspired by the Node.js buildpack
Shell
265
star
2

pipe

Put your assets into the pipe and smoke them.
PHP
122
star
3

bob

Hi I'm Bob! I'm a tiny and messy build tool for PHP projects
PHP
104
star
4

sirel

Builder and Dumper for SQL Abstract Syntax Trees
PHP
37
star
5

jekyll-prismic

Add Prismic.io content to your Jekyll site
Ruby
31
star
6

cache-service-provider

A Cache Service Provider for Silex, using the doctrine/cache package
PHP
23
star
7

stack-honeypot

Inserts a trap for spam bots into responses.
PHP
22
star
8

jazz

Turns nested arrays into HTML.
PHP
21
star
9

eventemitter

A simple EventEmitter implementation in Go, using channels and Goroutines.
Go
20
star
10

optparse

Another Command Line Argument Parser
PHP
19
star
11

frozen-silex

Proof of concept, Converts your Silex Application to a static site.
PHP
19
star
12

kue

Generic interface to job queues for PHP projects.
PHP
18
star
13

Trek

Assists you on your journey through the mountainous areas of Database Schema Managment.
Shell
10
star
14

SimplePhar

[UNMAINTAINED] Compiles your Project to a PHAR (PHP Archive)
PHP
10
star
15

commander

Easy calling of system commands for PHP.
PHP
9
star
16

pod

a simple web server interface for PHP web apps, inspired by Rack.
PHP
9
star
17

itertools

Give iterator operations some love.
PHP
7
star
18

Underscore.php

[UNMAINTAINED] Collection of Utility functions in the spirit of Underscore.js
JavaScript
6
star
19

einhorn

A simple utility belt for using PHP with Einhorn.
PHP
5
star
20

httpfetch

A library for simple HTTP requests (using RingPHP)
PHP
5
star
21

pipe-silex

Pipe Extension for Silex
PHP
4
star
22

meta-template

Templating solution with adapters to many engines.
PHP
4
star
23

spark-http-utils

MOVED: Utilities for stacking and composing applications implementing HttpKernelInterface
PHP
4
star
24

phin

A simple HTTP Server which connects to applications through a Rack-like Protocol
PHP
4
star
25

cheatsheets

Various cheatsheets for stuff I do
4
star
26

Simple-CMS

[UNMAINTAINED] A very simple CMS, just put text files in the pages directory and you're off to go! (no Database required, depends on Zend Framework and Spark Web Framework)
PHP
4
star
27

eventor

A sane interface to PHP's libevent extension.
PHP
3
star
28

onestroke-icons

[UNMAINTAINED] A very simple icon pack primarly for web applications
Shell
3
star
29

livesyncd

Simple, Fast, One-Way, Sync Daemon, using SFTP — similar to the "Auto-Deployment" feature present in most IDEs
Go
3
star
30

Spark2

[UNMAINTAINED] Eine DSL für PHP Web-Applikationen
PHP
2
star
31

php-styleguide

PHP Styleguide for contributions to my projects.
2
star
32

shellwords

A lame port of Ruby's Shellwords.rb
PHP
2
star
33

amadeus

A simple generator for truly static Composer repositories. Consider this a Proof of Concept.
PHP
2
star
34

Spark-Web-Framework

[DEAD] A simple Framework extending the Zend Framework.
PHP
2
star
35

CHH.github.io

Personal blog and website
HTML
2
star
36

ooio

Object oriented IO for PHP.
PHP
2
star
37

funk

Minimal functional programming library for PHP
PHP
2
star
38

weblife1auth

[UNMAINTAINED] Weblife1Auth provides an adapter for Zend_Auth for log on to the Weblife1 API
PHP
2
star
39

superfeedr-ping

Simple service which pings Superfeedr when a Github web hook was triggered
PHP
2
star
40

Concatenator.php

[UNMAINTAINED] A simple port of Sprockets (https://github.com/sstephenson/sprockets) to PHP
PHP
2
star
41

git-einsatz-ooe

Vue
1
star
42

yuribike

JavaScript
1
star
43

gridsome-source-rss

RSS source for gridsome
JavaScript
1
star
44

Project-Template

This is the Template for all my Projects. There are many like it, but this one is mine.
PHP
1
star
45

fileutils

Some file related utility functions and variations of internal functions which take callbacks.
PHP
1
star
46

fswatch

Run a command everytime a file changes
Go
1
star
47

dotfiles

My dotfiles.
Shell
1
star
48

netchan

Yields socket connections on a channel
Go
1
star
49

Szene1Api

[UNMAINTAINED] Sehr einfache Bibliothek zum Zugriff auf das SZENE1 API für PHP 5.3+
PHP
1
star
50

Spark2_Quickstart

[UNMAINTAINED] Ein Startpaket für neue Spark2 Applikationen
PHP
1
star