mikey179/vfsstream
vfsStream provides a PHP stream wrapper for an in-memory virtual file system, ideal for unit tests. Mock files, directories, permissions, and content without touching disk, and use it with PHPUnit, SimpleTest, or any test framework.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| chigix/io-component | 0.83 | Java-like IO utilities for PHP: base InputStream/OutputStream classes, stdin/stdout helpers, serialization and filesystem stream support. Create custom streams by extending base classes and plug them into file, console, or network IO workflows. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 11 years ago | |
| php-vfs/php-vfs | 0.83 | Simple virtual filesystem via a PHP stream wrapper for unit tests. Emulates files/dirs in memory so you can test code that reads/writes the filesystem without temporary folders or fixtures. Works with PHPUnit, PHPSpec, and other frameworks. | 57 | 57 | 8 | 15K | 5 | 2.5 | 34.8 | MIT | 6 years ago | |
| phpstreamserver/symfony | 0.82 | Runs Symfony applications on the PHP Stream Server, a high-performance application server with process management, PSR-7/PSR-15 support, and configurable worker pools. Provides Symfony integration, console commands, and configuration to replace PHP-FPM. | 6 | — | 0 | — | 0 | 0.3 | — | — | 2 years ago | |
| fp/fumocker | 0.82 | Fumocker is a lightweight PHP library for mocking function calls in unit tests. It helps you stub built-in or namespaced functions, isolate code from side effects, and write more predictable tests without introducing heavy testing dependencies. | 7 | 7 | 1 | 8 | 4 | 1.1 | 4.9 | MIT | — | |
| phpunitgoodpractices/polyfill | 0.81 | Polyfill library for PHPUnit best practices, providing compatibility helpers and shims to keep test suites consistent across PHPUnit versions. Useful for package maintainers aiming for cleaner, more portable tests without forcing specific PHPUnit upgrades. | 11 | 11 | 1 | 8K | 6 | 2.1 | 28.5 | MIT | 3 years ago | |
| phpunit/php-invoker | 0.81 | 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,352 | 1,359 | 18 | 15M | 1 | 13.8 | 58.2 | BSD-3-Clause | 9 months ago | |
| php-mock/php-mock | 0.81 | Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). | 370 | 375 | 19 | 726K | 3 | 13.0 | 47.8 | WTFPL | 9 months ago | |
| codeception/module-filesystem | 0.80 | Codeception Filesystem module provides helpers for working with files and directories in tests. Create, copy, move, delete, and assert files/folders, handle fixtures and temp paths, and verify filesystem state as part of Codeception scenarios. | 20 | 20 | 7 | 506K | 3 | 5.9 | 56.4 | MIT | 10 months ago | |
| suin/php-expose | 0.80 | Expose helps PHPUnit tests access private/protected properties and methods in PHP objects. Use a simple fluent API to set non-public attributes and call hidden methods without changing production code. Requires PHP 5.3+ and installs via Composer. | 5 | 5 | 1 | 84 | 0 | 0.1 | 16.2 | — | — | |
| php-mock/php-mock-integration | 0.80 | Integration layer for php-mock, making it easy to use PHP function mocks within popular test frameworks. Helps you stub built-in functions like time(), rand(), and file operations in specific namespaces, enabling reliable, isolated unit tests without touching global state. | 14 | 14 | 6 | 374K | 0 | 8.2 | 57.8 | WTFPL | 9 months ago | |
| garethp/http-playback | 0.80 | Record real HTTP responses once, then replay them deterministically in your PHP tests. GarethP's HTTP Playback makes it easy to capture and reuse external API interactions, keeping test suites fast, reliable, and free of network flakiness. | 7 | 7 | 4 | 18K | 1 | 0.4 | 46.2 | MIT | 5 years ago | |
| twistor/flysystem-stream-wrapper | 0.80 | — | 58 | 60 | 20 | 10K | 9 | 3.9 | 35.0 | MIT | — | |
| php-mock/php-mock-phpunit | 0.80 | Integrate php-mock with PHPUnit to mock built-in PHP functions (like time(), file_get_contents(), etc.) in a controlled, namespaced way. Ideal for unit tests that need to simulate IO, time, and other global behaviors without changing production code. | 173 | 176 | 20 | 236K | 4 | 28.3 | 51.3 | WTFPL | 1 month ago | |
| mnapoli/phpunit-easymock | 0.80 | A lightweight bridge between PHPUnit and EasyMock for PHP. Quickly create, replay, and verify mocks from your test cases with minimal boilerplate, helping you write clear unit tests using the familiar EasyMock-style workflow. | 38 | 38 | 4 | 1K | 0 | 4.8 | 20.6 | MIT | 1 year ago | |
| herrera-io/phpunit-test-case | 0.80 | PHPUnit TestCase class and Extras trait that add helpers for common test chores: create/delete temporary files and directories, call protected/private methods, and get/set protected/private properties. Use as a base class or mix into your own test case. | 1 | 1 | 0 | 32 | 0 | 0.0 | 12.0 | MIT | — | |
| php-vcr/phpunit-testlistener-vcr | 0.80 | PHPUnit TestListener integrating PHP-VCR via @vcr annotations. Automatically turns VCR on/off per test and records/replays HTTP interactions using named cassettes. Install with Composer and register the listener in phpunit.xml. | 61 | 61 | 47 | 6K | 3 | 6.1 | 29.2 | MIT | 2 years ago | |
| crudly/testly | 0.80 | A simple test package placeholder for crudly/testly. Currently contains minimal scaffolding and documentation (“This is a test”) and may be used for experimentation or as a starting point for future CRUD-related tooling. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 6 years ago | |
| adlawson/vfs | 0.80 | Virtual file system for PHP using the stream wrapper API. Mount a vfs:// scheme and use built-in functions (fopen, require, file_get_contents) or filesystem libraries like Symfony/Laravel. Emulates real streams, including PHP warnings and edge cases. | 299 | 300 | 19 | 2K | 5 | 3.8 | 15.8 | MIT | — | |
| donatj/mock-webserver | 0.79 | Lightweight PHP mock web server for tests and local development. Spin up an HTTP server on a random port, enqueue canned responses, inspect received requests, and simulate endpoints reliably. Handy for integration tests without external services. | 141 | 142 | 22 | 72K | 5 | 17.6 | 42.3 | MIT | 8 months ago | |
| league/flysystem-sftp-v3 | 0.79 | Flysystem SFTP adapter using phpseclib v3. This is a sub-split of the Flysystem project; install via composer to add SFTP storage support to your Flysystem setup. For issues and PRs, use the main Flysystem repository and docs. | 62 | 63 | 16 | 2M | 0 | 0.9 | 55.3 | MIT | — |
How can I help you explore Laravel packages today?