Sebastian Bergmann is the creator of PHPUnit. He co-founded thePHP.cc and helps PHP teams build better software.
Followers
7,588
Public Repos
71
Packages
25
Starred
0
|
|
Description
|
|
|
|
License
|
|
|
|---|---|---|---|---|---|---|---|
| phpunit/phpunit | PHPUnit is the leading unit testing framework for PHP, based on the xUnit architecture. Run tests from a bundled PHAR or install via Composer, with CI and code coverage support to help keep your code reliable. | 20,013 | 88.0 | 72.7 | BSD-3-Clause | 1 day ago | |
| phpunit/php-code-coverage | phpunit/php-code-coverage collects, processes, and renders PHP code coverage data. Use it to start/stop coverage during tests, filter included files, and generate reports such as OpenClover XML from live runs or serialized coverage data. | 8,932 | 72.4 | 59.8 | BSD-3-Clause | 6 days 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,748 | 47.8 | 52.2 | BSD-3-Clause | 2 months ago | |
| sebastian/diff | Standalone PHP diff library extracted from PHPUnit. Generate unified/strict unified diffs or diff-only output between strings via Differ and output builders, or parse unified diff text into an object graph with Parser for further processing. | 7,661 | 50.1 | 53.6 | BSD-3-Clause | 3 days 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,488 | 48.2 | 52.5 | BSD-3-Clause | 2 months ago | |
| 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. | 7,443 | 46.8 | 52.5 | BSD-3-Clause | 2 months ago | |
| sebastian/comparator | sebastian/comparator compares PHP values for equality with type-specific comparators. Use the Factory to select the right comparator for two values and assertEquals() to verify matches, throwing a ComparisonFailure when differences are found. | 7,050 | 59.8 | 62.0 | BSD-3-Clause | 1 day ago | |
| sebastian/exporter | Exports PHP variables to readable, deterministic strings for visualization and debugging. Handles scalars, arrays (including recursion), objects, resources, and special float values (NAN/INF). Useful for test output, diffs, and diagnostics. | 6,822 | 51.7 | 54.2 | BSD-3-Clause | 2 months ago | |
| sebastian/environment | Runtime environment helper for PHP projects. Detects PHP/HHVM runtime specifics so you can choose safe execution paths, handle version and platform differences, and write portable code with minimal conditionals—useful in libraries and test tooling. | 6,776 | 50.5 | 53.8 | BSD-3-Clause | 3 days 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,606 | 47.1 | 53.0 | BSD-3-Clause | 2 months 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,583 | 47.4 | 53.4 | BSD-3-Clause | 2 months ago | |
| sebastian/recursion-context | — | 6,576 | 47.7 | 53.3 | BSD-3-Clause | 2 months 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. | 6,542 | 46.2 | 53.2 | BSD-3-Clause | 2 months ago | |
| 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,282 | 46.0 | 53.6 | BSD-3-Clause | 2 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,938 | 25.2 | 33.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,348 | 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,212 | 8.4 | 22.0 | 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,497 | 31.0 | 63.6 | BSD-3-Clause | 2 months 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,343 | 28.2 | 64.2 | BSD-3-Clause | 2 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,252 | 27.6 | 64.7 | BSD-3-Clause | 2 months ago | |
| sebastian/cli-parser | sebastian/cli-parser is a lightweight PHP library for parsing command-line arguments from $_SERVER['argv'], extracted from phpunit/phpunit. Ideal for building CLI tools and test runners that need reliable option and argument handling. | 1,201 | 27.7 | 65.0 | BSD-3-Clause | 2 months 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,170 | 27.4 | 65.0 | BSD-3-Clause | 2 months 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. | 236 | 2.9 | 46.3 | 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 | 15.0 | 42.6 | NOASSERTION | 10 years ago | |
| sebastian/git-state | Describe the state of a Git checkout from PHP. Detect origin URL, current branch and commit hash, and whether the working directory is clean; otherwise return the git status output. Useful for build metadata and diagnostics. | 6 | 20.3 | 43.0 | BSD-3-Clause | 2 weeks ago |
How can I help you explore Laravel packages today?