phpspec/prophecy-phpunit
Integrates the Prophecy mocking library with PHPUnit for simpler, cleaner test doubles. Install via Composer and use the ProphecyTrait to call prophesize() inside your TestCase, set method predictions/returns, and reveal mocks for injection.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| adriansuter/php-autoload-override | Override PHP autoloading to take control of how classes are resolved. php-autoload-override lets you hook into Composer’s autoloader to swap, alias, or redirect class loading—useful for debugging, testing, and patching vendor code without forks. | 21 | 22 | 3 | 3K | 0 | 22.4 | 35.1 | MIT | 1 year ago | |
| erickskrauch/php-cs-fixer-custom-fixers | Custom PHP-CS-Fixer fixers by Erick Skrauch. Adds opinionated formatting rules like aligning multiline parameters, inserting blank lines around class bodies and before returns, spacing after control statements, fixing multiline if braces, ordering overrides, and Yii2 ::className() replacement. | 30 | 30 | 2 | 108K | 2 | 23.6 | 57.5 | MIT | 4 months ago | |
| facile-it/paraunit | Run PHPUnit test suites faster by executing tests in parallel across multiple processes. Includes Symfony-based CLI, compatibility across PHPUnit/Symfony versions, and parallel code coverage generation (auto-chooses PCOV, Xdebug, or PHPDbg). | 145 | 146 | 18 | 31K | 14 | 35.0 | 45.0 | Apache-2.0 | 1 month ago | |
| firebase/php-jwt | Encode and decode JSON Web Tokens (JWT) in PHP per RFC 7519. Supports common signing algorithms, key handling, and optional leeway for clock skew. Install via Composer; libsodium compatible via sodium_compat. | 9,784 | 10,020 | 1,276 | 10M | 10 | 73.0 | 54.6 | BSD-3-Clause | 1 week ago | |
| gitonomy/gitlib | Gitonomy Gitlib is a PHP library for interacting with Git repositories programmatically. Read commits, trees, branches, tags and diffs; run Git commands via a clean API and work with local repos from your apps, tools, or CI scripts. | 464 | 469 | 74 | 373K | 13 | 36.9 | 53.0 | MIT | 1 year ago | |
| google/apiclient | Official Google APIs Client Library for PHP. Access services like Gmail, Drive, and YouTube from your server. Supports PHP 8+. In maintenance mode (critical fixes/security only). Install via Composer: google/apiclient. | 9,769 | 9,917 | 3,554 | 4M | 17 | 74.8 | 50.2 | Apache-2.0 | 1 week ago | |
| google/auth | Official Google Auth library for PHP. Implements OAuth 2.0 and Application Default Credentials (ADC) for authenticating to Google APIs and Google Cloud. Install via Composer and use with HTTP clients like Guzzle to authorize API calls. | 1,392 | 1,436 | 194 | 6M | 17 | 47.5 | 67.8 | Apache-2.0 | 3 weeks ago | |
| google/cloud-core | Shared core infrastructure for Google Cloud PHP libraries, including common transport, auth, retry, and configuration utilities. Not intended for direct use—required by other Google Cloud components. Stable GA with backwards-compatible minor and patch releases. | 343 | 346 | 21 | 3M | 0 | 31.6 | 65.0 | Apache-2.0 | 3 weeks ago | |
| google/cloud-firestore | Idiomatic PHP client for Google Cloud Firestore. Install via Composer, authenticate with Google Cloud credentials, and use the generated FirestoreClient (gRPC required) to read/write documents and collections with robust error handling and API docs support. | 180 | 182 | 34 | 96K | 0 | 31.2 | 44.3 | Apache-2.0 | 3 weeks ago | |
| google/cloud-pubsub | Idiomatic PHP client for Google Cloud Pub/Sub. Publish and consume messages between services using REST or gRPC (streaming supported). Install via Composer (google/cloud-pubsub) and authenticate with Google Cloud credentials. | 90 | 94 | 24 | 531K | 0 | 31.0 | 61.2 | Apache-2.0 | 3 weeks ago | |
| google/cloud-spanner | Idiomatic PHP client for Google Cloud Spanner, a fully managed relational database with global scale, strong transactional consistency, SQL support, and high availability. Install via Composer, authenticate, and run queries; supports gRPC and multiplexed sessions. | 20 | 20 | 8 | 9K | 0 | 29.6 | 42.6 | Apache-2.0 | 3 weeks ago | |
| google/cloud-storage | Idiomatic PHP client for Google Cloud Storage. Upload/download objects, manage buckets and permissions (ACLs), use a gs:// stream wrapper, and integrate with Google Cloud PHP authentication. Great for backups, archival, and serving large files. | 343 | 349 | 30 | 3M | 0 | 32.0 | 63.0 | Apache-2.0 | 2 weeks ago | |
| google/cloud-tools | Dev utilities for Google Cloud in PHP. Includes flex_exec to run commands inside the same Docker image as an App Engine Flexible deployment, with optional Cloud SQL connectivity via Cloud Build. Also provides Google\Cloud\TestUtils helpers and fixtures. | 24 | 24 | 20 | 15K | 5 | 31.0 | 51.8 | Apache-2.0 | 8 months ago | |
| google/cloud-translate | Idiomatic PHP client for Google Cloud Translation. Supports V2 (handwritten) and V3 (generated) APIs to translate text, detect language, and manage datasets/models. Auth via Google Cloud credentials; install with Composer for easy integration. | 201 | 208 | 22 | 455K | 0 | 31.0 | 54.5 | Apache-2.0 | 3 weeks ago | |
| google/gax | Google API Core for PHP (gax-php) provides shared infrastructure for Google API clients, especially generated libraries using gRPC. Includes helpers for retries, pagination/page streaming, long-running operations, and Google API conventions. Requires PHP 8.1+. | 263 | 265 | 57 | 4M | 2 | 33.3 | 67.7 | BSD-3-Clause | 3 weeks ago | |
| icanhazstring/composer-unused | composer-unused detects and removes unused Composer dependencies in PHP/Laravel projects. It analyzes your codebase to find packages not referenced, reports what can be safely removed, and helps keep composer.json/lock lean and maintainable. | 1,676 | 1,678 | 57 | 220K | 10 | 42.2 | 39.4 | MIT | 2 months ago | |
| jangregor/phpstan-prophecy | PHPStan extension for phpspec/prophecy that improves type inference in tests. It teaches PHPStan the real types returned from Prophecy workflows like prophesize(), willExtend(), and reveal(), so your revealed doubles are understood as the mocked class. | 111 | 112 | 30 | 510K | 3 | 29.5 | 60.4 | MIT | 1 month ago | |
| laminas/laminas-mvc | Laminas MVC is a modular, event-driven MVC framework for PHP applications. It provides routing, controllers, view integration, dependency injection, and configuration management, helping you build scalable, maintainable web apps and APIs on top of Laminas components. | 172 | 174 | 61 | 527K | 24 | 34.5 | 70.1 | BSD-3-Clause | 1 year ago | |
| php-coveralls/php-coveralls | PHP client for Coveralls that uploads Clover-style code coverage reports from PHPUnit and other test tools. Install via Composer or download the PHAR. Works with GitHub and common CI services (GitHub Actions, Travis, CircleCI, Jenkins, Codeship). | 514 | 521 | 126 | 201K | 7 | 35.7 | 46.6 | MIT | 3 months ago | |
| php-http/guzzle7-adapter | PSR-7/PSR-18 adapter for Guzzle 7 used by HTTPlug. Lets libraries using PHP-HTTP talk through Guzzle 7 with a standard client interface, including synchronous requests and integration-friendly configuration for modern PHP projects. | 90 | 88 | 7 | 2M | 2 | 22.3 | 65.0 | MIT | 1 year ago | |
| phpdocumentor/phpdocumentor | phpDocumentor generates comprehensive PHP documentation from source code and DocBlocks. It produces API docs, UML diagrams, and parses Markdown/ReStructuredText, with tooling to embed API references into narrative docs to keep documentation in sync. | 4,319 | 4,390 | 640 | 15K | 160 | 85.6 | 43.6 | MIT | 4 months ago | |
| phpdocumentor/reflection | PHPDoc reflection library used by phpDocumentor to parse docblocks and reflect types, namespaces, and symbols from PHP code. Helps tools extract documentation and metadata without executing code, powering static analysis and doc generation workflows. | 125 | 126 | 59 | 2M | 11 | 34.5 | 69.0 | MIT | 4 months ago | |
| phpro/grumphp | GrumPHP helps you enforce code quality on every git commit. Configure tasks like PHPStan, PHPUnit, PHPCS, and more to run as pre-commit hooks, failing fast on issues so your team keeps a consistent, clean, and build-ready codebase. | 4,280 | 4,287 | 447 | 340K | 6 | 65.6 | 33.7 | MIT | 2 months ago | |
| ramsey/collection | ramsey/collection is a PHP library for representing and manipulating typed collections. Provides data structures and APIs inspired by the Java Collections Framework, helping you store, validate, and work with groups of objects and values consistently. | 1,194 | 1,209 | 56 | 13M | 4 | 34.3 | 66.8 | MIT | 1 year ago | |
| vonage/client-core | Core PHP client library for Vonage APIs (PHP 8.1+). Create a Vonage\Client with your API key/secret, make requests, and optionally customize base API URLs for testing. Install via Composer (vonage/client) or use core with your own HTTP client. | 928 | 929 | 179 | 338K | 2 | 39.5 | 42.1 | Apache-2.0 | 1 week ago | |
| weirdan/prophecy-shim | Lightweight shim around Prophecy for PHPUnit, helping keep legacy Prophecy-based tests running on newer PHPUnit/Laravel stacks. Provides compatibility glue with minimal changes so you can upgrade tooling without rewriting your mocks. | 1 | 1 | 0 | 8K | 0 | 21.5 | 58.5 | — | 5 years ago | |
| wikimedia/composer-merge-plugin | Composer plugin that merges multiple composer.json files at runtime. Define extra include patterns (e.g., composer.local.json, extensions/*/composer.json) to combine dependencies and settings into the main config for installs and autoload generation. | 1,003 | 1,016 | 171 | 657K | 52 | 50.3 | 77.2 | MIT | 5 years ago |
How can I help you explore Laravel packages today?