phpspec/prophecy
Highly opinionated yet flexible PHP mocking framework for unit tests. Create test doubles with a Prophet, define expected calls and return values, then reveal mocks and verify predictions. Works with PHPUnit and other frameworks; requires PHP 7.2+.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1mcodes/api-problem-bundle | — | 0 | 0 | 0 | 0 | 0 | 13.2 | — | MIT | 4 months ago | |
| admin-panel/admin-bundle | Admin Bundle is a simple Symfony admin generator for building entity lists and custom actions. Supports Doctrine ORM and Doctrine DBAL. Versioned by Symfony branch (2.7+ and 3.x), with documentation in the doc/ directory. | 3 | 3 | 8 | 0 | 0 | 3.3 | 3.8 | MIT | 7 years ago | |
| ajardin/blizzard-sdk-bundle | — | 3 | 3 | 0 | 0 | 0 | 0.8 | — | MIT | 2 years ago | |
| akeneo/pim-community-dev | — | 1,023 | 1,021 | 534 | 3K | 371 | 65.9 | 39.2 | NOASSERTION | 2 months ago | |
| algatux/influxdb-bundle | — | 23 | 23 | 14 | 2K | 4 | 6.6 | 0.8 | MIT | 6 years ago | |
| allsoftware/symfony-kernel-tabler | — | 1 | 1 | 0 | 0 | 0 | 2.3 | 3.4 | MIT | 4 years ago | |
| andanteproject/soft-deletable-bundle | — | 10 | 10 | 2 | 510 | 0 | 1.0 | 23.1 | MIT | 4 years ago | |
| andrey_mireichyk/roadrunner-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| api-platform/hydra | — | 24 | 24 | 0 | 429K | 0 | 0.1 | 55.3 | MIT | — | |
| api-platform/json-api | JSON:API component for the API Platform framework. Adds JSON:API-compliant request/response handling and content negotiation for building standardized JSON APIs. Read-only split of api-platform/core; issues and PRs belong in the core repository. | 3 | 3 | 0 | 56K | 0 | 0.0 | 55.3 | — | — | |
| autoprotect-group/messenger-enqueue-transport | — | 0 | 0 | 1 | 5 | 0 | 0.3 | 10.8 | MIT | 4 years ago | |
| auviis/adminlte-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | NOASSERTION | — | |
| avanzu/admin-theme-bundle | — | 276 | 277 | 145 | 189 | 30 | 22.5 | 13.7 | MIT | 7 years ago | |
| awd-studio/es-lib | — | 0 | 0 | 0 | 0 | 1 | 1.6 | — | MIT | 1 year ago | |
| awd-studio/es-lib-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| awd-studio/es-lib-maker-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| awd-studio/vo-date-time | Immutable PHP 8.3+ date-time value object. Create from strings, compare (equal/greater/less/between), and return new instances for changes like nextDay(), copy(), or modified() with DateTimePeriod offsets (days, minutes, weeks). | 0 | 0 | 0 | 0 | 0 | 0.9 | — | — | 1 year ago | |
| baldinof/roadrunner-bundle | — | 307 | 307 | 59 | 49K | 12 | 36.6 | 7.1 | MIT | 1 week ago | |
| becklyn/ddd-generator-bundle | Symfony bundle to generate DDD boilerplate via Maker commands. Installs as a dev dependency and provides abstract makers (DddMaker, entity/test/command variants) plus templating support so you can create and register custom generators. | 0 | 0 | 0 | 4 | 1 | 3.1 | 9.6 | — | 4 years ago | |
| benelori/alice-bundle | — | 0 | 1 | — | 0 | — | 0.0 | — | — | — | |
| bettergist/hautelook-alice-bundle | — | 0 | 2 | — | 153 | — | 0.0 | 22.6 | — | — | |
| biig/dictionary-bundle | — | 8 | 8 | 10 | 8 | 10 | 5.4 | 7.2 | — | 6 years ago | |
| biig/melodiia | — | 18 | 18 | 4 | 0 | 8 | 22.6 | 2.6 | MIT | 2 months ago | |
| binaryspanner/quickforms | — | 0 | 0 | 1 | 0 | 0 | 0.0 | — | MIT | — | |
| bnf/di | Lightweight dependency injection container for PHP/Laravel projects. Configure bindings and resolve services automatically with simple, minimal setup—ideal for small apps or packages that need clean inversion of control without a heavy framework. | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| broadway/broadway | Broadway provides infrastructure and testing helpers for building CQRS and event-sourced applications in PHP. Loosely coupled components give a full CQRS/ES toolkit without getting in your way, with solid docs and integration options. | 1,509 | 1,512 | 170 | 18K | 0 | 16.5 | 16.0 | MIT | 3 years ago | |
| byvlad/alice-bundle | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| champs-libres/wopi-bundle | — | 8 | 8 | 2 | 376 | 4 | 11.8 | 25.3 | MIT | 5 months ago | |
| chobie/jira-api-restclient | PHP client for Jira’s REST API. Provides simple authentication, request handling, and endpoints for issues, projects, users, comments, attachments, workflows, and more—useful for integrating Jira operations into your apps, scripts, or automation jobs. | 217 | 218 | 123 | 3K | 35 | 16.8 | 30.7 | MIT | 1 year ago | |
| cmnty/push | — | 12 | 12 | 3 | 0 | 1 | 0.3 | — | MIT | 9 years ago | |
| codeages/biz-framework | Biz Framework is a lightweight PHP service-layer framework with a container and core building blocks like config, DB connections/migrations, cache, DAO/service patterns, events, validation, logging, and exceptions—aimed at structuring business logic cleanly. | 67 | 68 | 35 | 46 | 3 | 9.9 | 3.5 | MIT | 6 years ago | |
| components-web-app/api-components-bundle | — | 32 | 32 | 8 | 125 | 26 | 8.6 | 19.8 | MIT | — | |
| console-helpers/prophecy-phpunit | PHPUnit integration helpers for Prophecy, providing convenience traits and utilities to streamline mock creation, prophecy assertions, and cleanup in your test suite. Designed to reduce boilerplate and keep Prophecy-based unit tests tidy and consistent. | 0 | 0 | 1 | 173 | 0 | 19.3 | — | MIT | 3 weeks ago | |
| cyllene-web/docusign-bundle | — | 0 | 0 | 0 | 59 | 0 | 9.7 | 26.3 | MIT | 7 months ago | |
| docteurklein/test-double-bundle | Symfony bundle to simplify creating test doubles. Replace services automatically with stubs or fakes via DI container tags, improving test isolation and speed (e.g., Behat). Access original implementations with .real for infrastructure tests. | 41 | 41 | 11 | 535 | 2 | 1.4 | 12.3 | — | 10 years ago | |
| drupol/psrcas | — | 21 | 21 | 0 | 0 | 0 | 0.1 | — | MIT | — | |
| durimjusaj/alice-bundle | — | 0 | 0 | 0 | 0 | 0 | 1.2 | — | 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 | 3 | 100K | 2 | 13.2 | 52.9 | MIT | 6 months ago | |
| event-engine/php-postgres-document-store | PostgreSQL-backed document store for Event Engine (PHP). Store, update, and query JSON documents efficiently using Postgres features like JSONB and indexes. Designed for read models/projections with a simple API and solid performance. | 7 | 7 | 5 | 4K | 1 | 6.4 | 37.4 | BSD-3-Clause | 1 year ago | |
| facile-it/facile-coding-standard | PHP coding standard based on PHP-CS-Fixer by Facile.it. Installs via Composer with an interactive setup that generates a .php-cs-fixer.dist.php, auto-detects files from composer autoload (psr-0/psr-4/classmap), and adds cs-check/cs-fix scripts. | 10 | 10 | 9 | 20K | 1 | 26.2 | 53.0 | — | 1 week ago | |
| facile-it/paraunit | Run PHPUnit test suites faster by executing tests in parallel across multiple processes. Symfony-based CLI with Composer install, supports many PHPUnit/Symfony versions, and can collect code coverage in parallel (auto-picks best driver like PCOV/Xdebug). | 145 | 146 | 19 | 35K | 8 | 33.0 | 42.5 | Apache-2.0 | 4 weeks ago | |
| facile-it/php-openid-client | Full-featured PHP OpenID Connect/OAuth2 client with discovery and dynamic client registration. Supports authorization flows, refresh/client credentials grants, userinfo & ID tokens, JWT signing/encryption, request objects, token revocation/introspection, and advanced client auth. | 41 | 42 | 11 | 22K | 4 | 17.4 | 42.9 | — | 5 months ago | |
| google/cloud-error-reporting | Idiomatic PHP client for Google Cloud Error Reporting (Stackdriver). Install via Composer to report and manage application errors, with REST or gRPC support. Part of the Google Cloud PHP library; see docs for auth, samples, and debugging. | 20 | 21 | 3 | 63K | 0 | 28.0 | 55.9 | Apache-2.0 | 1 month ago | |
| handcraftedinthealps/goodby-csv | — | 44 | 44 | 5 | 66K | 0 | 3.0 | 44.3 | MIT | 11 months ago | |
| hautelook/alice-bundle | — | 185 | 196 | 100 | 250K | 4 | 25.4 | 50.4 | MIT | 2 months ago | |
| humbug/box | — | 1,310 | 1,315 | 109 | 23K | 72 | 44.3 | 49.9 | MIT | 2 months ago | |
| irazasyed/telegram-bot-sdk | — | 3,295 | 3,331 | 674 | 134K | 26 | 64.1 | 35.0 | BSD-3-Clause | 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 | 111 | 30 | 455K | 3 | 23.0 | 56.1 | MIT | 3 months ago | |
| jns/xhprof-bundle | — | 208 | 212 | 46 | 29 | 8 | 2.8 | 2.4 | — | 10 years ago | |
| justinrainbow/json-schema | Validate JSON documents against JSON Schema in PHP. Supports Draft-3, Draft-4, Draft-6 and Draft-7 (coverage varies). Install via Composer and use JsonSchema\Validator to validate data with local file $ref schemas and inspect validation errors. | 3,632 | 3,680 | 369 | 5M | 7 | 60.5 | 52.5 | 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. | 171 | 174 | 64 | 558K | 24 | 14.6 | 58.3 | BSD-3-Clause | 1 year ago | |
| league/tactician-bundle | — | 248 | 249 | 46 | 85K | 3 | 21.2 | 39.1 | MIT | 5 months ago | |
| massive/build-bundle | Symfony bundle providing a massive:build command to run tagged build targets. Define virtual targets in config, declare dependencies between targets, and implement builders to execute custom environment/setup steps—ideal for chaining app-specific commands in development. | 47 | 48 | 9 | 32K | 3 | 20.3 | 44.0 | MIT | 3 months ago | |
| nelmio/alice | nelmio/alice is a PHP fixtures generator for quickly creating realistic test data. Define objects and relations in YAML, JSON, or PHP, leverage Faker providers, and load datasets into your app for functional and integration testing. | 0 | 2,566 | — | 581K | — | 60.9 | 55.3 | — | — | |
| odolbeau/phone-number-bundle | — | 249 | 254 | 44 | 308K | 4 | 19.9 | 46.4 | MIT | 7 months ago | |
| php-opencloud/openstack | PHP OpenStack SDK for connecting to OpenStack APIs from PHP. Simple, idiomatic clients with support for multiple OpenStack services and versions, semantic versioning, and active docs and tests. Requires PHP 7.2.5+ and ext-curl. | 230 | 230 | 158 | 38K | 65 | 48.2 | 62.8 | Apache-2.0 | 2 months ago | |
| phparkitect/phparkitect | PHPArkitect enforces architectural rules in PHP projects. Define constraints in code (namespaces, naming, dependencies, layering) to prevent architecture drift and catch violations early in IDEs and CI/CD pipelines. | 908 | 908 | 52 | 177K | 22 | 43.0 | 50.4 | MIT | 1 week ago | |
| phpbench/phpbench | PHPBench is a PHP benchmarking runner, like PHPUnit for performance. Run isolated iterations and revolutions, track time and memory, generate reports (console/CSV/HTML), store and compare results, and add assertions to catch regressions. | 2,006 | 2,010 | 132 | 515K | 30 | 50.3 | 51.9 | MIT | 2 months ago | |
| phperf/phpunit | phperf/phpunit is a lightweight PHPUnit extension aimed at profiling and performance measurement during test runs. Add simple hooks to capture timing and resource usage so you can spot slow tests and track performance regressions over time. | 0 | 0 | 0 | 233 | 0 | 0.9 | 32.7 | NOASSERTION | 4 years ago | |
| phpro/api-problem-bundle | Symfony bundle that turns exceptions into RFC7807 Problem Details responses (application/problem+json). Listens for ApiProblemException/HttpException/Security exceptions and converts them to standardized JSON errors based on phpro/api-problem, with support for custom transformers. | 0 | 25 | — | 9K | — | 20.1 | 39.4 | — | — | |
| phpro/grumphp | GrumPHP is a Composer plugin that installs Git hooks to run quality checks (tests, linters, code style) on staged changes before you commit. If tasks fail, the commit is blocked—helping teams enforce standards and improve code quality automatically. | 4,293 | 4,300 | 448 | 345K | 4 | 65.5 | 33.1 | MIT | 2 weeks ago | |
| phpspec/phpspec | PHPSpec is a behavior-driven development (BDD) tool for PHP. Specify how your objects should behave, then let PHPSpec guide implementation with fast feedback, focused examples, and automated specs. Ideal for designing clean, testable code. | 1,901 | 1,944 | 287 | 259K | 135 | 65.0 | 61.5 | NOASSERTION | 1 month ago | |
| 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. | 194 | 195 | 42 | 1M | 1 | 19.3 | 60.3 | MIT | 3 months ago | |
| phpunitgoodpractices/traits | A small set of PHP traits to improve PHPUnit test code by reducing boilerplate and encouraging cleaner, reusable assertions and setup patterns. Useful for Laravel and general PHP projects that want more readable, maintainable tests. | 22 | 22 | 1 | 12K | 3 | 2.6 | 27.0 | MIT | 3 years ago | |
| prooph/event-sourcing | Lightweight PHP event sourcing library with out-of-the-box integration for prooph/event-store. Provides an AggregateRoot base and AggregateTranslator, plus UUID generation and assertions support. Note: project was supported until Dec 31, 2019 and is deprecated. | 265 | 266 | 41 | 5K | 0 | 10.1 | 17.7 | BSD-3-Clause | 5 years ago | |
| prooph/event-store | Common interfaces and classes for Prooph Event Store implementations. Provides the core building blocks to work with event stores, with persistent implementations available via separate TCP and HTTP client packages. Supports PHP 7.4+ (v7). | 547 | 548 | 76 | 17K | 0 | 14.1 | 20.4 | BSD-3-Clause | 1 year ago | |
| prooph/pdo-event-store | — | 112 | 112 | 60 | 14K | 5 | 14.4 | 30.6 | BSD-3-Clause | 11 months ago | |
| prooph/pdo-snapshot-store | — | 25 | 25 | 11 | 2K | 1 | 4.5 | 25.2 | BSD-3-Clause | 3 years ago | |
| prooph/snapshot-store | Lightweight snapshot store for prooph/event-sourcing setups. Provides a simple API to persist and load aggregate snapshots, reducing replay time and improving performance. Note: library support ended Dec 31, 2019 (deprecated). | 19 | 19 | 2 | 3K | 0 | 1.8 | 29.5 | BSD-3-Clause | 5 years ago | |
| prooph/snapshotter | — | 19 | 19 | 11 | 989 | 1 | 3.5 | 23.5 | BSD-3-Clause | 5 years ago | |
| rackspace/php-opencloud | PHP SDK for Rackspace OpenCloud/OpenStack services. Manage Cloud Servers, Files, DNS, Load Balancers, Databases, Monitoring, and Identity via a unified API with authentication, region support, and common resource helpers for building cloud integrations. | 450 | 456 | 247 | 38K | 48 | 25.2 | 45.5 | NOASSERTION | 10 years ago | |
| smsapi/php-client | PHP client library for SMSAPI, providing a simple way to send SMS and manage messaging features from PHP applications. Suitable for integrating SMS notifications and related services into Laravel or custom PHP projects. | 0 | 68 | — | 57K | — | 24.1 | 46.5 | — | — | |
| sulu/form-bundle | SuluFormBundle adds dynamic form creation to the Sulu Admin. Content managers build fields in a simple grid, configure notification and confirmation emails, and render forms using Symfony Form Component theming. Compatible with Sulu 2.0+. | 88 | 88 | 77 | 6K | 61 | 48.6 | 55.9 | MIT | 2 weeks ago | |
| sulu/sulu | Sulu is an extensible open-source PHP CMS built on Symfony, designed for robust multilingual, multi-portal websites. It provides an intuitive admin interface to manage the full content lifecycle and serves as the core framework dependency for Sulu projects. | 1,333 | 1,333 | 357 | 20K | 493 | 66.9 | 49.0 | MIT | 1 week ago | |
| swarrot/swarrot | Swarrot is a PHP message consumer library that reads from multiple brokers (e.g., AMQP via pecl) and processes messages via a simple ProcessorInterface. Supports configurable processing stacks/middleware-style processors for retries, logging, and more. | 366 | 368 | 54 | 32K | 4 | 22.8 | 30.9 | MIT | 5 months ago | |
| symfony-cmf/resource-rest-bundle | — | 11 | 11 | 15 | 620 | 4 | 2.1 | 17.2 | — | 5 years ago | |
| theofidry/alice-data-fixtures | — | 323 | 324 | 77 | 448K | 5 | 25.4 | 50.0 | MIT | 5 months ago | |
| willdurand/hateoas | Hateoas is a PHP library for building HATEOAS-friendly REST representations. Configure links and embedded resources via annotations/attributes, XML or YAML, with expression language support, URL generators, and serializers (HAL JSON/XML) for rich hypermedia APIs. | 1,040 | 1,047 | 119 | 148K | 31 | 39.7 | 44.5 | NOASSERTION | 4 months ago | |
| zendframework/zend-hydrator | Zend Hydrator provides strategies and tools to extract data from objects and hydrate objects from arrays in PHP. Supports naming strategies, custom hydrators, and flexible configuration, useful for forms, APIs, and domain model mapping. | 154 | 164 | 39 | 92K | 3 | 3.4 | 27.0 | BSD-3-Clause | 6 years ago |
How can I help you explore Laravel packages today?