PHPackages                             raphievila/basicsubscription - 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. [API Development](/categories/api)
4. /
5. raphievila/basicsubscription

ActiveLibrary[API Development](/categories/api)

raphievila/basicsubscription
============================

Unofficial Basic subscription php component for Mailgun api using CURL engine.

v1.0.0(8y ago)010GPL-3.0PHPPHP ^5.3 || ^7.0

Since Jul 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/raphievila/basicsubscription)[ Packagist](https://packagist.org/packages/raphievila/basicsubscription)[ RSS](/packages/raphievila-basicsubscription/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

BasicSubscription
=================

[](#basicsubscription)

This is an **extremely basic and unofficial** Mailgun component for subscription management. Specifically coded to create ajax base subscription method on a website. Do not include mail management capabilities.

Only include tools to subscribe, unsubscribe, verify structure or check status from a given email in an specified mailing list. As I said before, **basic** user based mailing list management to be installed on a website. Build for those whose code conflicts with Composer autoload and are not able to use the excellent [Mailguns's](https://mailgun.com) own PHP SDK.

Setup
-----

[](#setup)

Install using terminal or powershell `$> composer require raphievila/basicsubscription` when finished, create the setting file copying `basicsubscription/src/config/mg-example.ini` and rename it `mg.ini`.

On the newly created `mg.ini` file, setup your values specified on your Mailgun account. If you are in a hosting that do not allows you file system access to the root of your hosting, you need to take all precautions available to secure this file, since holds important and sensitive information.

NO COMPOSER SET UP
------------------

[](#no-composer-set-up)

The main reason I created this code was to implement Mailgun to a huge website I manage, built originally with PHP 3, now [PHP](https://php.net/) 5.7, but the Composer autoload conflicted with an autoload I created years ago, before even `namespace` was implemented on php objects, object oriented language was a beta option for php back then. For this reason I was unable to use the Mailgun SDK.

If you are an old timer like me, you probably have a bunch of applications with your own autoload system that might conflict with Composer autoload. In that case, copy the class to your class folder, and if by the time you created your autoload `namespace` was not available, remove the namespace on `line #2`, this if you still have conflicts. I suggest, as I'm doing, restructure your code to fit Composer autoload, which is a great includes manager or to any other code manager you prefer.

After saving your class, then save `basicsubscription/src/config` directory on the root of your PHP includes directory or on same directory from where you load your classes, or change `basicsubscription/raphievila/BasicSubsbription::__construct` to fit your needs and specify other location.

SUPPORT
-------

[](#support)

This is an as-is Class, but if you have any issue or request you can do so by contacting me through [Designer's Gate](http://designersgate.com/) or [Revolution Visual Arts](https://revolutionvisualarts.com) website.

If you need to use Mailgun for sending emails use SwiftMailer instead.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3277d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6283126?v=4)[Rafael](/maintainers/raphievila)[@raphievila](https://github.com/raphievila)

---

Top Contributors

[![raphievila](https://avatars.githubusercontent.com/u/6283126?v=4)](https://github.com/raphievila "raphievila (7 commits)")

### Embed Badge

![Health badge](/badges/raphievila-basicsubscription/health.svg)

```
[![Health](https://phpackages.com/badges/raphievila-basicsubscription/health.svg)](https://phpackages.com/packages/raphievila-basicsubscription)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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