PHP Summarizer

PHP Summarizer

Released 7 years ago , Last update 4 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 (PHP 7 supported)
  • 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
  • OY odior yole 5 months ago
    I have made payment. Didnt get the script. Please look into this
  • C Cris License holderPersonal License
    Purchased on Aug 20, 2017
    7 months ago
    Is this script works in php7+ . Thanks in advance
    • C Cris 7 months ago
      any idea ??
    • CR Cristian Radu Publisher 7 months ago
      Yes, the script works fine with both PHP 7.0 and PHP 7.1.
    • C Cris 7 months ago
      Thanks .. Purchased :)
  • A Anil License holderPersonal License
    Purchased on May 12, 2017
    11 months ago
    When we use very large files- Suppose take an example of pasting 1000 pages text document to generate summary report. The tool don't have capability to house large data. Is there any option to extend this size and fields from your end.
    • CR Cristian Radu Publisher 10 months ago
      The online tool is for demonstration purpose only with limited resources (text length). If you want to summarize large texts, you can purchase the script and host your own server to perform the operation.
    • C Cris 7 months ago
      Hi Cristian , Will this script work in PHP7+ . Thanks in advance ..
    • CR Cristian Radu Publisher 7 months ago
      Yes, the script works with PHP7+.