Secciones

martes, 25 de marzo de 2014

Desarrollo PHP - instalación de entornos

Desarrollo PHP - instalación de entornos

Artículos sobre los entornos involucrados para todo el flujo de trabajo y desarrollo de un sistema a desarrollarse en lenguaje PHP.

La siguiente es un lista de artículos que voy a ir enlazando a medida que este listo el articulo.
FALTA: diagrama de los distintos entornos involucrados
  1. Entorno de desarrollo
    1. Instalacion de herramientas de desarrollo ( IDE + WAMP )
    2. http://phpqatools.org/ ( tambien revisar http://sebastian-bergmann.de/archives/856-Quality-Assurance-Tools-for-PHP.html)
      1. Instalar Pear : http://pear.php.net/manual/en/installation.getting.php
        1. PHPUnit is the de-facto standard for unit testing in PHP projects. It provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.
        2. phploc is a tool for quickly measuring the size of a PHP project.
        3. pdepend can generate a large set of software metrics from a given code base. These values can be used to measure the quality of a software project and they help to identify the parts of an application where a code refactoringshould be applied
        4. phpcpd is a Copy/Paste Detector (CPD) for PHP code. It scans a PHP project for duplicated code.
        5. phpmd scans PHP source code and looks for potential problems such as possible bugs, dead code, suboptimal code, and overcomplicated expressions
        6. phpcs tokenises PHP, JavaScript and CSS files and detects violations of a defined set of coding standards. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.
        7. PHP_CodeBrowser provides a code browser for PHP files with syntax highlighting and colored error-sections found by quality assurance tools such as PHPUnit and PHP_CodeSniffer.
        8. NOTA: los anteriores del 1 al 7 se pueden instalar directamente 
        9. hphpa is a convenience wrapper for HipHop's static analyzer.
        10. Jenkins is the leading open-source continuous integrationserver. Thanks to its thriving plugin ecosystem, it supports building and testing virtually any project. The goal of theTemplate for Jenkins Jobs for PHP Projects is to provide a standard template for Jenkins jobs for PHP projects.
        11. vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system.
        12. bytekit-cli provides a command-line tool that leverages the Bytekit extension to perform common code analysis tasks on the PHP bytecode level.
        13. Behat is a framework for Behavior Driven Development (BDD) that is inspired by Cucumber.
        14. phpdcd is a Dead Code Detector (DCD) for PHP code. It scans a PHP project for code that is no longer used.
        15. PHPLint is a validator and documentator for PHP 4 and PHP 5 programs. PHPLint extends the PHP language through transparent meta-code that can drive the parser to a even more strict check of the source. PHPLint is not simply a checker: it implements a new, strong typed, language implemented over the PHP language. You can build your programs from scratch with PHPLint in mind, or you can check and fix existing programs, or you can follow the quick-and-dirty PHP programming way and then add the PHPLint meta-code later once the program is finished. Whatever is the strategy you choose, PHPLint makes your programs safer, more secure, well documented and with drastically less bugs.
        16. phpDocumentor 2 is build to generate API documentation for all features available in PHP 5.3 and higher.
 NOTAs:
- de http://jenkins-ci.org/views/hudson-tutorials descargar e instalar jenkins
- de http://jenkins-php.org/ ejecutar la instalacion que indica en la pagina pero por algun motivo NO instala TODOS los que indica en http://phpqatools.org/ ... PERO luego de ejecutar el comando estos son los paquetes instalados
c:\AppServ\php5_2_17>pear list
INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:
=========================================
PACKAGE             VERSION STATE
Archive_Tar         1.3.10  stable
Console_CommandLine 1.1.3   stable
Console_Getopt      1.3.1   stable
PEAR                1.9.4   stable
PHP_CodeSniffer     1.4.0   stable
Structures_Graph    1.0.4   stable
XML_Util            1.2.1   stable

Instalando phpunit (2 formas):
1) desde consola pear
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
2)
-download http://pear.phpunit.de/get/phpunit.phar 
- 
  1. Entorno de Integracion Continua
  2. Entorno de Test
  3. Entorno de Pre/Produccion
  4. Entorno de Produccion
*-*
Sebastian A. Colombini