This repository contains Aspose.Email Cloud SDK for PHP source code. This SDK allows you to work with Aspose.Email Cloud REST APIs in your PHP applications quickly and easily, with zero initial cost.
Aspose.Email Cloud home
API Reference
Aspose.Email Cloud is a REST API for creating email applications that work with standard email file formats. This SDK:
- Lets developers manipulate different emails’ formats such as Outlook MSG, EML, VCard, and iCalendar files
- Lets developers manipulate different emails' formats such as Outlook MSG, EML, VCard, and iCalendar files
- Supports AI functions:
- The Business card recognition
- The Name API for parsing and handling personal names
- Has a built-in email client. This client provides:
- Unified REST API for different email protocols: IMAP, POP3, SMTP, EWS, WebDav
- Virtual multi-account
- Message threads (POP3 accounts are also supported)
- Email configuration discovery
- Disposable email address detection
- New MAPI message files API with models:
MapiMessageDto
- represents the Microsoft Outlook message.MapiCalendarDto
- represents the Microsoft Outlook calendar object.MapiContactDto
- represents the Microsoft Outlook contact information.
- Improved Recurrence pattern support for CalendarDto.
See Release notes
The complete source code is available in the GIT repository.
Use SDK tutorials:
- SDK setup - installation, account setup, first API calls
- Business Cards Recognition API - convert captured business cards and name card images, into a vCard format
- Working with Name API - format, genderize, compare, parse, autocomplete names
- Email Message Files - Convert EML to MSG and back, edit EML files, etc.
- Quick Start With iCalendar API - Crate and edit iCalendar files
- Quick Start With VCard API - Create and edit VCard files, business card recognition
- Quick Start With Email Client - Setup builtin email client, search/fetch/send/move/delete messages
- Email Client Threads - Fetch/Move/Delete email message threads using builtin email client
- File converters
SDK reference documentation is available in this README
To use this SDK, you need an App SID and an App Key; they can be looked up at Aspose Cloud Dashboard (it requires free registration in Aspose Cloud for this).
You can either directly use SDK in your project via source code or get Packagegist distribution. From the command line:
composer require aspose/aspose-email-cloud
See more details about SDK installation in this tutorial: SDK setup
To use the API, you should create an EmailApi object:
$configuration = new Configuration(); // Aspose\Email\Configuration
$configuration
->setAppKey($_ENV["Your App Key"])
->setAppSid($_ENV["Your App SID"]);
$api = new EmailApi(
null, //GuzzleHttp client, will be created automatically if parameter is null
$configuration);
Use AiBcrParseModel
method to parse business card image to VCard DTO:
$content = file_get_contents("/tmp/alex.png");
$imageBase64 = base64_encode($content);
$result = $api->aiBcrParseModel(new AiBcrParseModelRequest(
new AiBcrBase64Rq(null, array(new AiBcrBase64Image(true, $imageBase64)))));
$contact = $result->getValue()[0];
See more details here and here
All Aspose.Email for Cloud SDKs, helper scripts and templates are licensed under MIT License.
- SDK reference documentation
- Website
- Product Home
- Documentation
- API Reference
- Free Support Forum
- Paid Support Helpdesk
- Blog
- Git repository: Aspose.Email Cloud SDK for .Net
- Git repository: Aspose.Email Cloud SDK for Ruby
- Git repository: Aspose.Email Cloud SDK for Python
- Git repository: Aspose.Email Cloud SDK for PHP
- Git repository: Aspose.Email Cloud SDK for Typescript
- Git repository: Aspose.Email Cloud SDK for Java