PHP Classes

Basic PHP Bulk Email Queue System: Queue messages in a database to be delivered later

Recommend this page to a friend!
  Info   View files Example   View files View files (47)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 242 All time: 7,997 This week: 94Up
Version License PHP version Categories
angeldromelibs 1.0.0Freely Distributable7Email, PHP 5, Databases
Description 

Author

This package can be used to queue email messages in a database to be delivered later.

It can take email messages to be delivered and stores them in a database.

The messages can be delivered later using a background process eventually started by the cron program.

Innovation Award
PHP Programming Innovation award nominee
October 2020
Number 8
Many applications need to deliver newsletters or other types of email messages to many users at once.

This package provides a solution that can perform bulk email operations. It uses a local database queue to store the messages to be delivered. Then it can process all queued mailings by sending the email messages to their recipients.

Manuel Lemos
Picture of Sriram
Name: Sriram <contact>
Classes: 1 package by
Country: India India
Innovation award
Innovation award
Nominee: 1x

Example

<?php
   
require_once("autoload.php");

    use
Com\Angeldrome\Examples\Logger;
    if (
php_sapi_name() == "cli") {
       
$lg = new Logger();
       
//$lg->runExamples();
       
$thiscrashes->isit();
    } else {
       
header("Location: index.php");
    }


Details

Some core libs that can be used for app development.

Angeldrome Libs

A very minimal queuing system for asynchronous email sending and db write. Can be extended for logger among other similar IO and response delay operations.

This is very much in incubation as now. Am using SQLite for db as now and pretty much can be turned into anything that suits.

Code works, tested email sending and db writes and logger store. All went good.

Cron dependencies are there. such as 1. Please check src/Com/Angeldrome/Shells/Cron.php on how to use for email async. 2. DBResume.php can be used via cron as well (code is in src/Com/Angeldrome/Shells/ directory).

 This is used in case the db write failed in an earlier instancelike timeout or anything.
 Lib writes such records in a flat text file, and this Cron Shell can get the record and push to db.

Will improve this readme at a later time.


  Files folder image Files  
File Role Description
Files folder imageprivate (1 file, 1 directory)
Files folder imagespec (1 directory)
Files folder imagesrc (1 directory)
Files folder imagetemplates (1 directory)
Files folder imagevendor (1 file)
Accessible without login Plain text file .phpspec.yml Data Auxiliary data
Accessible without login Plain text file autoload.php Aux. Auxiliary script
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file error.php Aux. Auxiliary script
Accessible without login Plain text file feature-test-cli.php Example Example script
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  private  
File Role Description
Files folder imagealt (1 file)
  Accessible without login Plain text file empty Data Auxiliary data

  Files folder image Files  /  private  /  alt  
File Role Description
  Accessible without login Plain text file empty Data Auxiliary data

  Files folder image Files  /  spec  
File Role Description
Files folder imageCom (1 directory)

  Files folder image Files  /  spec  /  Com  
File Role Description
Files folder imageAngeldrome (6 directories)

  Files folder image Files  /  spec  /  Com  /  Angeldrome  
File Role Description
Files folder imageBase (2 files)
Files folder imageConfigs (3 files)
Files folder imageExceptions (3 files)
Files folder imageLibs (2 files)
Files folder imageShells (3 files)
Files folder imageUtils (3 files)

  Files folder image Files  /  spec  /  Com  /  Angeldrome  /  Base  
File Role Description
  Plain text file LibBaseExceptionSpec.php Class Class source
  Plain text file LibBaseSpec.php Class Class source

  Files folder image Files  /  spec  /  Com  /  Angeldrome  /  Configs  
File Role Description
  Plain text file ConstantsSpec.php Class Class source
  Plain text file MessagesSpec.php Class Class source
  Plain text file SQLsSpec.php Class Class source

  Files folder image Files  /  spec  /  Com  /  Angeldrome  /  Exceptions  
File Role Description
  Plain text file CurlExceptionSpec.php Class Class source
  Plain text file DBExceptionSpec.php Class Class source
  Plain text file GenericExceptionSpec.php Class Class source

  Files folder image Files  /  spec  /  Com  /  Angeldrome  /  Libs  
File Role Description
  Plain text file CurlSpec.php Class Class source
  Plain text file SQLite3Spec.php Class Class source

  Files folder image Files  /  spec  /  Com  /  Angeldrome  /  Shells  
File Role Description
  Plain text file CronSpec.php Class Class source
  Plain text file DBResumeSpec.php Class Class source
  Plain text file DBSaveSpec.php Class Class source

  Files folder image Files  /  spec  /  Com  /  Angeldrome  /  Utils  
File Role Description
  Plain text file EmailHandlerSpec.php Class Class source
  Plain text file GeneralSpec.php Class Class source
  Plain text file LoggerSpec.php Class Class source

  Files folder image Files  /  src  
File Role Description
Files folder imageCom (1 directory)

  Files folder image Files  /  src  /  Com  
File Role Description
Files folder imageAngeldrome (7 directories)

  Files folder image Files  /  src  /  Com  /  Angeldrome  
File Role Description
Files folder imageBase (2 files)
Files folder imageConfigs (3 files)
Files folder imageExamples (2 files)
Files folder imageExceptions (3 files)
Files folder imageLibs (2 files)
Files folder imageShells (3 files)
Files folder imageUtils (3 files)

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Base  
File Role Description
  Plain text file LibBase.php Class Class source
  Plain text file LibBaseException.php Class Class source

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Configs  
File Role Description
  Plain text file Constants.sample.php Class Class source
  Plain text file Messages.php Class Class source
  Plain text file SQLs.php Class Class source

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Examples  
File Role Description
  Plain text file Emailer.php Class Class source
  Plain text file Logger.php Class Class source

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Exceptions  
File Role Description
  Plain text file CurlException.php Class Class source
  Plain text file DBException.php Class Class source
  Plain text file GenericException.php Class Class source

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Libs  
File Role Description
  Plain text file Curl.php Class Class source
  Plain text file SQLite3.php Class Class source

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Shells  
File Role Description
  Plain text file Cron.php Class Class source
  Plain text file DBResume.php Class Class source
  Plain text file DBSave.php Class Class source

  Files folder image Files  /  src  /  Com  /  Angeldrome  /  Utils  
File Role Description
  Plain text file EmailHandler.php Class Class source
  Plain text file General.php Class Class source
  Plain text file Logger.php Class Class source

  Files folder image Files  /  templates  
File Role Description
Files folder imageemail (2 files)

  Files folder image Files  /  templates  /  email  
File Role Description
  Accessible without login Plain text file default.tpl Data Auxiliary data
  Accessible without login Plain text file errors.tpl Data Auxiliary data

  Files folder image Files  /  vendor  
File Role Description
  Accessible without login Plain text file empty Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:242
This week:0
All time:7,997
This week:94Up