laminas/laminas-zendframework-bridge
's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.Name | Version | Size | License | Type | Vulnerabilities |
---|
The laminas/laminas-zendframework-bridge
is an advanced PHP package that provides a crucial role of linking legacy Zend Framework, Apigility, and Expressive classes to their replacements under the Laminas Project. This offers seamless transitioning without affecting the performance of existing projects. It's important to note that this package is utilized in conjunction with the composer plugin that installs Laminas packages in place of ZF/Apigility/Expressive packages. It supports Zend Framework MVC projects, Apigility projects, and Expressive versions.
Utilizing the laminas/laminas-zendframework-bridge
package in your project is quite straightforward. You should start by installing the library. This can be achieved by running the below command in your terminal:
$ composer require laminas/laminas-zendframework-bridge
Once the installation is complete, you may need to provide additional replacements for the configuration post processor, especially if your application uses third-party components that includes class names that the post processor rewrites.
For instance:
return [
'laminas-zendframework-bridge' => [
'replacements' => [
'to-replace' => 'replacement',
// ...
],
],
];
Here is a practical example, if your configuration included the following dependency mapping:
return [
'controller_plugins' => [
'factories' => [
'customZendFormBinder' => \CustomZendFormBinder\Controller\Plugin\Factory\BinderPluginFactory::class,
],
],
];
And you wanted the two strings that contain the verbiage ZendForm
to remain untouched, you could define the following replacements mapping:
return [
'laminas-zendframework-bridge' => [
'replacements' => [
// Never rewrite!
'customZendFormBinder' => 'customZendFormBinder',
'CustomZendFormBinder' => 'CustomZendFormBinder',
],
],
];
The official documentation for the laminas/laminas-zendframework-bridge
package is primarily contained within the provided README file on the package's GitHub repository. Additional support and discussions can be found on the Laminas forum. For reporting issues and bugs, there's the issues page on the package's GitHub repository.