File tree 1 file changed +17
-5
lines changed
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change
1
+ # Extractor
2
+
1
3
## Overview
2
4
3
- Extractor provides an elegant interface to extract content from a URL using a variety of third-party tools and services .
5
+ Extractor provides an elegant interface to extract content from a URL using a variety of third-party providers .
4
6
5
- ** Supported Providers: **
7
+ ** Supported Providers**
6
8
7
9
* Embedly
8
10
* Goose
9
11
10
- ##Usage
12
+ ## Installation
13
+ Run the following [ composer] ( https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx ) command to add the package to your project:
14
+
15
+ ```
16
+ composer require dayrev/extractor
17
+ ```
18
+
19
+ Alternatively, add ` "dayrev/extractor": "^1.0" ` to your composer.json file.
11
20
12
- $extractor = DayRev\Extractor\Provider::instance('embedly', array('api_key' => 'YOURKEYHERE'));
13
- $content = $extractor->extract($this->url);
21
+ ##Usage
22
+ ``` php
23
+ $extractor = DayRev\Extractor\Provider::instance('embedly', ['api_key' => 'YOURKEYHERE']);
24
+ $content = $extractor->extract($this->url);
25
+ ```
14
26
15
27
## Tests
16
28
To run the test suite, run the following commands from the root directory:
You can’t perform that action at this time.
0 commit comments