Download the PHP package khaled-00/imap without Composer

On this page you can find all versions of the php package khaled-00/imap. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package imap

IMAP library

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version

A PHP 5.4+ library to read and process e-mails over IMAP.

Installation

Make sure the PHP IMAP extension is installed. For instance on Debian:

The recommended way to install the IMAP library is through Composer:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Usage

Connect and Authenticate

Options

You can specify port, flags and parameters to the server:

Mailboxes

Retrieve mailboxes (also known as mail folders) from the mail server and iterate over them:

Or retrieve a specific mailbox:

Delete a mailbox:

Messages

Retrieve messages (e-mails) from a mailbox and iterate over them:

Searching for Messages

Message Properties and Operations

Get message number and unique message id in the form <...>:

Get other message properties:

Get message headers as a \Ddeboer\Imap\Message\Headers object:

Get message body as HTML or plain text:

Reading the message body marks the message as seen. If you want to keep the message unseen:

Move a message to another mailbox:

Deleting messages:

Message Attachments

Get message attachments (both inline and attached) and iterate over them:

Download a message attachment to a local file:

Running the Tests

This library is functionally tested on Travis CI against the Gmail IMAP server.

If you have your own IMAP (test) account, you can run the tests locally by providing your IMAP (e.g., Gmail) credentials:

You can also set an EMAIL_SERVER variable, which defaults to imap.gmail.com:


All versions of imap with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-imap Version *
ddeboer/transcoder Version ~1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package khaled-00/imap contains the following files

Loading the files please wait ....