PHP Classes
elePHPant
Icontem

PHP Native Mobile App Dispatcher: Redirect a mobile device to use a native app

Recommend this page to a friend!
  Info   View files Documentation   Demos   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-08-23 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 459 All time: 5,980 This week: 284Up
Version License PHP version Categories
mobile-dispatcher 2.0.2GNU Lesser Genera...5.3.0HTTP, PHP 5, Wireless and Mobile
Description Author

This class can redirect a mobile device to use a native app.

It can register mobile applications available on App stores as recommended alternatives to use the current site as a native application for different mobile operating system families.

The class can detect the operating system family of the current user accessing the site using a mobile device and redirect to the appropriate mobile application installation page previously registered with the class.

If the family of a device is not detected, the list of the apps for all registered families is displayed.

Innovation Award
PHP Programming Innovation award winner
February 2015
Winner


Prize: One copy of the Zend Studio
Some Web sites provide alternative native mobile applications that the users can use to take advantage of the site resources when using a mobile device.

Therefore it is convenient to redirect the users to the pages that prompt the user to decide if he wants to install the mobile application on his device.

This class can redirect the users to the correct URLs to trigger the process of installation of mobile applications if the user wants to install them.

It works with different types of mobile device operating systems. Alternatively it shows a Web page for the user to select the mobile application version he wants to install if the mobile device is not recognized.

Manuel Lemos
  Performance   Level  
Name: André Liechti <contact>
Classes: 8 packages by
Country: Switzerland Switzerland
Age: 50
All time rank: 4217 in Switzerland Switzerland
Week rank: 57 Up1 in Switzerland Switzerland Up
Innovation award
Innovation award
Nominee: 8x

Winner: 2x

 

Details

MobileDispatcher PHP class

MobileDispatcher PHP class is a GNU LGPL class to redirect a mobile device to the dedicated App for this family of mobile devices.

Thanks to this dispatcher, you can now distribute a single QRcode with the same URL inside to distribute an app for various mobile device families (for example: http://go.6co.ch/?a=otpauth).

If the family of a device is not detected, the list of the Apps for all families is displayed instead.

(c) 2014-2015 SysCo systemes de communication sa http://developer.sysco.ch/php/

Current build: 2.0.0.1 (2015-08-06)

Usage


<?php

    require_once('mobile.dispatcher.class.php');
    $mobile_dispatcher = new MobileDispatcher();

    $mobile_dispatcher->addTopic(
        'otpauth',
        'TOTP/HOTP code generator'
    );

    $mobile_dispatcher->addFamilyApp(
        'otpauth',
        'Android',
        'market://details?id=com.google.android.apps.authenticator2',
        'Google Authenticator'
    );

    $mobile_dispatcher->dispatchApp('otpauth');

?>

Check mobile.dispatcher.demo.php for a full implementation example.

You can support our open source projects with donations and sponsoring. Sponsorships are crucial for ongoing and future development! If you'd like to support our work, then consider making a donation, any support is always welcome even if it's as low as $1! You can also sponsor the development of a specific feature. Please contact us in order to discuss the detail of the implementation.

Donate via PayPal Please consider supporting this project by making a donation via PayPal

And for more PHP classes, have a look on PHPclasses.org, where a lot of authors are sharing their classes for free.

  Mobile Dispatcher implementation demonstrationExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Accessible without login Plain text file LICENSE.md Lic. License text
Plain text file mobile.dispatcher.class.php Class Class source
Accessible without login Plain text file mobile.dispatcher.demo.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:459
This week:0
All time:5,980
This week:284Up