Packagist · packagist:sebastian/lines-of-code
sebastian/lines-of-code active
Library for counting the lines of code in PHP source code
| Latest stable version | 5.0.2 |
|---|---|
| Published | 2026-07-09 08:42:34+00:00 |
| Install | composer require sebastian/lines-of-code |
| Required PHP version (composer.json) | PHP >=8.4 |
| License | BSD-3-Clause |
| Advisories on latest version | none known |
| Last verified | 2026-10-08 18:59:29 UTC |
| Sources | api.osv.dev, repo.packagist.org |
Maintenance
| Activity | active |
|---|---|
| Last stable release | 2026-07-09 08:42:34 UTC · 91 days ago |
| Stable releases in the last 12 months | 4 |
| Published versions | 15 |
Heuristic based only on release dates; it does not measure issue or security response times.
Version history
| Version | Published |
|---|---|
5.0.2 | 2026-07-09 08:42:34 UTC |
5.0.1 | 2026-05-19 16:23:37 UTC |
4.0.1 | 2026-05-19 16:22:07 UTC |
5.0.0 | 2026-02-06 04:45:54 UTC |
4.0.0 | 2025-02-07 04:57:28 UTC |
3.0.1 | 2024-07-03 04:58:38 UTC |
3.0.0 | 2024-02-02 06:00:36 UTC |
1.0.4 | 2023-12-22 06:20:34 UTC |
2.0.2 | 2023-12-21 08:38:20 UTC |
2.0.1 | 2023-08-31 09:25:50 UTC |
2.0.0 | 2023-02-03 07:08:02 UTC |
1.0.3 | 2020-11-28 06:42:11 UTC |
1.0.2 | 2020-10-26 17:03:56 UTC |
1.0.1 | 2020-09-28 06:07:27 UTC |
1.0.0 | 2020-07-22 18:33:42 UTC |
Showing the 15 most recent of 15 versions. JSON
Version compatibility
Newest stable version that declares support for each runtime version (from the requirements published with each version).
| Runtime | Newest compatible version |
|---|---|
php 7.4 | 1.0.4 |
php 8.0 | 1.0.4 |
php 8.1 | 2.0.2 |
php 8.2 | 3.0.1 |
php 8.3 | 4.0.1 |
php 8.4 | 5.0.2 |
Give your AI agent these facts
Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Add to CursorAdd to VS Code★ Star on GitHub
Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests
Frequently asked questions
What is the latest version of sebastian/lines-of-code?
The latest stable version of sebastian/lines-of-code is 5.0.2, published on 2026-07-09. Verified by Vigia on 2026-10-08.
How do I install the latest version of sebastian/lines-of-code?
Run composer require sebastian/lines-of-code. The latest stable version is 5.0.2 (verified 2026-10-08).
Is sebastian/lines-of-code deprecated?
No. sebastian/lines-of-code is not marked as deprecated in the registry.
Which PHP version does sebastian/lines-of-code require?
sebastian/lines-of-code 5.0.2 declares this requirement: PHP >=8.4.
Does sebastian/lines-of-code 5.0.2 have known vulnerabilities?
No known advisories affect sebastian/lines-of-code 5.0.2 according to the data Vigia checks.
Is sebastian/lines-of-code still maintained?
sebastian/lines-of-code published 4 stable releases in the last 12 months; the most recent was 91 days ago. Activity: active.
Observed changes
No changes observed yet since Vigia started tracking this package.
Related packages
- phpunit/php-invoker
- symfony/yaml
- sebastian/cli-parser
- sebastian/complexity
- symfony/polyfill-php85
- symfony/polyfill-php84
- sebastian/type
- nesbot/carbon
- phar-io/manifest
- league/flysystem
- symfony/filesystem
- phar-io/version
Badges for your README
Show the latest version, maintenance status and deprecation status of this package. Copy the Markdown:
[](https://vigia.coredls.cloud/packagist/sebastian/lines-of-code) [](https://vigia.coredls.cloud/packagist/sebastian/lines-of-code) [](https://vigia.coredls.cloud/packagist/sebastian/lines-of-code)
For agents
GET https://vigia.coredls.cloud/v1/packages/packagist/sebastian/lines-of-code
GET https://vigia.coredls.cloud/v1/packages/packagist/sebastian/lines-of-code/versions/{version}