{"id":15984881,"url":"https://github.com/divineomega/php-summary","last_synced_at":"2025-07-19T01:33:37.022Z","repository":{"id":56969684,"uuid":"47579407","full_name":"DivineOmega/php-summary","owner":"DivineOmega","description":"📝 Automatically summarises text, using a naive summarisation algorithm","archived":false,"fork":false,"pushed_at":"2020-06-24T22:18:47.000Z","size":41,"stargazers_count":35,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-07T14:04:43.415Z","etag":null,"topics":["php-library","summary","summerisation-algorithm"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DivineOmega.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-07T21:10:37.000Z","updated_at":"2025-06-19T12:11:00.000Z","dependencies_parsed_at":"2022-08-21T10:50:47.206Z","dependency_job_id":null,"html_url":"https://github.com/DivineOmega/php-summary","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/DivineOmega/php-summary","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-summary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-summary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-summary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-summary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DivineOmega","download_url":"https://codeload.github.com/DivineOmega/php-summary/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DivineOmega%2Fphp-summary/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265871363,"owners_count":23842022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php-library","summary","summerisation-algorithm"],"created_at":"2024-10-08T02:11:02.579Z","updated_at":"2025-07-19T01:33:36.962Z","avatar_url":"https://github.com/DivineOmega.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Summary\n\n[![Build Status](https://travis-ci.org/DivineOmega/php-summary.svg?branch=master)](https://travis-ci.org/DivineOmega/php-summary)\n[![Coverage Status](https://coveralls.io/repos/github/DivineOmega/php-summary/badge.svg?branch=master)](https://coveralls.io/github/DivineOmega/php-summary?branch=master)\n[![StyleCI](https://styleci.io/repos/47579407/shield?branch=master)](https://styleci.io/repos/47579407)\n![Packagist](https://img.shields.io/packagist/dt/DivineOmega/php-summary.svg)\n\nA PHP library to automatically summarise text using a naive summerisation algorithm.\n\nThis summerisation algorithm in use takes the key sentence from each paragraph. It then strings these resulting sentences together to form the summary.\n\nFor more details on this algorithm, see this [blog post by Shlomi Babluki](http://thetokenizer.com/2013/04/28/build-your-own-summary-tool/).\n\n## Installation\n\nRequire this package, with [Composer](https://getcomposer.org/), in the root directory of your project.\n\n```bash\ncomposer require divineomega/php-summary\n```\n\n## Usage\n\nTo use PHP Summary, you should create a new `SummaryTool` object, passing it the text content of your article. You can then call its `getSummary` method to retrieve the shortened summary of the article.\n\nNote: The article content must have its paragraphs seperated by two new line characters.\n\n```php\n$summary = (new SummaryTool($content))-\u003egetSummary();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-summary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdivineomega%2Fphp-summary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdivineomega%2Fphp-summary/lists"}