Download the PHP package kolyunya/codeception-markup-validator without Composer

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

Codeception Markup Validator

Latest Stable Version Build Status PHPStan Scrutinizer Code Quality Code Climate

Problem

Programmatically validate markup of web application pages during automated acceptance testing.

Solution

Markup validator module for Codeception. Validates web-pages markup (HTML, XHTML etc.) using markup validators e.g. W3C Markup Validator Service. Don't let invalid pages reach production. Add some zero effort tests to your acceptance suite which will immediately inform you when your markup gets broken.

Dead simple to use. Requires literally no configuraton. Works as you expect it out of box. Fully configurable and extendable if you want to hack it. Each component of the module can be replaced with your custom class. Just implement a simple interface and inject custom component to the module.

Installation

The recommended way of module installation is via composer:

Usage

Add the module to your acceptance test suit configuration:

Build the test suit:

Validate markup:

If you need, you may override module-wide message filter configuration for each page individually like this:

Configuration

The module does not require any configuration. The default setup will work if you have either PhpBrowser or WebDriver modules enabled.

Nevertheless the module is fully-configurable and hackable. It consist of four major components: provider which provides markup to validate, validator which performs actual markup validation, filter which filters messages received from the validator and printer which determines how to print messages received from the validator. You may configure each of the components with a custom implementation.

Provider

The module may be configured with a custom provider which will provide the markup to the validator. The default provider tries to obtain markup from the PhpBrowser and WebDriver modules.

Validator

The module may be configured with a custom validator which will validate markup received from the provider. The default validator uses the W3C Markup Validation Service API.

Filter

The module may be configured with a custom filter which will filter messages received from the validator. You may implement you own filter or tweak a default one.

Printer

The module may be configured with a custom printer which defines how messages received from the validator are printed. The default printer prints message type, summary, details, first line number, last line number and related markup.

Contributing

If you found a bug or have a feature request feel free to open an issue. If you want to send a pull request, backward-compatible changes should target the master branch while breaking changes - the next major version branch.


All versions of codeception-markup-validator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1 <9.0
codeception/codeception Version >=2.0 <6.0
guzzlehttp/guzzle Version ^7.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 kolyunya/codeception-markup-validator contains the following files

Loading the files please wait ....