diff --git a/.gitattributes b/.gitattributes
index 017837aa..47213ad6 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,6 +1,8 @@
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
+/.phive/
/Doxyfile export-ignore
+/phpcs.xml export-ignore
/phpunit.xml export-ignore
/tests export-ignore
diff --git a/.gitignore b/.gitignore
index c8153b57..c730549b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
+/.phive/*
+/.php_cs.cache
/composer.lock
/vendor/
+!/.phive/phars.xml
diff --git a/.phive/phars.xml b/.phive/phars.xml
new file mode 100644
index 00000000..7a248a7a
--- /dev/null
+++ b/.phive/phars.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/composer.json b/composer.json
index 71ffbfb3..837a30b7 100644
--- a/composer.json
+++ b/composer.json
@@ -17,5 +17,18 @@
},
"autoload": {
"psr-4": { "Sabberworm\\CSS\\": "lib/Sabberworm/CSS/" }
+ },
+ "scripts": {
+ "ci": [
+ "@ci:static"
+ ],
+ "ci:php:sniff": "@php ./.phive/phpcs.phar lib tests",
+ "ci:static": [
+ "@ci:php:sniff"
+ ],
+ "fix:php": [
+ "@fix:php:sniff"
+ ],
+ "fix:php:sniff": "@php ./.phive/phpcbf.phar lib tests"
}
}
diff --git a/phpcs.xml b/phpcs.xml
new file mode 100644
index 00000000..63092301
--- /dev/null
+++ b/phpcs.xml
@@ -0,0 +1,15 @@
+
+
+
+ This standard requires PHP_CodeSniffer >= 3.6.0.
+
+
+
+
+
+
+
+
+
+
+