PHP Classes
elePHPant
Icontem

Simple Push: Send email messages or to Android and iOS devices

Recommend this page to a friend!
  Info   View files Documentation   View files View files (180)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-04-12 (6 months ago) RSS 2.0 feedStarStarStarStar 78%Total: 240 This week: 2All time: 7,658 This week: 365Up
Version License PHP version Categories
simplepush 1.0.0GNU General Publi...5Email, PHP 5, Wireless and Mobile
Description Author

This package can send email messages or to Android and iOS devices.

There is a base class that provides communication services and options to set the message sender and recipients.

There are also sub-classes specialized in sending messages by email, or mobile devices using Android or iOS.

Recommendations

What is the best PHP push notification for web class?
Push notification for Web applications

  Performance   Level  
Name: Duong Huynh Nghia <contact>
Classes: 4 packages by
Country: Viet Nam Viet Nam
Age: 29
All time rank: 297813 in Viet Nam Viet Nam
Week rank: 120 Up2 in Viet Nam Viet Nam Up

Details

SimplePush

Send mail

use SimplePush;
$aConfigs = array(
	'method' => smtp //or mail
    'host' => smtp.gmail.com
    'user' => hello@fwebshop.com
    'password' => hellopass
    'authenticate' => tls // or ssl
    'port' => 587
);
$aMessage = array(
	'subject' => "Hello Mail"
    'content' => "Mail content"
    'from' => hello@fwebshop.com

);
$oInstance = new SimplePush\Mail($aConfigs);
$oInstance->message($aMessage);
$oInstance->to("nicetomeetyou@fwebshop.com");
$oInstance->send();
$mResults = $oInstance->getResults();
$aTmpError = $oInstance->getErrors();

Push to Android device

use SimplePush;
$aConfigs = array(
    'app_mode' => "production" //or development
    'api_access_key' => "Project API Key got from Google"
    
);
$aMessage = array(
   'command' => '2',
   'message' => 'Hello Android', 
   'your_param' => 'your_value'

);
$oInstance = new SimplePush\Android($aConfigs);
$oInstance->message($aMessage);
$oInstance->to("device_token_id");
$oInstance->send();
$mResults = $oInstance->getResults();
$aTmpError = $oInstance->getErrors();

Push to iOS device

use SimplePush;
$aConfigs = array(
    'app_mode' => "production" //or development
    'certification_file' => "Link to pem file"
    'password' => "" // passphrase for certificated file. 
   
);
$aMessage = array(
   'aps' => array(
      'alert' => 'Hello iOS',
      'sound' => 'default'
   )

);
$oInstance = new SimplePush\IOS($aConfigs);
$oInstance->message($aMessage);
$oInstance->to("device_token_id");
$oInstance->send();
$mResults = $oInstance->getResults();
$aTmpError = $oInstance->getErrors();
  Files folder image Files  
File Role Description
Files folder image.settings (2 files)
Files folder imagelib (1 directory)
Accessible without login Plain text file .buildpath Data Auxiliary data
Accessible without login Plain text file .project Data Auxiliary data
Plain text file Android.php Class Class source
Plain text file IOS.php Class Class source
Plain text file Mail.php Class Class source
Plain text file Provider.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .settings  
File Role Description
  Accessible without login Plain text file org.eclipse.php.core.prefs Data Auxiliary data
  Accessible without login Plain text file org.eclipse.wst.co...ject.facet.core.xml Data Auxiliary data

  Files folder image Files  /  lib  
File Role Description
Files folder imageswiftmailer (1 directory)

  Files folder image Files  /  lib  /  swiftmailer  
File Role Description
Files folder imagelib (6 files, 2 directories)

  Files folder image Files  /  lib  /  swiftmailer  /  lib  
File Role Description
Files folder imageclasses (1 file, 1 directory)
Files folder imagedependency_maps (4 files)
  Accessible without login Plain text file mime_types.php Aux. Auxiliary script
  Accessible without login Plain text file preferences.php Example Example script
  Accessible without login Plain text file swiftmailer_generate_mimes_config.php Example Example script
  Accessible without login Plain text file swift_init.php Aux. Auxiliary script
  Accessible without login Plain text file swift_required.php Aux. Auxiliary script
  Accessible without login Plain text file swift_required_pear.php Aux. Auxiliary script

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  
File Role Description
Files folder imageSwift (40 files, 13 directories)
  Plain text file Swift.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  
