Skip to content

Commit 69e7cbe

Browse files
authored
Merge pull request paquettg#237 from rafpaf/patch-1
Fixed a few stray typos
2 parents b523b1d + 590a1b7 commit 69e7cbe

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/FUNDING.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
# github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
# patreon: # Replace with a single Patreon username
5+
# open_collective: # Replace with a single Open Collective username
6+
# ko_fi: # Replace with a single Ko-fi username
7+
tidelift: "packagist/paquettg/php-html-parser"
8+
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
# liberapay: # Replace with a single Liberapay username
10+
# issuehunt: # Replace with a single IssueHunt username
11+
# otechie: # Replace with a single Otechie username
12+
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This package can be found on [packagist](https://packagist.org/packages/paquettg
2323
Basic Usage
2424
-----
2525

26-
You can find many examples of how to use the dom parser and any of its parts (which you will most likely never touch) in the tests directory. The tests are done using PHPUnit and are very small, a few lines each, and are a great place to start. Given that, I'll still be showing a few examples of how the package should be used. The following example is a very simplistic usage of the package.
26+
You can find many examples of how to use the DOM parser and any of its parts (which you will most likely never touch) in the tests directory. The tests are done using PHPUnit and are very small, a few lines each, and are a great place to start. Given that, I'll still be showing a few examples of how the package should be used. The following example is a very simplistic usage of the package.
2727

2828
```php
2929
// Assuming you installed from Composer:
@@ -36,7 +36,7 @@ $a = $dom->find('a')[0];
3636
echo $a->text; // "click here"
3737
```
3838

39-
The above will output "click here". Simple no? There are many ways to get the same result from the dome, such as `$dom->getElementsbyTag('a')[0]` or `$dom->find('a', 0)` which can all be found in the tests or in the code itself.
39+
The above will output "click here". Simple, no? There are many ways to get the same result from the DOM, such as `$dom->getElementsbyTag('a')[0]` or `$dom->find('a', 0)`, which can all be found in the tests or in the code itself.
4040

4141
Support PHP Html Parser Financially
4242
--------------
@@ -48,7 +48,7 @@ Tidelift delivers commercial support and maintenance for the open source depende
4848
Loading Files
4949
------------------
5050

51-
You may also seamlessly load a file into the dom instead of a string, which is much more convenient and is how I except most developers will be loading the html. The following example is taken from our test and uses the "big.html" file found there.
51+
You may also seamlessly load a file into the DOM instead of a string, which is much more convenient and is how I expect most developers will be loading the HTML. The following example is taken from our test and uses the "big.html" file found there.
5252

5353
```php
5454
// Assuming you installed from Composer:
@@ -74,12 +74,12 @@ foreach ($contents as $content)
7474
}
7575
```
7676

77-
This example loads the html from big.html, a real page found online, and gets all the content-border classes to process. It also shows a few things you can do with a node but it is not an exhaustive list of methods that a node has available.
77+
This example loads the html from big.html, a real page found online, and gets all the content-border classes to process. It also shows a few things you can do with a node but it is not an exhaustive list of the methods that a node has available.
7878

79-
Loading Url
79+
Loading URLs
8080
----------------
8181

82-
Loading a url is very similar to the way you would load the html from a file.
82+
Loading a URL is very similar to the way you would load the HTML from a file.
8383

8484
```php
8585
// Assuming you installed from Composer:
@@ -95,7 +95,7 @@ $dom->loadFromUrl('http://google.com');
9595
$html = $dom->outerHtml; // same result as the first example
9696
```
9797

98-
loadFromUrl will, by default, use an implementation of the `\Psr\Http\Client\ClientInterface` to do the HTTP request and a default implementation of `\Psr\Http\Message\RequestInterface` to create the body of the request. You can easely implement your own version of either the client or request to use a custom HTTP connection when using loadFromUrl.
98+
loadFromUrl will, by default, use an implementation of the `\Psr\Http\Client\ClientInterface` to do the HTTP request and a default implementation of `\Psr\Http\Message\RequestInterface` to create the body of the request. You can easily implement your own version of either the client or request to use a custom HTTP connection when using loadFromUrl.
9999

100100
```php
101101
// Assuming you installed from Composer:
@@ -108,7 +108,7 @@ $dom->loadFromUrl('http://google.com', null, new MyClient());
108108
$html = $dom->outerHtml;
109109
```
110110

111-
As long as the client object implements the interface properly it will use that object to get the content of the url.
111+
As long as the client object implements the interface properly, it will use that object to get the content of the url.
112112

113113
Loading Strings
114114
---------------

0 commit comments

Comments
 (0)