This article is from march 2014, please treat with caution.

As Composer is more mature, I am trying to drop Pear entirely.

In my last contract this took too long to setup, so I am writing myself a cheat sheet. Yes I expect the URLs to get out-of-date quite fast.
If I compress this down to a set of GIT URLs and a composer file, I can start work on the speed of the network connection. If I can bundle this, even when tools aren't needed, there is no delays when time scales start to matter.

Standard operating system:

Webrowsers

vim plugins

Standard PHP tools:

  • phpunit:
    • see composer
    • linux: use normal or pear
    • mac: read around, use pear
    • ms: install linux start again
  • phpdoc
    • pear channel-discover pear.phpdoc.org; pear install phpdoc/phpDocumentor
    • see composer
  • phpunit
    • pear install phpunit/PHPUnit
    • see composer
  • add the skel-gen
  • phpcs
    • see composer
    • pear install PHP_CodeSniffer
  • phploc
  • PHP depend
    • composer “pdepend/pdepend” : "@stable”

Document and manage:

Combined composer (for PHP things)

{
    "require-dev": {
        "phpdocumentor/phpdocumentor": "2.*",
        "phpunit/phpunit": "3.7.*",
	    "phploc/phploc": "*",
 		"phpunit/phpunit-skeleton-generator": "*"
 	    "squizlabs/php_codesniffer": "1.*",

        "php": ">=5.3.3",
        "cboden/Ratchet": "0.3.*", /* not sure about this one...*/
        "doctrine/doctrine-bundle": "1.2.*",
        "braincrafted/bootstrap-bundle": "~2.0@alpha",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0"

    },
	"require":{
        "php": ">=5.3.3",
        "cboden/Ratchet": "0.3.*", /* not sure about this one... */
        "doctrine/doctrine-bundle": "1.2.*",
        "braincrafted/bootstrap-bundle": "~2.0@alpha",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0"

	}
}

# if you use BDD, add these

		"mockery/mockery": "0.9.*@dev",
		 "behat/behat": "2.*@stable",
		 "behat/mink": "1.*@stable",
		 "behat/mink-extension": "*",
		 "behat/mink-goutte-driver": "*",
		 "behat/mink-selenium2-driver": "*",
		"behat/symfony2-extension":"*",

PHP Tool chain

RSS. Share: Share this resource on your twitter account. Share this resource on your linked-in account. G+

PHP Tool chain

RSS. Share: Share this resource on your linked-in account. Share this resource on your twitter account. G+ ­ Follow edited