Skip to content

Instantly share code, notes, and snippets.

@rodrigore
Last active May 25, 2016 02:36
Show Gist options
  • Save rodrigore/0acbdc98f325dc3819d4bf0c49daed06 to your computer and use it in GitHub Desktop.
Save rodrigore/0acbdc98f325dc3819d4bf0c49daed06 to your computer and use it in GitHub Desktop.
link psr-2

#Link a repo de la clase de hoy https://github.com/rodrigore/githubapi-composer

Psr2

http://www.php-fig.org/psr/psr-2/

PHPCS (analiza el codigo)

https://github.com/squizlabs/PHP_CodeSniffer

Plugines sublime

  • sublime-linter
  • SublimeLinter-php y SublimeLinter-phpcs

Configuracion sublimelinter-phpcs

{
    "user": {
        "delay": 0.5,
        "linters": {
            "php": {
                "@disable": false,
                "args": [],
                "excludes": []
            },
            "phpcs": {
                "@disable": false,
                "args": [
                    "-n"
                ],
                "excludes": [
                    "*Test.php"
                ],
                "standard": "PSR2"
            }
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment