2017 © Pedro Peláez
 

library cssvalidator

W3C CSS Validator service.

image

gemorroj/cssvalidator

W3C CSS Validator service.

  • Monday, April 9, 2018
  • by Gemorroj
  • Repository
  • 2 Watchers
  • 2 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 3 % Grown

The README.md

Port PEAR package CSSValidator

Continuous Integration, (*1)

Requirements:

  • PHP >= 8.0.2

Installation:

composer require gemorroj/cssvalidator

Example:

<?php
use CSSValidator\CSSValidator;

$validator = new CSSValidator();
$result = $validator->validateFragment('#css-code { background: green; }');
$result = $validator->validateFile('/path/to/file.css');
$result = $validator->validateUri('http://example.com/style.css');
$result = $validator->validateUri('http://example.com'); // extract and validate all CSS files on that page

echo $result->getCssLevel();
var_dump($result->isValid());

print_r($result->getErrors());
print_r($result->getWarnings());

The Versions

09/04 2018

dev-master

9999999-dev

W3C CSS Validator service.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.6

 

The Development Requires

by Avatar Gemorroj

20/06 2017

1.1.0

1.1.0.0

W3C CSS Validator service.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.3

 

The Development Requires

by Avatar Gemorroj

14/01 2017

1.0.0

1.0.0.0

W3C CSS Validator service.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

The Development Requires

by Avatar Gemorroj