Download the PHP package jdgrimes/wp-l10n-validator without Composer

On this page you can find all versions of the php package jdgrimes/wp-l10n-validator. 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 wp-l10n-validator

WP L10n Validator Build Status

Command-line tool for checking that all strings are properly gettexted for localization in WordPress plugins and themes.

Installation

Requires: PHP 5.3 or later.

Download a zip, clone the repo, or add to composer dependencies. Add the /bin directory to your $PATH (or use /path/to/wp-l10n-validator/bin/wp-l10n-validator instead of just wp-l10n-validator in your commands.

To see the basic usage and check that everything is working, type the command:

$ wp-l10n-validator

Usage

$ wp-l10n-validator -[1c] TEXTDOMAIN [CONFIG] [-- FILE ...]

This validates all .php files in the current directory for proper gettexting.

Arguments:

Flags:

The validator will display any errors it finds.

Example validating a plugin:

You can also add a wp-l10n-validator.json file in the main directory of your project, which specifies the basic configuration for your project (see below). With this file in place you can run the parser without any arguments.

Configuration

The validator can be configured specifically for your project as needed. Although it can be completely customized, the main reason for additional configuration is to help the parser weed out false positives. The strategy employed for weeding out most false positives is as follows:

All of these are configurable to match your particular project, though custom configuration is optional. To configure the parser, you can add a JSON file named wp-l10n-validator.json in the root directory of your project (or wherever you wish to run the parser from).

These are the options that you can specify in the the JSON config file:

See example-config.json for an example.

Notes

Credits

License

Dual licensed under GPLv2 and MIT licenses.


All versions of wp-l10n-validator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.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 jdgrimes/wp-l10n-validator contains the following files

Loading the files please wait ....