PHP Classes

Inisev Sub PHP Email API: API to manage newsletter subscriptions

Recommend this page to a friend!
  Info   View files Documentation   View files View files (91)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-11-21 (12 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 27 This week: 3All time: 10,381 This week: 60Up
Version License PHP version Categories
inisev-sub 1.0Shareware5Email, PHP 5, Databases, Libraries, W...
Description Author

This package implements an API to manage newsletter subscriptions.

It provides a package that implements an API with several functions to execute actions to manage newsletter mailing list subscriptions and delivery. Currently, it can:

- Create subscriber user records

- Create a Web site that will own each newsletter

- Create newsletter message posts

- Manage newsletter user subscriptions

Innovation Award
PHP Programming Innovation award nominee
November 2021
Nominee
Vote
Newsletters are a common way that many sites use to advertise new content on the site pages.

Delivering a newsletter is a complex process. This package can simplify the process by providing a solution that implements many of the critical steps of processing newsletters.

The package also provides an API so other applications running on different servers can control essential aspects of newsletter processing.

Manuel Lemos
Picture of Ahmad Mustapha
Name: Ahmad Mustapha <contact>
Classes: 17 packages by
Country: Nigeria Nigeria
Innovation award
Innovation award
Nominee: 6x

 

Details

Inisev Email Subscription

Email subscription system

Installation

Clone repo

git clone git@github.com:ahmard/inisev-sub.git

Install composer packages

composer install

Generate app secret key

php artisan key:generate

Edit .env file to provide necessary config

Run migrations

php artisan migrate --seed

Usage

Start the server

php artisan serve

You will then send json payload to each below endpoints.<br/> I use PhpStorm to send request to the endpoints, you can find the request config here

Create User

POST http://localhost:8000/api/users

{
    "name": "Jane",
    "email": "jane@anonym.net",
    "password": "1234"
}

Create Website

POST http://localhost:8000/api/websites

{
    "user": 1,
    "website_name": "Inisev",
    "website_domain": "inisev.com"
}

Create Post

POST http://localhost:8000/api/websites/posts

{
    "user": 1,
    "post_title": "Post Number 1",
    "post_content": "Post content should be here"
}

Make Subscription

POST http://localhost:8000/api/websites/subscriptions

{
    "user": 1,
    "website": 1
}

Sending Email

Execute below command to send email to subscribers

php artisan subs:send --post=1 --site=1
  Files folder image Files  
File Role Description
Files folder imageapp (1 file, 7 directories)
Files folder imagebootstrap (1 file)
Files folder imageconfig (15 files)
Files folder imagedatabase (3 directories)
Files folder imagepublic (4 files)
Files folder imageresources (3 directories)
Files folder imageroutes (4 files)
Files folder imagetests (2 files, 2 directories)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Plain text file artisan Class Class source
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file package.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file requests.http Data Auxiliary data
Accessible without login Plain text file server.php Aux. Auxiliary script
Accessible without login Plain text file webpack.mix.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:27
This week:3
All time:10,381
This week:60Up

For more information send a message to info at phpclasses dot org.