Download the PHP package unionofrad/li3_quality without Composer

On this page you can find all versions of the php package unionofrad/li3_quality. 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 li3_quality

Quality

This li₃ plugin adds code quality assurance to your toolbelt.

Key Features

Installation

The preferred installation method is via composer. You can add the library as a dependency via:

li₃ libraries must be registered within your application bootstrap phase as they use a different (faster) autoloader.

If you open the test dashboard (under /test in your browser), you should have an additional Syntax button to check the files directly in your browser.

Usage: The "syntax" command

If you just run it with li3 syntax, it will run all rules against your app library.

Usage: The "fix" command

The fix command helps in migrating code to newer versions. It'll rewrite existing source code files and update them in place. Please note that you should use a version control system when using this command, as the results may not always be 100% what you'd expect.

Custom Rules & Rule Sets

Rule based commands (syntax and fix) will work only with a rule set configuration file. If none is provided through the --config=<FILE> option, these commands fall back to use the default configuration files in config/syntax.json and config/fix.json respectively.

Custom rules must be create as i.e. <your library>/extensions/qa/rules/{syntax,fix}/YourCustomRule.php.

GIT Pre Commit Hook

This pre commit hook is based upon the example found in .git/hooks/pre-commit.sample. Copy the sample script to /path/to/project/.git/hooks/pre-commit and make it executable. Then, replace the code in the script with the code shown below and adjust the paths to the plugin and the li3 command.

Now add the following code to .git/hooks/pre-commit and adjust the APP and LI3 values.

Now when committing each file the syntax is checked. The commit is aborted if a check failed. If you don't want to have the hook run on commit pass the --no-verify option to git commit.

Usage: The "coverage" command

With li3 coverage you can get a summary of how well your classes are covered with tests. This makes use of some xdebug functions, so make sure to have it installed.

You can also reuse the --library argument as well. In addition, this command provides an optional --threshold argument that only displays coverage below the given amount. This defaults to 100, so all classes will be shown. If you have coloring on your shell (likely not on windows), then the classes are colored to reflect the coverage policy of the Lithium framework (0% or no test is red, 85% or higher is green and the rest is yellow).

Copyright & License

Copyright 2011 Union of RAD. All rights reserved. This library is distributed under the terms of the BSD 3-Clause License. The full license text can be found in the LICENSE.txt file.


All versions of li3_quality with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
composer/installers Version 1.*
unionofrad/lithium Version 1.0.*
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 unionofrad/li3_quality contains the following files

Loading the files please wait ....