Skip to content

Commit a18f8e6

Browse files
author
iamquan
committed
Update Usage
I'm from Ruby on Rails, I'm not usually coding on PHP so I forgot to require require "vendor/autoload.php", it's took me an afternoon to figure this error.
1 parent e570797 commit a18f8e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Usage
1919
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.
2020

2121
```php
22+
// Assuming you installed from Composer:
23+
require "vendor/autoload.php";
2224
use PHPHtmlParser\Dom;
2325

2426
$dom = new Dom;

0 commit comments

Comments
 (0)