Skip to content

Commit f889335

Browse files
committed
Initial commit
0 parents  commit f889335

File tree

7 files changed

+81
-0
lines changed

7 files changed

+81
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.idea/
2+
vendor/
3+
composer.lock
4+
phpstan.neon
5+
phpunit.xml

composer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "recoded-dev/wordpress-block-parser",
3+
"description": "Parse WordPress edit context content to PHP objects",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Noel Hagestein",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"minimum-stability": "stable",
13+
"require": {
14+
"php": "^8.2"
15+
},
16+
"require-dev": {
17+
"phpstan/extension-installer": "^1.3",
18+
"phpstan/phpstan": "^1.10",
19+
"phpstan/phpstan-deprecation-rules": "^1.1",
20+
"phpstan/phpstan-phpunit": "^1.3",
21+
"phpstan/phpstan-strict-rules": "^1.5",
22+
"phpunit/phpunit": "^11.1"
23+
},
24+
"autoload": {
25+
"psr-4": {
26+
"Recoded\\WordPressBlockParser\\": "src/"
27+
}
28+
},
29+
"autoload-dev": {
30+
"psr-4": {
31+
"Tests\\": "tests/"
32+
}
33+
},
34+
"config": {
35+
"allow-plugins": {
36+
"phpstan/extension-installer": true
37+
},
38+
"sort-packages": true
39+
}
40+
}

phpstan.neon.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: 9
3+
paths:
4+
- src

phpunit.xml.dist

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
backupGlobals="false"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.1/phpunit.xsd"
6+
cacheDirectory=".phpunit.cache"
7+
backupStaticProperties="false"
8+
bootstrap="./vendor/autoload.php"
9+
colors="true"
10+
processIsolation="false"
11+
stopOnFailure="false"
12+
>
13+
<testsuites>
14+
<testsuite name="Tests">
15+
<directory suffix="Test.php">./tests</directory>
16+
</testsuite>
17+
</testsuites>
18+
<source>
19+
<include>
20+
<directory suffix=".php">./src</directory>
21+
</include>
22+
</source>
23+
</phpunit>

src/.gitkeep

Whitespace-only changes.

tests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)