phptherightway

Installing composer on mac osx

  • $ brew install composer

Creating composer.json

  • $ composer init

Composer commands

  • $ composer install
  • $ composer dump

Installing illuminate/support

  • $ composer require illuminate/support

Install squizlabs/php_codesniffer

  • $ composer require squizlabs/php_codesniffer --dev

Using squizlabs/php_codesniffer

  • $ vendor/bin/phpcs src --standard=PSR2