Skip to content

Commit 40eeffc

Browse files
author
Nikhilesh Jasuja
committed
Rename package to diffen/justhtml and update packaging ignores
1 parent 0c6f8b8 commit 40eeffc

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.gitattributes export-ignore
2+
/.claude export-ignore
3+
/benchmarks export-ignore
4+
/examples export-ignore
5+
/html5lib-tests export-ignore
6+
/run_tests.php export-ignore
7+
/scripts export-ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
.DS_Store
44
.idea/
55
.vscode/
6+
/.claude/
67
/justhtml-python/
78
/benchmarks/fixtures/commoncrawl-*/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ intentionally skipped.
1313
## Installation
1414

1515
```sh
16-
composer require diffen/justhtml-php
16+
composer require diffen/justhtml
1717
```
1818

1919
## Quickstart

benchmarks/fetch_commoncrawl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ function http_get(string $url, array $headers = [], int $timeout = 30): string
3131
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
3232
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
3333
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
34-
$headers[] = 'User-Agent: justhtml-php-bench/1.0';
34+
$headers[] = 'User-Agent: justhtml-bench/1.0';
3535
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
3636
$data = curl_exec($ch);
3737
return is_string($data) ? $data : '';
3838
}
3939

40-
$headerLines = array_merge($headers, ['User-Agent: justhtml-php-bench/1.0']);
40+
$headerLines = array_merge($headers, ['User-Agent: justhtml-bench/1.0']);
4141
$context = stream_context_create([
4242
'http' => [
4343
'timeout' => $timeout,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "diffen/justhtml-php",
2+
"name": "diffen/justhtml",
33
"description": "Pure-PHP HTML5 parser (JustHTML port) with html5lib compliance",
44
"type": "library",
55
"license": "MIT",

0 commit comments

Comments
 (0)