Git Product home page Git Product logo

imap_parser.php's Introduction

Imap_parser.php

IMAP mailbox parser using PHP & return Array or JSON.

  • data:

    • email:
      • hostname
      • username
      • password
    • pagination:
      • sort
      • limit
      • offset
  • result:

    • status
    • email
    • count
    • inbox:
      • id
      • subject
      • from
      • email
      • date
      • message
      • image
    • pagination
      • sort
      • limit
      • offset
        • back
        • next

Sample:

<?php

// include Imap_parser class include_once('lib/Imap_parser.php');

// create Imap_parser Object $email = new Imap_parser();

// data $data = array( // email account 'email' => array( 'hostname' => '{mail.ibacor.com:143/notls}INBOX', 'username' => '[email protected]', 'password' => 'omt3l0l3t0m'
), // inbox pagination 'pagination' => array( 'sort' => 'ASC', // or DESC 'limit' => 3, 'offset' => 9 ) );

// get inbox. Array $result = $email->inbox($data);

// Array print_r($result);

// JSON // echo json_encode($result);

Result:

Array
(
    [status] => success
    [email] => [email protected]
    [count] => 113
    [inbox] => Array
        (
            [0] => Array
                (
                    [id] => 10
                    [subject] => Re: [bachors/jQuery-Youtube-Channels-Playlist]
                    [from] => anu
                    [email] => [email protected]
                    [date] => Thu, 24 Nov 2016 11:12:02 +0000
                    [message] => Hi, I'm anu on github.
                    [image] => data:image/jpeg;base64,...
                )
        [1] => Array
            (
                ...
            )

        [2] => Array
            (
                ...
            )

    )

[pagination] => Array
    (
        [sort] => ASC
        [limit] => 3
        [offset] => Array
            (
                [back] => 6
                [next] => 12
            )

    )

)

imap_parser.php's People

Contributors

bachors avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.