Download the PHP package moodlerooms/moodle-coding-standard without Composer

On this page you can find all versions of the php package moodlerooms/moodle-coding-standard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package moodle-coding-standard

Introduction

This project is simply a way to package up and distribute the Moodle Coding Standard which is defined in the following project: moodle-local_codechecker

This project does not attempt to do anything else. If there are problems with the standard, then the problems should be addressed in the moodle-local_codechecker project. Once the problem is fixed, it can be synced from moodle-local_codechecker into this project.

Latest Stable Version Total Downloads License

Install

Just add it to your project's composer.json file (--dev is optional based on your needs):

Usage

The following paths may change based on how things are installed, but basically you are looking for the path to the CodeSniffer command and the path to the moodle directory of this project:

Credits

All praise should go to the contributors of moodle-local_codechecker.

License

This project is licensed under the GNU GPL v3 or later. See the LICENSE file for details.


All versions of moodle-coding-standard with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
squizlabs/php_codesniffer Version 2.6.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package moodlerooms/moodle-coding-standard contains the following files

Collapse All

PHPCompatibility

   Sniffs

     PHP

   Tests

     Sniffs
       PHP
        RemovedExtensionsSniffTest.php
        PregReplaceEModifierSniffTest.php
        NonStaticMagicMethodsSniffTest.php
        NewKeywordsSniffTest.php
        NewIniDirectivesSniffTest.php
        NewFunctionsSniffTest.php
        NewConstructsSniffTest.php
        NewClassesSniffTest.php
        LongArraysSniffTest.php
        ForbiddenNamesSniffTest.php
        ForbiddenNamesAsInvokedFunctionsSniffTest.php
        ForbiddenCallTimePassByReferenceSniffTest.php
        ForbiddenBreakContinueVariableArgumentsSniffTest.php
        DeprecatedNewReferenceSniffTest.php
        DeprecatedIniDirectivesSniffTest.php
        DeprecatedFunctionsSniffTest.php
        DefaultTimezoneRequiredSniffTest.php
        RemovedHashAlgorithmsSniffTest.php
     sniff-examples
       forbidden-names
      removed_hash_algorithms.php
      removed_extensions.php
      preg_replace_e_modifier.php
      nonstatic_magic_methods.php
      new_keywords.php
      new_ini_directives.php
      new_functions.php
      new_constructs.php
      long_arrays.php
      new_classes.php
      generate-forbidden-names-test-files
      forbidden_names_function_invocation.php
      forbidden_names_correct_usage.php
      forbidden_break_continue_variable_argument.php
      deprecated_new_reference.php
      deprecated_ini_directives.php
      deprecated_functions.php
      call_time_pass_by_reference.php
      timezone.php
    BaseSniffTest.php
    bootstrap.php
  .coveralls.yml
  .gitignore
  .travis.yml
  README.md
  Sniff.php
  composer.json
  phpunit-travis.xml
  ruleset.xml

bin

  update-standard

doc

  UpdateStandard.md

moodle

   Sniffs

     Commenting
     ControlStructures
     Files
     NamingConventions
     PHP
     Strings
     WhiteSpace
  ruleset.xml
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
composer.json
composer.lock