Skip to content

Instantly share code, notes, and snippets.

@Raphhh
Last active August 29, 2015 14:07
Show Gist options
  • Save Raphhh/6468b110467c8960ea04 to your computer and use it in GitHub Desktop.
Save Raphhh/6468b110467c8960ea04 to your computer and use it in GitHub Desktop.
PHP lib check list

PHP lib check list

Git

  1. .gitignore is versionned.
  2. .gitignore does not contain any IDE or system exclusions.

Files format

  1. Files are encoded in UTF-8 without BOM (PSR-1).
  2. End of lines are LF (PSR-2).

Code style

  1. PSR-1 is applied.
  2. PSR-2 is applied.

IDE

  1. .editorconfig is versionned.

Travis

  1. Travis hook is added in GitHub.
  2. .travis.yml is versionned.
  3. .travis.yml has been checked with Travis lint.
  4. .travis.yml contains all the supported PHP versions.

Scrutinizer

  1. Scrutinizer hook is added in GitHub.
  2. .scrutinizer.yml is versionned.

SensioLabs Insight

  1. Insight hook is added in GitHub.

Composer

  1. composer.json is versionned.
  2. composer.json is valid.
  3. vendor folder is not versionned.
  4. composer.lock is not versionned.
  5. composer install command is added to .travis.yml.
  6. Autoloading method is specified in composer.json.
  7. All dependancies are specified in composer.json.
  8. PHP version is specified in composer.json.
  9. All used extensions are specified in composer.json.
  10. composer.phar is not versionned.

Version

  1. Your current version number is valid with the Semantic verisonning 2.0.0.
  2. Your current version is a git tag.
  3. Your current version is not in composer.json.

Packagist

  1. Your library is added to Packagist.
  2. Packagist hook is added in GitHub.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment