Releases: codemonster-ru/support
Releases · codemonster-ru/support
Release v1.4.1
Changed
- Added optional
$cast parameter to globalenv()helper to enable typed casting viaEnv::getCast()`.
Release v1.4.0
Changed
- Bumped
codemonster-ru/httpto^2.0. - Bumped
codemonster-ru/sessionto^2.0.
Release v1.3.1
Changed
- Guarded database helpers against redeclaration.
json()helper now uses the container response instance for consistency.- Added explicit return types to
abort()anddump()helpers. - Bumped
codemonster-ru/databaseto^2.0. - Session helper now distinguishes between "get" and "set" by argument count.
dd()now exits with status code 0.- Updated package metadata to reflect Annabel usage.
Fixed
- Cleaned up changelog encoding artifacts and restored ASCII formatting.
- Suppressed debug output in
DumpHelperTest. - Added test coverage for null session values and empty/zero request inputs.
Release v1.3.0
Added
- Global database helpers integrating the
codemonster-ru/databasepackage:db()— returns the active database connectionschema()— returns schema builder for the selected connectiontransaction()— executes callbacks inside a DB transaction
- Full PHPUnit test coverage for:
db()helperschema()helper- With isolated
DatabaseManagerand fake container bindings
- Support for SQLite, MySQL and future drivers automatically via
ConnectionInterface::schema().
Changed
SupportFakeContainerupdated for correct behavior with database helpers:singleton()is now eager, ensuring immediate instance creation- Improved compatibility with Annabel-style lazy container contracts
- Fully stable integration with request/view/db helpers
- Strengthened test isolation:
reset()now clears both bindings and instances- All tests run without requiring the Annabel framework
Fixed
schema()test failing due to instantiation of an abstract Grammar class
→ Now resolved automatically by the database package selecting proper driver grammar.- DB helper now correctly bootstraps connection configuration even without other framework components.
Release v1.1.0
Added
- New
abort()helper for throwing HTTP-like exceptions with a status code. - Introduced
HttpStatusExceptionInterfaceextendingThrowablefor consistent type support. - Added test coverage for
abort()including status code and message handling.
Updated
- Documentation: added
abort()to the list of provided helpers.
Release v1.0.0
Added
- Global helper functions for the entire Codemonster PHP ecosystem:
config()— access or modify configuration valuesenv()— read environment variablesdump(),dd()— elegant variable dumpingrequest()— get current HTTP request or inputresponse(),json()— send structured responsesrouter()/route()— define and access routessession()— read or write session dataview()/render()— render templates and return responses
- Seamless integration with the Annabel framework via
app()container - Standalone compatibility when Annabel is not installed
- Full PHPUnit test coverage for all helpers (18 tests / 25 assertions)
- Support for PHP 8.2 – 8.4 and PHPUnit 9–12