File Role Description
Files folder imageByteStream (4 files)
Files folder imageCharacterReader (3 files)
Files folder imageCharacterReaderFactory (1 file)
Files folder imageCharacterStream (2 files)
Files folder imageEncoder (3 files)
Files folder imageEvents (15 files)
Files folder imageKeyCache (5 files)
Files folder imageMailer (2 files)
Files folder imageMime (18 files, 3 directories)
Files folder imagePlugins (14 files, 4 directories)
Files folder imageSigners (6 files)
Files folder imageStreamFilters (3 files)
Files folder imageTransport (14 files, 1 directory)
  Plain text file Attachment.php Class Class source
  Plain text file CharacterReader.php Class Class source
  Plain text file CharacterReaderFactory.php Class Class source
  Plain text file CharacterStream.php Class Class source
  Plain text file ConfigurableSpool.php Class Class source
  Plain text file DependencyContainer.php Class Class source
  Plain text file DependencyException.php Class Class source
  Plain text file EmbeddedFile.php Class Class source
  Plain text file Encoder.php Class Class source
  Plain text file Encoding.php Class Class source
  Plain text file FailoverTransport.php Class Class source
  Plain text file FileSpool.php Class Class source
  Plain text file FileStream.php Class Class source
  Plain text file Filterable.php Class Class source
  Plain text file Image.php Class Class source
  Plain text file InputByteStream.php Class Class source
  Plain text file IoException.php Class Class source
  Plain text file KeyCache.php Class Class source
  Plain text file LoadBalancedTransport.php Class Class source
  Plain text file Mailer.php Class Class source
  Plain text file MailTransport.php Class Class source
  Plain text file MemorySpool.php Class Class source
  Plain text file Message.php Class Class source
  Plain text file MimePart.php Class Class source
  Plain text file NullTransport.php Class Class source
  Plain text file OutputByteStream.php Class Class source
  Plain text file Preferences.php Class Class source
  Plain text file ReplacementFilterFactory.php Class Class source
  Plain text file RfcComplianceException.php Class Class source
  Plain text file SendmailTransport.php Class Class source
  Plain text file SignedMessage.php Class Class source
  Plain text file Signer.php Class Class source
  Plain text file SmtpTransport.php Class Class source
  Plain text file Spool.php Class Class source
  Plain text file SpoolTransport.php Class Class source
  Plain text file StreamFilter.php Class Class source
  Plain text file SwiftException.php Class Class source
  Plain text file Transport.php Class Class source
  Plain text file TransportException.php Class Class source
  Plain text file Validate.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  ByteStream  
File Role Description
  Plain text file AbstractFilterableInputStream.php Class Class source
  Plain text file ArrayByteStream.php Class Class source
  Plain text file FileByteStream.php Class Class source
  Plain text file TemporaryFileByteStream.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  CharacterReader  
File Role Description
  Plain text file GenericFixedWidthReader.php Class Class source
  Plain text file UsAsciiReader.php Class Class source
  Plain text file Utf8Reader.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  CharacterReaderFactory  
File Role Description
  Plain text file SimpleCharacterReaderFactory.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  CharacterStream  
File Role Description
  Plain text file ArrayCharacterStream.php Class Class source
  Plain text file NgCharacterStream.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Encoder  
File Role Description
  Plain text file Base64Encoder.php Class Class source
  Plain text file QpEncoder.php Class Class source
  Plain text file Rfc2231Encoder.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Events  
File Role Description
  Plain text file CommandEvent.php Class Class source
  Plain text file CommandListener.php Class Class source
  Plain text file Event.php Class Class source
  Plain text file EventDispatcher.php Class Class source
  Plain text file EventListener.php Class Class source
  Plain text file EventObject.php Class Class source
  Plain text file ResponseEvent.php Class Class source
  Plain text file ResponseListener.php Class Class source
  Plain text file SendEvent.php Class Class source
  Plain text file SendListener.php Class Class source
  Plain text file SimpleEventDispatcher.php Class Class source
  Plain text file TransportChangeEvent.php Class Class source
  Plain text file TransportChangeListener.php Class Class source
  Plain text file TransportExceptionEvent.php Class Class source
  Plain text file TransportExceptionListener.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  KeyCache  
File Role Description
  Plain text file ArrayKeyCache.php Class Class source
  Plain text file DiskKeyCache.php Class Class source
  Plain text file KeyCacheInputStream.php Class Class source
  Plain text file NullKeyCache.php Class Class source
  Plain text file SimpleKeyCacheInputStream.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Mailer  
File Role Description
  Plain text file ArrayRecipientIterator.php Class Class source
  Plain text file RecipientIterator.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Mime  
File Role Description
Files folder imageContentEncoder (6 files)
Files folder imageHeaderEncoder (2 files)
Files folder imageHeaders (8 files)
  Plain text file Attachment.php Class Class source
  Plain text file CharsetObserver.php Class Class source
  Plain text file ContentEncoder.php Class Class source
  Plain text file EmbeddedFile.php Class Class source
  Plain text file EncodingObserver.php Class Class source
  Plain text file Grammar.php Class Class source
  Plain text file Header.php Class Class source
  Plain text file HeaderEncoder.php Class Class source
  Plain text file HeaderFactory.php Class Class source
  Plain text file HeaderSet.php Class Class source
  Plain text file Message.php Class Class source
  Plain text file MimeEntity.php Class Class source
  Plain text file MimePart.php Class Class source
  Plain text file ParameterizedHeader.php Class Class source
  Plain text file SimpleHeaderFactory.php Class Class source
  Plain text file SimpleHeaderSet.php Class Class source
  Plain text file SimpleMessage.php Class Class source
  Plain text file SimpleMimeEntity.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Mime  /  ContentEncoder  
