Libraries tagged by precondition
nunzion/php-expect
50553 Downloads
An expressive but lightweight library to validate preconditions and invariants.
novora/poka-yoke
2 Downloads
Framework-independent precondition guards for PHP business operations.
hediet/contracts
49 Downloads
A library which helps to specify, check and reflect code contracts.
guardsman/guardsman
2431 Downloads
Guard clause assertion library to enforce parameter preconditions
concilio/contractor
23 Downloads
Based on hediet/contracts. A library which helps to specify, check and reflect code contracts. Fast porting for wordpress. An additional layer simply makes it possible to invalidate the exceptions in a production context.
appserver-io/pbc
107 Downloads
A lightweight Design-by-Contract library for PHP
mehr-als-nix/assumptions
8901 Downloads
Assumptions can be used to skip tests when common preconditions, like the PHP Version or installed extensions, are not met.
kruegge82/dhl-authentication-oauth-api
30 Downloads
This API describes how API client can obtain a token which is used to access various Parcel Germany APIs. Using this API is often the first step in making your API call. Preconditions You will need: * client ID (aka "API Key", obtained when you create an app in developer.dhl.com) * client secret (obtained when you create an app in developer.dhl.com) * GKP user name (obtained when setting up your business account with Parcel Germany) * GKP password (obtained when setting up your business account with Parcel Germany) Technical Information This uses an implementation of OAuth2 Password Grant (RFC 6749). After successfull usage you will: * have an opaque access token to be used for API calls afterwards * this token will have an expiration time
widoz/hooks-collection
143 Downloads
A collection of event listeners wrapper, allowing to decouple constraints and preconditions from the listener logic.
widoz/event-listeners-collection
3 Downloads
A collection of event listeners wrapper, allowing to decouple constraints and preconditions from the listener logic.
fundraisingbox/symfony-precognition
25713 Downloads
A Symfony bundle that allows validating requests without executing controller code
agentic-actions/laravel
835 Downloads
One Action class for every surface of a Laravel app: web and JSON routes, the CLI, queued jobs, laravel/ai agents, MCP clients and typed TypeScript.
crustum/inertia-cakephp
82 Downloads
CakePHP Inertia.js adapter: Inertia pages, shared and partial props, validation with Precognition, SSR, and DevTools
yngc0der/bitrix-phpcondition
47 Downloads
"PHP code" discount condition feature
codenyra/precognition-plus
6 Downloads
Checks common Laravel FormRequest rules in the browser for Precognition forms, with Precognition as the fallback for rules that need the server.