Download the PHP package grikdotnet/z-unfinal without Composer
On this page you can find all versions of the php package grikdotnet/z-unfinal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download grikdotnet/z-unfinal
More information about grikdotnet/z-unfinal
Files in grikdotnet/z-unfinal
Download grikdotnet/z-unfinal
More information about grikdotnet/z-unfinal
Files in grikdotnet/z-unfinal
Vendor grikdotnet
Package z-unfinal
Short Description Library allows converting final classes to non-final, abstract to non-abstract, and adding traits
License MIT
Package z-unfinal
Short Description Library allows converting final classes to non-final, abstract to non-abstract, and adding traits
License MIT
Please rate this library. Is it a good library?
Informations about the package z-unfinal
Z-Engine Unfinal
This is a partial fork of the z-engine library, compatibile with PHP 8.4.
This package allows you to:
- Extend final classes
- Create instances of abstract classes
- Add traits to existing classes dynamically
Intended Use Cases
- Unit Testing:
- Mock or extend classes declared as
finalorabstractin your tests. - Enable mocking frameworks to work with classes that would otherwise be unmockable.
- Mock or extend classes declared as
- Dynamic Trait Injection:
- Augment class functionality for testing
- Implement behaviors such as "friendly" classes that access each other's protected methods.
Installation
Examples:
Extend a final class
Create an instance of an abstract class
Dynamically Add Traits to a Class
License
MIT. See LICENSE for details.
Original project: lisachenko/z-engine
Pre-requisites and initialization
- PHP 8 or higher, x64 non-thread-safe version
- FFI extension enabled
- To use in fcgi mode, call
Core::preload()in your script specified byopcache.preload. Checkpreload.phpfor an example.
All versions of z-unfinal with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-ffi Version *
ext-ffi Version *
The package grikdotnet/z-unfinal contains the following files
Loading the files please wait ...