PHP Summarizer

PHP Summarizer

Released 6 years ago , Last update 3 years ago

Summarizer is a standalone PHP class that allows the quick creation of a summary for a given text or HTML page.

This tool will give a summary for the given text by ranking each sentence by its relevance.


  • Summary output with configurable treshold - only the lines with a frequency over the treshold will be returned
  • Best words extraction - most relevant keyword will be extracted (ordered by their relevance)
  • Sentences splitter - the given text is automatically split into sentences
  • Common words skip - in order to provide better results, common words are skipped based on a dictionary (only for English language provided)
  • Minimal dependencies - all you need is PHP 5 to run it
  • Incredibly fast - in most cases, the summary is returned in less than 0.1 seconds
  • Low memory usage - with regular articles less than 1MB of memory is used
  • Natural language processing - much better results when using non-standard languages (e.g. Russian, Farsi, Arabic, Chinese)
  • 5 2
  • 4 0
  • 3 0
  • 2 0
  • 1 0
2 Reviews Read Reviews


14 day 14-day money-back guarantee


Personal License

  • Perpetual license

  • 1 site, unlimited servers

  • No distribution (hosted use only)

  • Commercial use


Basic usage

Here is how to create the summary of a given text.

From local file:

require_once(dirname(__FILE__) . '/Summarizer.php');

$text = file_get_contents(dirname(__FILE__) . '/test_files/cap1.txt');
$summarizer = new Summarizer();
$summary = $summarizer->run();

From remote url:

require_once(dirname(__FILE__) . '/Summarizer.php');

$url = '';
$summarizer = new Summarizer();
$summary = $summarizer->run();

API documentation

To view all of the available class methods take a look at the API reference.


If you are looking for a demo of the Summarizer script you can find here a fully working summarizer.

2 licenses, starting from From » $15.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • AL Andrew Lindsay License holderPersonal License
    Purchased on May 18, 2015
    2 years ago
    I just purchased, very nice. Is the script able to pull the title of an article (if I'm loading in/summarizing from a url) and return that in addition to the summary? Thanks.
  • LT Le Thanh Tung 3 years ago
    Dear sir, This is really good for my choice. But can it summarise Vietnamese?. And if i bought your scripts, can I run it in a standalone server without connecting to Internet. Thanks.
    • CR Cristian Radu Publisher 3 years ago
      Yes, the script can summarize also Vietnamese texts. You can test it yourself using the Demo page: - the results can be improved after purchasing the script by customizing the common words list with Vietnamese ones (by default they are only for English). The script can work also without Internet connection by reading the text locally in plain text or HTML format.
    • LT Le Thanh Tung 3 years ago
      Wow, thanks for your information :).