Giter Club home page Giter Club logo

w3c-validator's Introduction

W3C Validator Build Status

PHP wrapper class for validating web documents with W3C validation API

Installation

Install using composer:

composer require 'eldadfux/w3c-validator:1.0.0'

Usage

Example:

include_once '../src/W3CValidator.php';

// Create a new validator object
$validate = new W3CValidator('http://www.walla.co.il');

var_dump($validate->isValid()); /* output: bool(false) */
var_dump($validate->getErrorsCount()); /* output: int(463) */
var_dump($validate->getWarningsCount()); /* output: int(372) */

Limits

Please notice that the W3C API is limited according to their abuse policy.

More information can be found here: http://www.w3.org/Help/abuse-info/re-reqs.html

Contributing

All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.

Fork the project, create a feature branch, and send us a pull request.

Versioning

For transparency and insight into our release cycle, and for striving to maintain backward compatibility, Utopia PHP Framework will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:

<major>.<minor>.<patch>

For more information on SemVer, please visit http://semver.org/.

Requirements

PHP 5.3+

We recommend using the latest PHP version whenever possible.

Author

Eldad Fux

License

W3C Validator class is licensed under the MIT License - see the LICENSE file for details

w3c-validator's People

Contributors

eldadfux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

w3c-validator's Issues

Add a function for retrieval of charset

I use to use an old version of w3c validation system and I record the Charset. I thought It would be beneficial to your code to make it available.

/**
* Get Charset
*
* Returns the charset found in the document.
*
* @return str
*/
public function getCharset()
{
return (int)$this->getPath('//m:charset');
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.