Skip to content

dayrev/extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Extractor

Overview

Extractor provides an elegant interface to extract content from a URL using a variety of third-party providers.

Supported Providers

Installation

Run the following composer command to add the package to your project:

composer require dayrev/extractor

Alternatively, add "dayrev/extractor": "^1.0" to your composer.json file.

##Usage

$extractor = DayRev\Extractor\Provider::instance('embedly', ['api_key' => 'YOURKEYHERE']);
$content = $extractor->extract($this->url);

Tests

To run the test suite, run the following commands from the root directory:

composer install
vendor/bin/phpunit -d embedly_api_key=YOUR_EMBEDLY_API_KEY

Note: A valid Embedly API key is required when running the integration tests.

Packages

No packages published

Languages