Sebastian Bergmann is the creator of PHPUnit. He co-founded thePHP.cc and helps PHP teams build better software.
Followers
7,607
Public Repos
71
Packages
27
Starred
0
Recorded values over time (once-a-day snapshots). May 7, 2026 – Jun 5, 2026
Followers & contributions
|
|
Description
|
|
30 days
GitHub star count over the last 30 days (daily snapshots).
|
|
|
License
|
|
|
|---|---|---|---|---|---|---|---|---|
| phpunit/phpunit | PHPUnit is the de facto unit testing framework for PHP, based on the xUnit architecture. Run tests, make assertions, and generate reports via PHAR or Composer-installed tooling. Maintained by Sebastian Bergmann and contributors. | 20,038 |
+15
|
80.9 | 54.5 | BSD-3-Clause | 1 week ago | |
| phpunit/php-code-coverage | phpunit/php-code-coverage collects, processes, and renders PHP code coverage data. Integrate it in test runs to start/stop coverage collection, filter included files, and generate reports such as OpenClover, including from serialized coverage data. | 8,927 |
-4
|
71.7 | 55.7 | BSD-3-Clause | 2 weeks ago | |
| phpunit/php-timer | Lightweight timing utility extracted from PHPUnit. Start/stop a timer to get a Duration with formatted time plus seconds, milliseconds, microseconds, and nanoseconds. Includes resource usage formatting (time + memory) for a measured block or since request start. | 7,749 |
-1
|
41.5 | 49.8 | BSD-3-Clause | 3 months ago | |
| sebastian/diff | Standalone PHP diff component extracted from PHPUnit. Generate unified or strict unified diffs between strings, output only changed lines, or plug in custom output builders. Also parse unified diffs into an object graph for further processing. | 7,661 |
|
49.0 | 52.6 | BSD-3-Clause | 3 weeks ago | |
| phpunit/php-file-iterator | phpunit/php-file-iterator provides a simple file iterator for PHP projects, helping tools like PHPUnit discover and filter files in directories. Installable via Composer for runtime or dev use, it supports efficient traversal and selection of files for testing workflows. | 7,489 |
-1
|
41.8 | 50.4 | BSD-3-Clause | 3 months ago | |
| sebastian/comparator | sebastian/comparator compares PHP values for equality with type-aware comparators. Use the Factory to select the right comparator and get helpful ComparisonFailure details when assertions fail—ideal for test suites and tooling. | 7,050 |
-4
|
57.0 | 53.2 | BSD-3-Clause | 2 weeks ago | |
| sebastian/exporter | Exports PHP variables into readable, stable string representations for debugging and test output. Handles scalars, arrays, objects, resources, binary strings, and recursive structures with reference tracking for clear visualization. | 6,820 |
-2
|
51.7 | 53.2 | BSD-3-Clause | 2 weeks ago | |
| sebastian/environment | sebastian/environment helps PHP developers detect runtime details (PHP vs HHVM, OS, architecture, 32/64-bit, debugging extensions) to choose runtime-specific execution paths. Commonly used by testing tools to adapt behavior to the environment. | 6,776 |
-1
|
51.9 | 53.9 | BSD-3-Clause | 1 week ago | |
| sebastian/global-state | sebastian/global-state snapshots and restores PHP global state (globals, superglobals, ini settings, etc.), extracted from PHPUnit as a standalone component. Useful for test isolation and detecting side effects by capturing state before and after code runs. | 6,604 |
-2
|
41.5 | 51.1 | BSD-3-Clause | 4 days ago | |
| sebastian/version | Library for deriving a PHP project’s version from Git. Provide a release string and project path; Version::asString() returns the release, a -dev suffix, or git describe output (tags/commits) depending on repo state and release format. | 6,580 |
-2
|
41.0 | 51.3 | BSD-3-Clause | 3 months ago | |
| sebastian/recursion-context | — | 6,573 |
-2
|
41.3 | 51.4 | BSD-3-Clause | 3 months ago | |
| phpunit/php-token-stream | phpunit/php-token-stream is a small PHP library for tokenizing and streaming PHP source code tokens, commonly used by PHPUnit and related tools for parsing, reflection-like inspection, and test-related code analysis. | 6,386 |
|
13.4 | 23.1 | NOASSERTION | — | |
| sebastian/object-reflector | Reflect object properties across a class hierarchy, including inherited, private, and protected members. sebastian/object-reflector provides a small utility for accessing and inspecting object state when PHP’s standard reflection APIs are inconvenient. | 6,283 |
+1
|
39.8 | 51.9 | BSD-3-Clause | 3 months ago | |
| phpunit/phpunit-mock-objects | Default mock object library for PHPUnit. Create test doubles (mocks, stubs, spies) to isolate units under test, define expectations, control method returns, and verify interactions. Designed for PHPUnit projects and compatible with PHP 7.1+. | 4,934 |
-2
|
15.2 | 20.2 | NOASSERTION | 12 years ago | |
| phploc/phploc | phploc is a command-line tool for quickly measuring the size of a PHP project, reporting LOC/NCLOC/CLOC, LLOC, and counts of classes, traits, methods, functions, and cyclomatic complexity. Archived: no longer maintained. | 2,346 |
|
8.3 | 16.3 | BSD-3-Clause | — | |
| sebastian/phpcpd | PHPCPD is a copy/paste detector for PHP that finds duplicated code (clones) across files and reports duplicate lines and locations. Distributed as a PHAR and installable via Phive. Note: this project is unmaintained and archived. | 2,213 |
-2
|
8.4 | 21.9 | BSD-3-Clause | — | |
| sebastian/type | sebastian/type provides lightweight value objects that model PHP’s type system. Useful for tools and libraries that need to represent, compare, and work with types (including complex and composite types) in a consistent, structured way. | 1,500 |
+1
|
31.1 | 63.7 | BSD-3-Clause | 2 weeks ago | |
| phpunit/php-invoker | phpunit/php-invoker is a small utility for safely invoking callables with time limits. Commonly used by PHPUnit to run tests and other code with a timeout, helping prevent hangs while keeping execution and error handling predictable. | 1,348 |
+2
|
21.8 | 61.4 | BSD-3-Clause | 3 months ago | |
| sebastian/complexity | Compute code complexity metrics for PHP units (functions, methods, classes). sebastian/complexity provides programmatic analysis useful for static analysis tools, quality gates, and CI reporting; install via Composer for project or dev-only use. | 1,258 |
+2
|
21.4 | 62.6 | BSD-3-Clause | 3 months ago | |
| sebastian/cli-parser | Parse PHP CLI arguments ($_SERVER['argv']) with a small, focused library extracted from PHPUnit. sebastian/cli-parser helps you interpret options and parameters reliably in console scripts and tools, with Composer-friendly installation. | 1,204 |
+1
|
27.5 | 64.6 | BSD-3-Clause | 2 weeks ago | |
| sebastian/lines-of-code | sebastian/lines-of-code is a lightweight PHP library for counting lines of code in PHP source files. Useful for reporting, metrics, and tooling, it can be installed via Composer as a runtime or dev dependency. | 1,174 |
+1
|
27.3 | 64.7 | BSD-3-Clause | 2 weeks ago | |
| phpunit/phpcov | phpcov is a CLI frontend for php-code-coverage. It merges PHPUnit --coverage-php .cov files from parallel or split runs and generates combined reports (HTML, Clover, etc.) or exports merged data back to a .cov file. | 237 |
|
3.0 | 46.2 | BSD-3-Clause | — | |
| phpunit/dbunit | PHPUnit extension for database interaction testing. Provides DbUnit helpers for setting up database fixtures and asserting database state in tests. Install via Composer (dev) or PHAR. Note: this package is no longer maintained. | 223 |
|
5.0 | 25.5 | NOASSERTION | 11 years ago | |
| sebastian/git-state | PHP library to describe the state of a Git checkout. Retrieve origin URL, current branch and commit hash, and determine whether the working directory is clean or get a git-style status output. Useful for build/test tooling and CI metadata. | 12 |
+3
|
16.8 | 63.1 | BSD-3-Clause | 2 months ago | |
| sebastian/file-filter | Filter and whitelist/blacklist files and directories in PHP projects. Extracted from phpunit/phpunit, this lightweight library helps build file lists while honoring include/exclude rules—useful for test runners, coverage tools, and CLI utilities. | 4 |
|
18.1 | 54.6 | BSD-3-Clause | 1 month ago | |
| sebastian/object-enumerator | Traverses array structures and object graphs to enumerate all referenced objects, helping you inspect, analyze, or collect objects reachable from complex data structures. Install via Composer for production or as a dev dependency for testing and tooling. | 0 |
-6
|
40.1 | 51.1 | — | — | |
| phpunit/php-text-template | phpunit/php-text-template is a small PHP library for rendering text templates by substituting variables into template files or strings. Commonly used by PHPUnit and related tools to generate code, reports, and other text output from simple placeholders. | 0 |
-5
|
40.8 | 50.4 | — | — |
How can I help you explore Laravel packages today?