Version 52 (modified by 7 years ago) ( diff ) | ,
---|
Development
PHP Development Tools
- PHP_Development_Tools (PDT)
- eclipse-pdt
- download on installed eclipse
Debug bar
- maximebf/debugbar Debug bar in the browser for php application
- php-middleware/php-debug-bar
Static analyzer
- php static code analysis php+static+code+analysis
- Static analyzer for PHP Google
- Static analysis tools for PHP List of tools.
- phpmd/phpmd
- pdepend/pdepend
About
Lists of tools
- Static analysis tools for PHP
- phpqatools.org The PHP Quality Assurance Toolchain
Tools
- etsy/phan
- phpmetrics/phpmetrics Static analyzer tool for PHP : Coupling, Cyclomatic complexity, Maintainability Index, Halstead's metrics... and more ! phpmetrics.org
Compiling PHP (to be able to use recent versions)
PHPBrew
- phpbrew/phpbrew Useless in 2016-10 follow official dowload instructions instead (php phar)
- 2017: alone in an otherwise empty composer.json with minimum-stability: dev
$ composer req phpbrew/phpbrew:@dev $ composer req corneltek/cliframework ~2.0.0@stable $ composer req corneltek/getoptionkit ~2.0.0@stable
- composer.json
*
{ "require": { "phpbrew/phpbrew": "@dev", "corneltek/cliframework": "~2.0.0@stable", "corneltek/getoptionkit": "~2.0.0@stable" }, "minimum-stability": "dev" }
$ composer req phpbrew/phpbrew:1.20.2 corneltek/pearx:dev-master corneltek/curlkit:1.0.x-dev
- composer.json
- 2017: alone in an otherwise empty composer.json with minimum-stability: dev
- Quick-Start
- Extension-Installer
- Cookbook
- PHPBrew can also install some other utilities for PHP (see ...).
About
- How to Use PHPbrew and VirtPHP
- PHPbrew and VirtPHP - Two incredibly effective tools for PHP developers
configure: error: Cannot find OpenSSL's libraries
Example
$ curl -L -O https://github.com/phpbrew/phpbrew/raw/master/phpbrew $ ./phpbrew $ ./phpbrew init Using root: /home/.../.phpbrew Initialization successfully finished! <=====================================================> Phpbrew environment is initialized, required directories are created under /home/jean-bernard/.phpbrew Paste the following line(s) to the end of your ~/.bashrc and start a new shell, phpbrew should be up and fully functional from there: source /home/jean-bernard/.phpbrew/bashrc To enable PHP version info in your shell prompt, please set PHPBREW_SET_PROMPT=1 in your `~/.bashrc` before you source `~/.phpbrew/bashrc` export PHPBREW_SET_PROMPT=1 To enable .phpbrewrc file searching, please export the following variable: export PHPBREW_RC_ENABLE=1 For further instructions, simply run `phpbrew` to see the help message. Enjoy phpbrew at $HOME!! <=====================================================> # ./phpbrew install --with-openssl 7.0 +default -mcrypt +dbs +mb # ./phpbrew install 7.0 +default -mcrypt +dbs +mb --with-openssl $ ./phpbrew install 7.0 +default -mcrypt +dbs +mb -- --with-openssl # env PHPBREW_PHP=php-7.0.11 ./phpbrew ext install github:nikic/php-ast php7 $ env PHPBREW_PHP=php-7.0.11 ./phpbrew ext install github:nikic/php-ast $ ~/.phpbrew/php/php-7.0.11/bin/php -i |less $ ~/.phpbrew/php/php-7.0.11/bin/php composer require etsy/phan $ ~/.phpbrew/php/php-7.0.11/bin/php vendor/bin/phan --help
Help about PHP
- Can you help me with my PHP code?
- Stack Overflow
- PHP Manual (especially the comments)
- PHP: The Right Way
Conferences
Web Articles
- On PHP 5.3, Lambda Functions, and Closures Fabien Potencier 2009
Books
- php 7 programming WorldCat
- advanced php programming WorldCat
- PHP advanced and object-oriented programming 2013
- PHP and PostgreSQL : advanced Web programming 2002
Example code
- https://github.com/thephpleague/skeleton
- Contains Travis CI configuration
PHP Syntax
php double colon class
What is new
What is new in php 7
PHP Security Programming
- http://stackoverflow.com/questions/6474783/which-server-variables-are-safe
- http://stackoverflow.com/questions/4247704/how-tamper-proof-is-the-server-variable-in-php
PHP Programming
- http://php.net/manual/en/language.constants.predefined.php
- http://php.net/manual/en/function.getcwd.php
- http://stackoverflow.com/questions/4645082/get-absolute-path-of-current-script
- php+curent+directory
- http://php.net/manual/en/reserved.variables.environment.php
- http://php.net/manual/en/function.phpinfo.php
- http://php.net/manual/en/function.readlink.php
- http://stackoverflow.com/questions/12580330/php-dirname-returns-symlink-path
- https://bugs.php.net/bug.php?id=46260
- php+symlink+path
- http://php.net/manual/en/function.dirname.php
Namespaces
- https://www.youtube.com/results?search_query=php+namespaces
- http://knpuniversity.com/screencast/php-namespaces-in-120-seconds
Testing
- testing Packagist
BDD Testing
- BDD testing Packagist
- codeception/codeception
Unit Testing
- unit testing packagist
- phpunit/phpunit The PHP Unit Testing framework.
- atoum/atoum Simple modern and intuitive unit testing framework for PHP 5.3+
- atoum atoum ... atoum-bundle
Functional or acceptance testing
It's 2016 now and there's Mink. It even supports different engines from headless pure-PHP "browser" (without JavaScript), over Selenium (which needs a browser like Firefox or Chrome) to a headless "browser.js" in NPM, which DOES support JavaScript. http://stackoverflow.com/questions/199045/is-there-a-php-equivalent-of-perls-wwwmechanize
- Something similar is available in Python.
Coding Standards
About Coding Standards
- Coding_conventions
- Coding Standards Sample File (including Docblock Comment standards) (file doc comment)
- PSR-1: Basic Coding Standard PSR-2: Coding Style Guide *
- Drupal
- Zend Framework Coding Standard for PHP Coding Style
- Symfony
- symfony3 coding standard symfony coding standard Packagist escapestudios/symfony2-coding-standard (bug: search files from executable folder, instead of current directory)
- PHP - Coding Standard
- PHP Coding Guidelines & Best Practices
- Which Coding convention to follow for PHP?
Detecting coding standards' violations
PHP_CodeSniffer
- PHP_CodeSniffer Packagist php-codesniffer
- squizlabs/php_codesniffer
- CodeSniffer Symfony
- Fixing Errors Automatically
php-cs-fixer
- php-cs-fixer Packagist
- friendsofphp/php-cs-fixer
- fabpot/php-cs-fixer Abandoned!
- PHP Coding Standards Fixer
Test framework
- behat
- peridot-php/peridot
how to manage object dependencies
- What is Dependency Injection? Fabien Potencier 2009
- Learning About Dependency Injection and PHP Ralph Schindler 2011
People
- Tom Butler's Programming Blog. MVC, PHP, Best practices level-2/dice A minimalist Dependency injection container (DIC) for PHP
Note:
See TracWiki
for help on using the wiki.