{"id":37012075,"url":"https://github.com/vdhicts/read-time","last_synced_at":"2026-01-14T01:02:51.552Z","repository":{"id":57077177,"uuid":"455940789","full_name":"vdhicts/read-time","owner":"vdhicts","description":"Laravel package to determine the read time of a text","archived":false,"fork":false,"pushed_at":"2025-02-24T16:44:25.000Z","size":18,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-26T07:10:10.684Z","etag":null,"topics":["laravel","php","read-time"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdhicts.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-05T17:42:48.000Z","updated_at":"2025-02-24T16:44:04.000Z","dependencies_parsed_at":"2025-02-24T17:36:47.936Z","dependency_job_id":"b343ed49-bbe1-4cdd-b132-3b4e239aa6a5","html_url":"https://github.com/vdhicts/read-time","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/vdhicts/read-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhicts%2Fread-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhicts%2Fread-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhicts%2Fread-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhicts%2Fread-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdhicts","download_url":"https://codeload.github.com/vdhicts/read-time/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdhicts%2Fread-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["laravel","php","read-time"],"created_at":"2026-01-14T01:02:50.856Z","updated_at":"2026-01-14T01:02:51.526Z","avatar_url":"https://github.com/vdhicts.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# read-time\n\nLaravel package to determine the read time of a text. \n\n## Requirements\n\nThis package requires at least Laravel 11+ and PHP 8.2 or newer.\n\n## Installation\n\nYou can install the package via composer:\n\n`composer require vdhicts/read-time`\n\n## Usage\n\nThis package can be used multiple ways. When the content contains HTML, the HTML is stripped before calculating the read\ntime.\n\n### Helper\n\nThe helper returns the amount of minutes (as integer) it should take for the reader to read the text. \n\n```php\nread_time($text);\nread_time($text, $wordPerMinute);\n```\n\n### Blade\n\nThe blade directive returns the amount of minutes (as integer) it should take for the reader to read the text.\n\n```php\n@readTime($text)\n@readTime($text, $wordPerMinute)\n```\n\n### Direct usage\n\nThe class offers a bit more functionality.\n\n```php\nuse Vdhicts\\ReadTime\\ReadTime;\n\n$readTime = new ReadTime($text);\n// OR $readTime = new ReadTime($text, $wordsPerMinute);\n$readTime-\u003eminutes(); // the amount of minutes (as integer) it should take to read\n$readTime-\u003eseconds(); // the amount of seconds (as integer) it should take to read\n$readTime-\u003ewordCount(); // the amount of words (as integer) found in the text\n```\n\n### Custom configuration\n\nPublish the configuration with:\n\n`php artisan vendor:publish --provider=\"Vdhicts\\ReadTime\\ReadTimeServiceProvider\"`\n\n## Tests\n\nUnit tests are available in the `tests` folder. Run with:\n\n`composer test`\n\nWhen you want a code coverage report which will be generated in the `build/report` folder. Run with:\n\n`composer test-coverage`\n\n## Contribution\n\nAny contribution is welcome, but it should meet the PSR-12 standard and please create one pull request per feature/bug.\nIn exchange, you will be credited as contributor on this page.\n\n## Security\n\nIf you discover any security related issues in this or other packages of Vdhicts, please email security@vdhicts.nl instead\nof using the issue tracker.\n\n## Support\n\nIf you encounter a problem with this package or has a question about it, feel free to open an issue on GitHub.\n\n## License\n\nThis package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).\n\n## About Vdhicts\n\n[Vdhicts](https://www.vdhicts.nl) is the name of my personal company for which I work as freelancer. Vdhicts develops\nand implements IT solutions for businesses and educational institutions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdhicts%2Fread-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdhicts%2Fread-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdhicts%2Fread-time/lists"}