File Role Description
  Plain text file Base64ContentEncoder.php Class Class source
  Plain text file NativeQpContentEncoder.php Class Class source
  Plain text file PlainContentEncoder.php Class Class source
  Plain text file QpContentEncoder.php Class Class source
  Plain text file QpContentEncoderProxy.php Class Class source
  Plain text file RawContentEncoder.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Mime  /  HeaderEncoder  
File Role Description
  Plain text file Base64HeaderEncoder.php Class Class source
  Plain text file QpHeaderEncoder.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Mime  /  Headers  
File Role Description
  Plain text file AbstractHeader.php Class Class source
  Plain text file DateHeader.php Class Class source
  Plain text file IdentificationHeader.php Class Class source
  Plain text file MailboxHeader.php Class Class source
  Plain text file OpenDKIMHeader.php Class Class source
  Plain text file ParameterizedHeader.php Class Class source
  Plain text file PathHeader.php Class Class source
  Plain text file UnstructuredHeader.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Plugins  
File Role Description
Files folder imageDecorator (1 file)
Files folder imageLoggers (2 files)
Files folder imagePop (2 files)
Files folder imageReporters (2 files)
  Plain text file AntiFloodPlugin.php Class Class source
  Plain text file BandwidthMonitorPlugin.php Class Class source
  Plain text file DecoratorPlugin.php Class Class source
  Plain text file ImpersonatePlugin.php Class Class source
  Plain text file Logger.php Class Class source
  Plain text file LoggerPlugin.php Class Class source
  Plain text file MessageLogger.php Class Class source
  Plain text file PopBeforeSmtpPlugin.php Class Class source
  Plain text file RedirectingPlugin.php Class Class source
  Plain text file Reporter.php Class Class source
  Plain text file ReporterPlugin.php Class Class source
  Plain text file Sleeper.php Class Class source
  Plain text file ThrottlerPlugin.php Class Class source
  Plain text file Timer.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Plugins  /  Decorator  
File Role Description
  Plain text file Replacements.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Plugins  /  Loggers  
File Role Description
  Plain text file ArrayLogger.php Class Class source
  Plain text file EchoLogger.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Plugins  /  Pop  
File Role Description
  Plain text file Pop3Connection.php Class Class source
  Plain text file Pop3Exception.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Plugins  /  Reporters  
File Role Description
  Plain text file HitReporter.php Class Class source
  Plain text file HtmlReporter.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Signers  
File Role Description
  Plain text file BodySigner.php Class Class source
  Plain text file DKIMSigner.php Class Class source
  Plain text file DomainKeySigner.php Class Class source
  Plain text file HeaderSigner.php Class Class source
  Plain text file OpenDKIMSigner.php Class Class source
  Plain text file SMimeSigner.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  StreamFilters  
File Role Description
  Plain text file ByteArrayReplacementFilter.php Class Class source
  Plain text file StringReplacementFilter.php Class Class source
  Plain text file StringReplacementFilterFactory.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Transport  
File Role Description
Files folder imageEsmtp (2 files, 1 directory)
  Plain text file AbstractSmtpTransport.php Class Class source
  Plain text file EsmtpHandler.php Class Class source
  Plain text file EsmtpTransport.php Class Class source
  Plain text file FailoverTransport.php Class Class source
  Plain text file IoBuffer.php Class Class source
  Plain text file LoadBalancedTransport.php Class Class source
  Plain text file MailInvoker.php Class Class source
  Plain text file MailTransport.php Class Class source
  Plain text file NullTransport.php Class Class source
  Plain text file SendmailTransport.php Class Class source
  Plain text file SimpleMailInvoker.php Class Class source
  Plain text file SmtpAgent.php Class Class source
  Plain text file SpoolTransport.php Class Class source
  Plain text file StreamBuffer.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Transport  /  Esmtp  
File Role Description
Files folder imageAuth (5 files)
  Plain text file Authenticator.php Class Class source
  Plain text file AuthHandler.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  classes  /  Swift  /  Transport  /  Esmtp  /  Auth  
File Role Description
  Plain text file CramMd5Authenticator.php Class Class source
  Plain text file LoginAuthenticator.php Class Class source
  Plain text file NTLMAuthenticator.php Class Class source
  Plain text file PlainAuthenticator.php Class Class source
  Plain text file XOAuth2Authenticator.php Class Class source

  Files folder image Files  /  lib  /  swiftmailer  /  lib  /  dependency_maps  
File Role Description
  Accessible without login Plain text file cache_deps.php Example Example script
  Accessible without login Plain text file message_deps.php Example Example script
  Accessible without login Plain text file mime_deps.php Example Example script
  Accessible without login Plain text file transport_deps.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:240
This week:2
All time:7,658
This week:365Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:93%StarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:78%StarStarStarStar
Rank:46