| 1 | = Development = |
| 2 | == PHP Development Tools == |
| 3 | * [WikiPedia:PHP_Development_Tools] (PDT) |
| 4 | * [DebianPackage:eclipse-pdt] |
| 5 | * [http://www.eclipse.org/pdt/#download download] on installed eclipse |
| 6 | == Static analyzer == |
| 7 | * Static analyzer for PHP [https://www.google.ca/search?q=Static+analyzer+for+PHP Google] |
| 8 | === About === |
| 9 | * [http://blog.codacy.com/2014/05/06/php-static-analysis-tools/ Review of PHP Static Analysis Tools] |
| 10 | === Lists === |
| 11 | * [https://github.com/exakat/php-static-analysis-tools Static analysis tools for PHP] |
| 12 | * [http://phpqatools.org/ phpqatools.org] The PHP Quality Assurance Toolchain |
| 13 | === Tools === |
| 14 | * [https://packagist.org/packages/etsy/phan etsy/phan] |
| 15 | * https://github.com/nikic/php-ast |
| 16 | * [https://packagist.org/packages/phpmetrics/phpmetrics phpmetrics/phpmetrics] Static analyzer tool for PHP : Coupling, Cyclomatic complexity, Maintainability Index, Halstead's metrics... and more ! [http://phpmetrics.org/ phpmetrics.org] |
| 17 | * [https://packagist.org/packages/phpmetrics/composer-extension phpmetrics/composer-extension] |
| 18 | == Compiling PHP (to be able to use recent versions) == |
| 19 | === [http://phpbrew.github.io/phpbrew/ PHPBrew] === |
| 20 | * [https://packagist.org/packages/phpbrew/phpbrew phpbrew/phpbrew] Useless in 2016-10 follow official dowload instructions instead (php phar) |
| 21 | * [https://github.com/phpbrew/phpbrew/wiki/Quick-Start Quick-Start] |
| 22 | * [https://github.com/phpbrew/phpbrew/wiki/Extension-Installer Extension-Installer] |
| 23 | * [https://github.com/phpbrew/phpbrew/wiki/Cookbook Cookbook] |
| 24 | * PHPBrew can also install some other utilities for PHP (see ...). |
| 25 | ==== About ==== |
| 26 | * [https://www.sitepoint.com/use-phpbrew-virtphp/ How to Use PHPbrew and VirtPHP] |
| 27 | * [https://www.devsaran.com/blog/phpbrew-and-virtphp-two-incredibly-effective-tools-php-developers PHPbrew and VirtPHP - Two incredibly effective tools for PHP developers] |
| 28 | ==== configure: error: Cannot find OpenSSL's libraries ==== |
| 29 | * [https://www.google.ca/search?q=configure%3A+error%3A+Cannot+find+OpenSSL%27s+libraries Google] |
| 30 | * [https://github.com/phpbrew/phpbrew/issues/2 configure error under ubuntu #2] |
| 31 | * [http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204 How to install PHP 5.3 and 5.2 together on Ubuntu 12.04] |
| 32 | ==== Example ==== |
| 33 | {{{#!sh |
| 34 | $ curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew |
| 35 | $ ./phpbrew |
| 36 | $ ./phpbrew init |
| 37 | Using root: /home/.../.phpbrew |
| 38 | Initialization successfully finished! |
| 39 | <=====================================================> |
| 40 | Phpbrew environment is initialized, required directories are created under |
| 41 | |
| 42 | /home/jean-bernard/.phpbrew |
| 43 | |
| 44 | Paste the following line(s) to the end of your ~/.bashrc and start a |
| 45 | new shell, phpbrew should be up and fully functional from there: |
| 46 | |
| 47 | source /home/jean-bernard/.phpbrew/bashrc |
| 48 | |
| 49 | To enable PHP version info in your shell prompt, please set PHPBREW_SET_PROMPT=1 |
| 50 | in your `~/.bashrc` before you source `~/.phpbrew/bashrc` |
| 51 | |
| 52 | export PHPBREW_SET_PROMPT=1 |
| 53 | |
| 54 | To enable .phpbrewrc file searching, please export the following variable: |
| 55 | |
| 56 | export PHPBREW_RC_ENABLE=1 |
| 57 | |
| 58 | |
| 59 | For further instructions, simply run `phpbrew` to see the help message. |
| 60 | |
| 61 | Enjoy phpbrew at $HOME!! |
| 62 | |
| 63 | <=====================================================> |
| 64 | |
| 65 | # ./phpbrew install --with-openssl 7.0 +default -mcrypt +dbs +mb |
| 66 | # ./phpbrew install 7.0 +default -mcrypt +dbs +mb --with-openssl |
| 67 | $ ./phpbrew install 7.0 +default -mcrypt +dbs +mb -- --with-openssl |
| 68 | # env PHPBREW_PHP=php-7.0.11 ./phpbrew ext install github:nikic/php-ast php7 |
| 69 | $ env PHPBREW_PHP=php-7.0.11 ./phpbrew ext install github:nikic/php-ast |
| 70 | $ ~/.phpbrew/php/php-7.0.11/bin/php -i |less |
| 71 | $ ~/.phpbrew/php/php-7.0.11/bin/php composer require etsy/phan |
| 72 | $ ~/.phpbrew/php/php-7.0.11/bin/php vendor/bin/phan --help |
| 73 | }}} |