Download the PHP package portrino/codeception-yandex-module without Composer

On this page you can find all versions of the php package portrino/codeception-yandex-module. 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-yandex-module

Codeception Yandex Module

Build Status Maintainability Test Coverage Test Coverage Issue Count Latest Stable Version Total Downloads

This package provides validation of responses via Structured data validator API from Yandex. You can automatically check if your embedded structured data markup (aka semantic markup) is correct based on the current vocabularies like schema.org.

To transmit data to the API, you specify the HTML code or URL of the page. After completing validation, the API outputs the structured data extracted from the page in JSON format, > along with the codes of any errors detected. The following syntaxes are currently supported: JSON-LD, RDFa, microdata, and microformats.

Source: https://tech.yandex.com/validator/

With this module you are able to automate tests for semantic data validation in your cests via codeception. You save time during development of new features, because you do not have to copy your markup manually into the structured data testing tool or structured data validator when checking if some new feature or bugfix break your semantic markup.

You also can use this module for automating structured data validation for large quantities of pages.

Installation

You need to add the repository into your composer.json file

Usage

You can use this module as any other Codeception module, by adding 'Yandex' to the enabled modules in your Codeception suite configurations.

Enable module and setup the configuration variables

Update Codeception build

Implement the cept / cest

Methods

seeResponseContainsValidStructuredDataMarkup()

Validates the current response from $I->amOnPage('/foo/bar/'); against the structured data validator API and checks all supported formats like: JSON-LD, RDFa, microdata, and microformats.

seeResponseContainsValidJsonLdMarkup()

Validates the current response from $I->amOnPage('/foo/bar/'); against the structured data validator API and checks only the data which is in JSON-LD format.

seeResponseContainsValidMicrodataMarkup()

Validates the current response from $I->amOnPage('/foo/bar/'); against the structured data validator API and checks only the data which is in microdata format.

seeResponseContainsValidMicroformatMarkup()

Validates the current response from $I->amOnPage('/foo/bar/'); against the structured data validator API and checks only the data which is in microformat format.

seeResponseContainsValidRdfaMarkup()

Validates the current response from $I->amOnPage('/foo/bar/'); against the structured data validator API and checks only the data which is in RDFa format.

grabStructuredDataFromApiResponse()

Grab the structured data from the current response and it returns it as array. Please have a look at https://tech.yandex.com/validator/doc/dg/concepts/response_standart-docpage/ for information about the standard response format of the yandex API.

grabStructuredDataFromApiResponseByJsonPath()

Experimental!!!

Grab the structured data from the current response by jsonPath query syntax with the help of JSONPath PHP Package. All "special" chars like:

are replaced in json response from yandex structured data validator API by _ to make jsonPath working!

Authors

See also the list of contributors who participated in this project.


All versions of codeception-yandex-module with dependencies

PHP Build Version
Package Version
Requires codeception/codeception Version ~2.3
flow/jsonpath Version ~0.3
nixsolutions/yandex-php-library Version ~3.0.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 portrino/codeception-yandex-module contains the following files

Loading the files please wait ....