Skip to content

Instantly share code, notes, and snippets.

@lionslair
lionslair / PHP composer tools.md
Created July 10, 2020 03:16 — forked from davebarnwell/PHP composer tools.md
Global installation of PHP tools with Composer

Global installation of PHP tools with Composer

To install a composer package globally, you run the usual require command, but with the addition of the global modifier. So to install PHPUnit, you would run:

$ composer global require phpunit/phpunit
$ composer global require phpunit/dbunit
$ composer global require phing/phing
$ composer global require phpdocumentor/phpdocumentor
$ composer global require sebastian/phpcpd
vendor/bin/phpunit --testsuite=Container --repeat=3
PHPUnit 7.5.13 by Sebastian Bergmann and contributors.
............................................................. 61 / 4500 ( 1%)
............................................................. 122 / 4500 ( 2%)
............................................................. 183 / 4500 ( 4%)
............................................................. 244 / 4500 ( 5%)
............................................................. 305 / 4500 ( 6%)
............................................................. 366 / 4500 ( 8%)
............................................................. 427 / 4500 ( 9%)
@lionslair
lionslair / README.md
Created July 27, 2016 04:55 — forked from oodavid/README.md
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc