Upgrade to Pro — share decks privately, control downloads, hide ads and more …

PHPBrew

Yo-An Lin
November 12, 2013

 PHPBrew

Managing different PHP environment with PHPBrew.

Yo-An Lin

November 12, 2013
Tweet

More Decks by Yo-An Lin

Other Decks in Programming

Transcript

  1. Multiple PHP
    version
    management?

    View full-size slide

  2. Use PHPBREW!

    View full-size slide

  3. It’s on GitHub

    View full-size slide

  4. https://github.com/c

    View full-size slide

  5. 16 Contributors

    View full-size slide

  6. Get PHPBrew
    curl -O https://raw.github.com/c9s/phpbrew/master/phpbrew
    chmod +x phpbrew
    sudo cp phpbrew /usr/bin/phpbrew
    01.
    02.
    03.
    10

    View full-size slide

  7. List Known PHP(s)
    phpbrew known
    11

    View full-size slide

  8. Get Your Own PHP
    phpbrew install php-5.5.4
    12

    View full-size slide

  9. Plus Variants
    phpbrew install php-5.5.4 +dbs +default
    13

    View full-size slide

  10. Extra configure options
    phpbrew install php-5.5.4 +dbs +default -- --with-png-dir=/opt/l
    14

    View full-size slide

  11. Switch php
    phpbrew use php-5.5.4
    15

    View full-size slide

  12. List Installed PHP(s)
    phpbrew list
    Installed versions:
    php-5.4.12 (/Users/c9s/.phpbrew/php/php-5.4.12)
    +pdo+mysql+pgsql=/opt/local/lib/postgresql92 +
    php-5.4.17 (/Users/c9s/.phpbrew/php/php-5.4.17)
    +pdo+mysql+pgsql=/opt/local/lib/postgresql92 +
    php-5.4.19 (/Users/c9s/.phpbrew/php/php-5.4.19)
    01.
    02.
    03.
    04.
    05.
    06.
    07.
    08.
    16

    View full-size slide

  13. Extension Installing
    phpbrew ext install yaml
    phpbrew ext install xdebug
    phpbrew ext install opcache
    01.
    02.
    03.
    17

    View full-size slide

  14. Disable/Enable Extension
    phpbrew ext enable yaml
    phpbrew ext disable yaml
    01.
    02.
    18

    View full-size slide

  15. Forks Welcome!

    View full-size slide

  16. Forks Welcome
    • Feature requests
    • Bug report
    • Refactoring
    20

    View full-size slide

  17. Thank you very much.
    21

    View full-size slide

  18. See more on GitHub

    View full-size slide