Questions tagged [laminas]

Laminas (previously Zend Framework), is an open source general purpose application framework implemented in PHP and licensed under the New BSD license.

Laminas, previously , is an open source web application framework implemented in PHP and licensed under the New BSD license.

The Laminas Project is comprised of the following sub-projects:

154 questions
6
votes
2 answers

'Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead.'

I have only upgraded to Laravel ^6.0 from 5.8*. On running $ composer require laravel/passport I have got error message "Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead." I have…
Steven
  • 1,071
  • 15
  • 15
5
votes
1 answer

Laminas Cache config issue after updated to PHP 8.1 from zend3

I work on a project which is recently updated to Laminas and PHP 8.1 from Zend3 and PHP 7.4. in config/autoload/global.php 'caches' => require __DIR__ . '/caches.php', and this is caches.php $cacheDefault = [ 'adapter' => [ 'name' …
3
votes
2 answers

Adding events to Laminas

I am trying to add event for Laminas Framework that will fire when \Laminas\Mvc\MvcEvent::EVENT_DISPATCH is triggered. But absolutelly nothing happends, like this triggers not exists. What am I doing wrong? This is the code under the…
b4rt3kk
  • 1,419
  • 3
  • 17
  • 26
3
votes
0 answers

How to serialize an Entity in laminas/mezzio using doctrine and jms/serializer

We're currently working on an API using laminas/mezzio and I'd like to generate different outputs for the details and list routes. I'm looking for a way to generate the following results: List-Response { "_total_items": 2, "_page": 1, …
Roman
  • 139
  • 12
3
votes
1 answer

Can Laminas Dependency Plugin be removed after the migration from ZF3 to Laminas?

I migrated an application from Zend Framework 3 to Laminas. During the migration, the migration script added the laminas/laminas-dependency-plugin dependency to the composer.json file. After that, I removed this (by running composer remove…
automatix
  • 14,018
  • 26
  • 105
  • 230
2
votes
2 answers

magneto 2 installtion error on composer install

While installing magento 2.4.4 i got an issue like Install of laminas/laminas-dependency-plugin failed …
2
votes
1 answer

Is there anyone who knows how to make a db migration files in Laminas php?

I am going to make a db migration file and migrate the file to database by using the a command. But I can't find the command. In Laravel we approach the goal by using this command. php artisan make:migrate migration_client_table Is there any…
2
votes
2 answers

laminas-migration migrate -> "command not found" (ubuntu 20.04)

I am trying to migrate a ZF3 app to laminas. I have installed composer via apt, and added its vendor/bin to the PATH environment variable, for global usage: $ composer -V Composer version 2.2.4 2022-01-08 12:30:42 $ composer global config…
John Crest
  • 201
  • 1
  • 4
  • 24
2
votes
1 answer

PHP Laminas PHPStan - Call to an undefined method Laminas\Stdlib\RequestInterface::isPost()

We are running phpstan on a laminas project and running into errors. As an example, in the controller we have some standard code which works fine. $request = $this->getRequest(); if ($request->isPost()) { ... } However phpstan is…
Rhys
  • 41
  • 4
2
votes
1 answer

Magento 2.4.2 invalid header value detected in laminas-http module GenericHeader.php

I installed Magento 2.4.2 on XAMPP server on my localhost by downloading using Composer and running php bin/magento setup:install after the installation I run php bin/magento setup:static-content:deploy -f Now when I try to run Magento from…
Hagop
  • 29
  • 5
2
votes
1 answer

Middleware and authentication with laminas-mvc

I had an old ZF (actually ZF1) application laying around, so i decided to play a little bit with laminas/mezzio to see how it works and if updating would be possible. So as it is an old ZF1 application, laminas-mvc seems the way the go, so i started…
patman
  • 2,780
  • 4
  • 30
  • 54
1
vote
1 answer

Service with name "Laminas\Session\Config\ConfigInterface" could not be created

I am currently working on a PHP Laminas application. I am new to Laminas and PHPUnit. This application is working correctly in web mode (apache and development server). I am adding unit tests recently. Unfortunately, I am getting this error when I…
Erick Villatoro
  • 170
  • 1
  • 9
1
vote
1 answer

Service with name "FilesystemCache" could not be created. Reason: Configuration must contain a "adapter" key

I am getting this error and due to the updated version of Laminas cache component. The code below works fine on previous versions of Laminas framework. use Laminas\Session\Storage\SessionArrayStorage; use Laminas\Session\Validator\RemoteAddr; use…
dino
  • 23
  • 4
1
vote
2 answers

Magento 2 Laminas mail 'Invalid header value' error when email name contains German characters

When I try to send mail from admin order, if customer name has special German/Danish characters, email is not sending. Sending perfectly for other customers. The error I found was Invalid header value I traced the error to…
1
vote
0 answers

How can I convert MySQL query to laminas-db object format?

I have this MySQL query, I want to convert this query to Laminas-db https://docs.laminas.dev/laminas-db/sql/#update UPDATE table_a AS usa, table_b AS X, table_c AS ad SET usa.account_no = ad.dea_license_num, usa.app_init_date =…
Siddhartha
  • 31
  • 4
1
2 3
10 11