Download the PHP package zsxsoft/php-w3c-validator without Composer

On this page you can find all versions of the php package zsxsoft/php-w3c-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 php-w3c-validator

php-w3c-validator

Latest Stable Version Packagist


Wrapper for The Nu Html Checker (v.Nu)
Current version: 17.11.1

Attention

You need install Java for working with php-w3c-validator
Visit https://java.com for download Java if you not have it

Installation

composer require zsxsoft/php-w3c-validator

Test

phpunit

Usage

Recommend

Result

API

__construct

mixed Zsxsoft\W3CValidator\W3CValidator::__construct(string $jarPath)

W3CValidator constructor.

Arguments

data

$this|string Zsxsoft\W3CValidator\W3CValidator::data(string $data)

Gets or directly sets HTML data

fileName

$this|string Zsxsoft\W3CValidator\W3CValidator::fileName(string $data)

Gets or sets files, "-" for the text set by data.

run

mixed|array Zsxsoft\W3CValidator\W3CValidator::run()

Run the validator

exec

array Zsxsoft\W3CValidator\W3CValidator::exec($argument, $callback = NULL)

Run the validator with custom argument

javaArgument

$this|string Zsxsoft\W3CValidator\W3CValidator::javaArgument(string $data)

Gets or sets Java argument

Arguments

Command Line Arguments

See https://github.com/validator/validator for help.

asciiquotes

 $this|string Zsxsoft\W3CValidator\W3CValidator::asciiquotes()

Specifies whether ASCII quotation marks are substituted for Unicode smart quotation marks in messages.

errors_only

 $this|string Zsxsoft\W3CValidator\W3CValidator::errors_only()

Specifies that only error-level messages and non-document-error messages are reported (so that warnings and info messages are not reported).

Werror

 $this|string Zsxsoft\W3CValidator\W3CValidator::Werror()

Makes the checker exit non-zero if any warnings are encountered (even if there are no errors).

exit_zero_always

 $this|string Zsxsoft\W3CValidator\W3CValidator::exit_zero_always()

Makes the checker exit zero even if errors are reported for any documents.

filterfile

 $this|string Zsxsoft\W3CValidator\W3CValidator::filterfile()

Specifies a filename. Each line of the file contains either a regular expression or starts with "#" to indicate the line is a comment. Any error message or warning message that matches a regular expression in the file is filtered out (dropped/suppressed).

filterpattern

 $this|string Zsxsoft\W3CValidator\W3CValidator::filterpattern()

Specifies a regular-expression pattern. Any error message or warning message that matches the pattern is filtered out (dropped/suppressed).

format

 $this|string Zsxsoft\W3CValidator\W3CValidator::format()

Specifies the output format for reporting the results.

skip_non_html

 $this|string Zsxsoft\W3CValidator\W3CValidator::skip_non_html()

Skip documents that don’t have .html, .htm, .xhtml, or .xht extensions.

html

 $this|string Zsxsoft\W3CValidator\W3CValidator::html()

Forces any .xhtml or .xht documents to be parsed using the HTML parser.

no_langdetect

 $this|string Zsxsoft\W3CValidator\W3CValidator::no_langdetect()

Disables language detection, so that documents are not checked for missing or mislabeled html[lang] attributes.

no_stream

 $this|string Zsxsoft\W3CValidator\W3CValidator::no_stream()

Forces all documents to be be parsed in buffered mode instead of streaming mode (causes some parse errors to be treated as non-fatal document errors instead of as fatal document errors).

verbose

 $this|string Zsxsoft\W3CValidator\W3CValidator::verbose()

Specifies "verbose" output. (Currently this just means that the names of files being checked are written to stdout.)

version

 $this|string Zsxsoft\W3CValidator\W3CValidator::version()

Shows the vnu.jar version number.

License

The MIT License


All versions of php-w3c-validator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.4
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 zsxsoft/php-w3c-validator contains the following files

Loading the files please wait ....