dayrev / summarizer
Text Summarizer
v1.2.1
2017-03-31 09:38 UTC
Requires
- php: ^7.0
- camspiers/porter-stemmer: ^1.0
- dayrev/smmry-sdk-php: ^1.0
Requires (Dev)
- phpunit/phpunit: ^5.7
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^2.8
This package is not auto-updated.
Last update: 2024-11-16 14:19:33 UTC
README
Overview
Summarizer provides an elegant interface to summarize text using a variety of third-party providers.
Supported Providers:
- DayRev (local)
- Smmry
Installation
Run the following composer command to add the package to your project:
composer require dayrev/summarizer
Alternatively, add "dayrev/summarizer": "^1.0"
to your composer.json file.
Usage
$summarizer = DayRev\Summarizer\Provider::instance('smmry', ['api_key' => 'YOURKEYHERE']); $content = $summarizer->summarize($text);
Tests
To run the test suite, run the following commands from the root directory:
composer install
vendor/bin/phpunit -d smmry_api_key=YOUR_SMMRY_API_KEY
Note: A valid Smmry API key is required when running the integration tests.