Download the PHP package rvalitov/mailslurp-php without Composer
On this page you can find all versions of the php package rvalitov/mailslurp-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mailslurp-php
⚠️ The MailSlurp has now official PHP client, use it https://packagist.org/packages/mailslurp/mailslurp-client-php
So this repository is archived.
MailSlurp-PHP
MailSlurp is an end-to-end email testing service. It has a web-app for managing your account and a REST API for sending and receiving emails from randomly generated email addresses.
Why?
MailSlurp was built to test the integration of email services within an app. If your application relies on the sending or receiving of emails, then MailSlurp will let you test that functionality. This is a more common need than you might think: if your app has a sign up process that requires email verification, how do you currently test that?
Getting started
Every API request requires a valid API Key appended as a query parameter. To obtain an API Key visit your account dashboard.
The general flow is as follows:
- Create a new inbox during a test. The email address will be returned in the apiReponse.
- Send an email to that address or trigger an action in your test that does so.
- Fetch the email for your new inbox and check if its content is what you expected, or use the content in another action.
SDK
- There is an official Javascript SDK available on npm.
- This PHP version was generated from swagger JSON definition using swagger-codegen and adapted for use with PHP 7.0+ (see commits for a full list of changes).
Legal
The Mailslurp API code is owned by PettmanUG and uses a proprietary software licence. The SDKs are free to use in any project and have an ISC licence.
Bugs, features, support
To report bugs or request features please see the contact page. For help see support.
Requirements
PHP 7.0 and later
Installation & Usage
Composer
To install the bindings via Composer, run command
Or manually add the following to composer.json
:
Then run composer install
Manual Installation
Download the files and include autoload.php
:
Tests
Note. Tests are not implemented yet!
To run the unit tests:
Getting Started
Please follow the installation procedure and then run the following:
Documentation for API Endpoints
All URIs are relative to https://api.mailslurp.com
Class | Method | HTTP request | Description |
---|---|---|---|
AccountControllerApi | createSubscriptionUsingPOST | POST /subscription | Upgrade a user to paid |
AccountControllerApi | getAccountsUsingGET | GET /accounts | List available account types |
InboxControllerApi | createRandomInboxUsingPOST | POST /inboxes | Create an inbox |
InboxControllerApi | deleteInboxUsingDELETE | DELETE /inboxes/{uuid} | Delete an inbox |
InboxControllerApi | getEmailsForInboxUsingGET | GET /inboxes/{uuid} | Fetch emails for a given inbox |
InboxControllerApi | getListOfInboxesUsingGET | GET /inboxes | List your inboxes |
InboxControllerApi | sendEmailFromUserUsingPOST | POST /inboxes/{uuid} | Send an email |
UserControllerApi | getUserUsingGET | GET /user | Fetch a user |
Documentation For Models
- AccountDto
- AccountsDto
- ApiReponse
- ApiReponseInboxDto_
- ApiReponseListEmailDto_
- ApiReponseListInboxDto_
- EmailDto
- InboxDto
- SendEmailDto
- UserDto
Documentation For Authorization
All endpoints do not require authorization.
Generation from Swagger
If you want to generate the original code from Swagger, use the following commands:
All versions of mailslurp-php with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.2