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

  Files folder image Files  /  app  
File Role Description
Files folder imageConsole (1 file, 1 directory)
Files folder imageExceptions (1 file)
Files folder imageHttp (1 file, 2 directories)
Files folder imageJobs (1 file)
Files folder imageMail (1 file)
Files folder imageModels (5 files)
Files folder imageProviders (5 files)
  Plain text file JsonResponseDecorator.php Class Class source

  Files folder image Files  /  app  /  Console  
File Role Description
Files folder imageCommands (1 file)
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Console  /  Commands  
File Role Description
  Plain text file SendSubscriptionEmails.php Class Class source

  Files folder image Files  /  app  /  Exceptions  
File Role Description
  Plain text file Handler.php Class Class source

  Files folder image Files  /  app  /  Http  
File Role Description
Files folder imageControllers (1 file, 1 directory)
Files folder imageMiddleware (8 files)
  Plain text file Kernel.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  
File Role Description
Files folder imageApi (2 files)
  Plain text file Controller.php Class Class source

  Files folder image Files  /  app  /  Http  /  Controllers  /  Api  
File Role Description
  Plain text file UserController.php Class Class source
  Plain text file WebsiteController.php Class Class source

  Files folder image Files  /  app  /  Http  /  Middleware  
File Role Description
  Plain text file Authenticate.php Class Class source
  Plain text file EncryptCookies.php Class Class source
  Plain text file PreventRequestsDuringMaintenance.php Class Class source
  Plain text file RedirectIfAuthenticated.php Class Class source
  Plain text file TrimStrings.php Class Class source
  Plain text file TrustHosts.php Class Class source
  Plain text file TrustProxies.php Class Class source
  Plain text file VerifyCsrfToken.php Class Class source

  Files folder image Files  /  app  /  Jobs  
File Role Description
  Plain text file NewPostEmail.php Class Class source

  Files folder image Files  /  app  /  Mail  
File Role Description
  Plain text file NewPostEmail.php Class Class source

  Files folder image Files  /  app  /  Models  
File Role Description
  Plain text file DeliveredSubscription.php Class Class source
  Plain text file Post.php Class Class source
  Plain text file Subscription.php Class Class source
  Plain text file User.php Class Class source
  Plain text file Website.php Class Class source

  Files folder image Files  /  app  /  Providers  
File Role Description
  Plain text file AppServiceProvider.php Class Class source
  Plain text file AuthServiceProvider.php Class Class source
  Plain text file BroadcastServiceProvider.php Class Class source
  Plain text file EventServiceProvider.php Class Class source
  Plain text file RouteServiceProvider.php Class Class source

  Files folder image Files  /  bootstrap  
File Role Description
  Plain text file app.php Class Class source

  Files folder image Files  /  config  
File Role Description
  Plain text file app.php Class Class source
  Plain text file auth.php Class Class source
  Accessible without login Plain text file broadcasting.php Aux. Auxiliary script
  Accessible without login Plain text file cache.php Aux. Auxiliary script
  Accessible without login Plain text file cors.php Aux. Auxiliary script
  Accessible without login Plain text file database.php Aux. Auxiliary script
  Accessible without login Plain text file filesystems.php Aux. Auxiliary script
  Accessible without login Plain text file hashing.php Aux. Auxiliary script
  Plain text file logging.php Class Class source
  Accessible without login Plain text file mail.php Aux. Auxiliary script
  Accessible without login Plain text file queue.php Aux. Auxiliary script
  Plain text file sanctum.php Class Class source
  Accessible without login Plain text file services.php Aux. Auxiliary script
  Accessible without login Plain text file session.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files  /  database  
File Role Description
Files folder imagefactories (1 file)
Files folder imagemigrations (9 files)
Files folder imageseeders (5 files)

  Files folder image Files  /  database  /  factories  
File Role Description
  Plain text file UserFactory.php Class Class source

  Files folder image Files  /  database  /  migrations  
File Role Description
  Plain text file 2014_10_12_000000_create_users_table.php Class Class source
  Plain text file 2014_10_12_100000_...rd_resets_table.php Class Class source
  Plain text file 2019_08_19_000000_...iled_jobs_table.php Class Class source
  Plain text file 2019_12_14_000001_...ss_tokens_table.php Class Class source
  Plain text file 2021_11_14_070125_..._websites_table.php Class Class source
  Plain text file 2021_11_14_070234_...criptions_table.php Class Class source
  Plain text file 2021_11_14_070515_create_posts_table.php Class Class source
  Plain text file 2021_11_14_073732_create_jobs_table.php Class Class source
  Plain text file 2021_11_14_074217_...criptions_table.php Class Class source

  Files folder image Files  /  database  /  seeders  
File Role Description
  Plain text file DatabaseSeeder.php Class Class source
  Plain text file PostSeeder.php Class Class source
  Plain text file SubscriptionSeeder.php Class Class source
  Plain text file UserSeeder.php Class Class source
  Plain text file WebsiteSeeder.php Class Class source

  Files folder image Files  /  public  
File Role Description
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Plain text file index.php Class Class source
  Accessible without login Plain text file robots.txt Doc. Documentation
  Accessible without login Plain text file web.config Data Auxiliary data

  Files folder image Files  /  resources  
File Role Description
Files folder imagejs (2 files)
Files folder imagelang (1 directory)
Files folder imageviews (1 file, 1 directory)

  Files folder image Files  /  resources  /  js  
File Role Description
  Accessible without login Plain text file app.js Data Auxiliary data
  Accessible without login Plain text file bootstrap.js Data Auxiliary data

  Files folder image Files  /  resources  /  lang  
File Role Description
Files folder imageen (4 files)

  Files folder image Files  /  resources  /  lang  /  en  
File Role Description
  Accessible without login Plain text file auth.php Aux. Auxiliary script
  Accessible without login Plain text file pagination.php Aux. Auxiliary script
  Accessible without login Plain text file passwords.php Aux. Auxiliary script
  Accessible without login Plain text file validation.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  views  
File Role Description
Files folder imagemail (1 file)
  Accessible without login Plain text file welcome.blade.php Aux. Auxiliary script

  Files folder image Files  /  resources  /  views  /  mail  
File Role Description
  Accessible without login Plain text file new-post-email.blade.php Aux. Auxiliary script

  Files folder image Files  /  routes  
File Role Description
  Plain text file api.php Class Class source
  Accessible without login Plain text file channels.php Example Example script
  Accessible without login Plain text file console.php Example Example script
  Accessible without login Plain text file web.php Aux. Auxiliary script

  Files folder image Files  /  tests  
File Role Description
Files folder imageFeature (1 file)
Files folder imageUnit (1 file)
  Plain text file CreatesApplication.php Class Class source
  Plain text file TestCase.php Class Class source

  Files folder image Files  /  tests  /  Feature  
File Role Description
  Plain text file ExampleTest.php Class Class source

  Files folder image Files  /  tests  /  Unit  
File Role Description
  Plain text file ExampleTest.php Class Class source

 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.