PHPackages                             teknicode/aws-wrapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. teknicode/aws-wrapper

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

teknicode/aws-wrapper
=====================

Simple Wrapper for AWS SDK for PHP

1.3.0(7y ago)0761MitPHPPHP &gt;=5.5

Since Apr 3Pushed 7y agoCompare

[ Source](https://github.com/teknicode/aws-wrapper)[ Packagist](https://packagist.org/packages/teknicode/aws-wrapper)[ RSS](/packages/teknicode-aws-wrapper/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Simple AWS Wrapper
------------------

[](#simple-aws-wrapper)

I'm wrote this function to speed up my own workflow when using Amazon Web Services to send email or sms.

I plan to expand it as and when I have time :)

#### Install with composer

[](#install-with-composer)

`composer require teknicode/aws-wrapper`

#### Requirements

[](#requirements)

If installed with composer dependents will also be installed. Otherwise, also install and require the AWS PHP SDK version 3+.

#### Usage

[](#usage)

Include the class:

`require('./src/Aws.php')`

or

`require('./vendor/autoload.php')` if you install with composer.

Create an instance:

```
$aws_credentials = array(
   "aws_access_key_id" => "", /* REQUIRED */
   "aws_secret_access_key" => "", /* REQUIRED */
   "default_region" => "", /* REQUIRED */
   "sms_sender_id" => "", /* REQUIRED for sms sending */
   "email_from" => "" /* REQUIRED for email sending */
);

$wrapper = new Teknicode\Aws($aws_credentials);
```

Send SMS:

```
$sms = $wrapper->sms("phone_number","message");

returns
array("status"=>"success","message_id"=>"{MESSAGE ID}")
or
array("status"=>"error","error"=>"{ERROR MESSAGE}")
```

Send Email:

```
$sms = $wrapper->email("email address","subject","html",[attachments]);

returns
array("status"=>"success","message_id"=>"{MESSAGE ID}")
or
array("status"=>"error","error"=>"{ERROR MESSAGE}")

```

Attachments should be provided as an array of references.

#### License

[](#license)

Copyright 2018 Teknicode

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~108 days

Total

3

Last Release

2746d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b3da0819724a3af76ae3145614d7e680ef862dd1561e0ae6eb9d482eaaed848?d=identicon)[teknicode](/maintainers/teknicode)

---

Top Contributors

[![teknicode](https://avatars.githubusercontent.com/u/37957290?v=4)](https://github.com/teknicode "teknicode (8 commits)")

---

Tags

awsemailsms

### Embed Badge

![Health badge](/badges/teknicode-aws-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/teknicode-aws-wrapper/health.svg)](https://phpackages.com/packages/teknicode-aws-wrapper)
```

###  Alternatives

[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[ferdous/laravel-otp-validate

Laravel package for OTP validation with built-in features like retry and resend mechanism. Built in max retry and max resend blocking. OTP/Security Code can be send over SMS or Email of your choice with user-defined template.

7124.4k](/packages/ferdous-laravel-otp-validate)[tuyakhov/yii2-notifications

The extension provides support for sending notifications across a variety of delivery channels, including mail, SMS, Slack etc. Notifications may also be stored in a database so they may be displayed in your web interface.

6735.5k2](/packages/tuyakhov-yii2-notifications)[juhasev/laravel-ses

Allows you to track opens, deliveries, bounces, complaints and clicked links when sending emails through Laravel and Amazon SES

1710.0k](/packages/juhasev-laravel-ses)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
