https://github.com/eldadfux/w3c-validator
PHP class for validating web documents with W3C validation API
https://github.com/eldadfux/w3c-validator
php w3c-validator
Last synced: 4 months ago
JSON representation
PHP class for validating web documents with W3C validation API
- Host: GitHub
- URL: https://github.com/eldadfux/w3c-validator
- Owner: eldadfux
- License: mit
- Created: 2014-03-17T19:20:15.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-06T11:48:33.000Z (almost 10 years ago)
- Last Synced: 2025-04-30T21:53:15.955Z (about 1 year ago)
- Topics: php, w3c-validator
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# W3C Validator [](https://travis-ci.org/eldadfux/w3c-validator)
PHP wrapper class for validating web documents with W3C validation API
## Installation
Install using composer:
```bash
composer require 'eldadfux/w3c-validator:1.0.0'
```
## Usage
Example:
```php
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](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:
`..`
For more information on SemVer, please visit [http://semver.org/](http://semver.org/).
## Requirements
PHP 5.3+
We recommend using the latest PHP version whenever possible.
## Author
**Eldad Fux**
+ [https://twitter.com/eldadfux](https://twitter.com/eldadfux)
+ [https://github.com/eldadfux](https://github.com/eldadfux)
## License
W3C Validator class is licensed under the MIT License - see the LICENSE file for details