{"id":40871221,"url":"https://github.com/leepownall/read-time","last_synced_at":"2026-01-22T00:40:22.864Z","repository":{"id":204754181,"uuid":"711623863","full_name":"leepownall/read-time","owner":"leepownall","description":"Simple package for displaying read time","archived":false,"fork":false,"pushed_at":"2025-07-28T17:43:30.000Z","size":60,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-28T19:31:20.694Z","etag":null,"topics":["laravel","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/leepownall.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null},"funding":{"github":"leepownall"}},"created_at":"2023-10-29T20:25:27.000Z","updated_at":"2025-07-28T17:43:27.000Z","dependencies_parsed_at":"2024-04-15T14:02:58.197Z","dependency_job_id":"ae111b23-4c5c-4573-bd42-673ad2135ab6","html_url":"https://github.com/leepownall/read-time","commit_stats":null,"previous_names":["leepownall/read-time"],"tags_count":5,"template":false,"template_full_name":"spatie/package-skeleton-php","purl":"pkg:github/leepownall/read-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leepownall%2Fread-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leepownall%2Fread-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leepownall%2Fread-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leepownall%2Fread-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leepownall","download_url":"https://codeload.github.com/leepownall/read-time/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leepownall%2Fread-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28648460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"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","read-time"],"created_at":"2026-01-22T00:40:22.808Z","updated_at":"2026-01-22T00:40:22.854Z","avatar_url":"https://github.com/leepownall.png","language":"PHP","funding_links":["https://github.com/sponsors/leepownall"],"categories":[],"sub_categories":[],"readme":"# Read Time\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/pownall/read-time.svg?style=flat-square)](https://packagist.org/packages/pownall/read-time)\n[![Tests](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml/badge.svg?branch=main\u0026style=flat-square)](https://github.com/leepownall/read-time/actions/workflows/run-tests.yml)\n[![Total Downloads](https://img.shields.io/packagist/dt/pownall/read-time.svg?style=flat-square)](https://packagist.org/packages/pownall/read-time)\n\nSimple package for displaying read time.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require leepownall/read-time\n```\n\n## Usage\n\n### Using `get()`\n\n```php\n$readTime = new Pownall\\ReadTime\\ReadTime('Hello, world!');\n\n$readTime-\u003eget();\n```\n\n### Using `__toString()`\n\n```php\n$readTime = new Pownall\\ReadTime\\ReadTime('Hello, world!');\n\necho $readTime;\n```\n\n### Using blade directive\n\n```php\n@readtime('Hello, world!')\n```\n\n### Pass in `wordsPerMinute`\n\n```php\n$readTime = new Pownall\\ReadTime\\ReadTime('Hello, world!', 300);\n```\n\n```php\n@readtime('Hello, world!', 300)\n```\n\n## Output\n\nIt uses Carbon under the hood, specifically `forHumans` on the `CarbonInterval`.\n\nThe output looks like\n\n```php\n2 hours 4 minutes\n```\n\n### Config\n\nDefault `wordsPerMinute` is 200. You can override this by passing it in, or publish the config and override there.\n\n`php artisan vendor:publish --tag=readtime-config`\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Lee Pownall](https://github.com/leepownall)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleepownall%2Fread-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleepownall%2Fread-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleepownall%2Fread-time/lists"}