faruh/smmry

PHP client library to access Smmry's API

v1.0.0 2016-05-28 19:06 UTC

This package is not auto-updated.

Last update: 2024-05-11 16:56:30 UTC


README

By Faruh Narzullaev

Smmry

Installing via Composer

The recommended way to install Smmry PHP Client is through Composer.

composer require faruh/smmry

Usage

<?php
    use Faruh\Smmry\SmmryClient;

    $client = new SmmryClient([
        'sm_api_key'       => 'API_KEY',
        'sm_length'        => 7,
        'sm_keyword_count' => 2
    ]);

    $result = $client
    	->strategy('url')
    	->setResource('http://randomtextgenerator.com/')
    	->summarize();

Go to http://smmry.com/partner to obtain your key.

Documentation: http://smmry.com/api