# What replaces Zend\_Mail\_Storage\_Maildir, or what do I install@

**URL:** https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621
**Category:** Migration
**Tags:** laminas-mail
**Created:** [November 27, 2021, 6:51pm UTC](https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621 "2021-11-27T18:51:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![chrisisbd](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@chrisisbd](https://discourse.laminas.dev/u/chrisisbd)
#### Post date: [November 27, 2021, 6:51pm UTC](https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621/1 "2021-11-27T18:51:26Z")

</div>

I have some rather old PHP code (in a DokuWiki plugin) that I wrote to read E-Mail messages.

It uses Zend\_Mail\_Storage\_Maildir.

What do I need to install to provide this, or similar, functions? It’s on my own server with root access etc. I _think_ I originally installed a package called zendframework to provide this, obviously I don’t (didn’t) need all of this but that was the easiest way to do it. If I can just install the PHP mail handling code that would be brilliant.

This is on an Ubuntu 21.10 system with Apache2 as the web server.

---

<div class="post-metadata">

### Author: ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)
#### Post date: [November 28, 2021, 9:12am UTC](https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621/2 "2021-11-28T09:12:40Z")

</div>

The same storage type is also available in laminas-mail:

[https://docs.laminas.dev/laminas-mail/read/#using-local-storage-via-mbox-and-maildir](https://docs.laminas.dev/laminas-mail/read/#using-local-storage-via-mbox-and-maildir)

---

<div class="post-metadata">

### Author: ![chrisisbd](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@chrisisbd](https://discourse.laminas.dev/u/chrisisbd)
#### Post date: [November 28, 2021, 9:46am UTC](https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621/3 "2021-11-28T09:46:21Z")

</div>

OK, thank you.

So how do I get laminas-mail installed on my system?

The Ubuntu repositories (which are my preferred place from which to install) offers php-zend-stdlib, php-zend-eventmanager and php-zend-code from the Laminas project but it’s not clear if any of these includes laminas-mail, however I suspect they don’t.

I don’t really want the whole of Laminas if I can avoid it.

If I installed just laminas-mail from github will it be missing dependencies?

Should I install composer (which is available from the Ubuntu repositories) and use that to install laminas-mail? This sounds relatively safe and easy.

Sorry for so many questions.

---

<div class="post-metadata">

### Author: ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)
#### Post date: [November 28, 2021, 10:43am UTC](https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621/4 "2021-11-28T10:43:33Z")

</div>

> [@chrisisbd](#):
>
> Should I install composer (which is available from the Ubuntu repositories) and use that to install laminas-mail? This sounds relatively safe and easy.

This is the way you have to go.

But installation alone will not work, you must rewrite your application / script. laminas-mail may contain the same type of storage, but this does not mean that your old code will work.  
There are years between version 1 of Zend Framework and the Laminas components. These are two different systems.

---

<div class="post-metadata">

### Author: ![chrisisbd](https://avatars.discourse-cdn.com/v4/letter/c/a88e57/32.png) [@chrisisbd](https://discourse.laminas.dev/u/chrisisbd)
#### Post date: [November 28, 2021, 11:08am UTC](https://discourse.laminas.dev/t/what-replaces-zend-mail-storage-maildir-or-what-do-i-install/2621/5 "2021-11-28T11:08:17Z")

</div>

Yes, OK, I realise it’s not a “drop in replacement” but it looks quite  
well documented so I think I can find my way from there.

Thanks!
