File: README.md

Recommend this page to a friend!
  Classes of André Liechti  >  PHP Native Mobile App Dispatcher  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Native Mobile App Dispatcher
Redirect a mobile device to use a native app
Author: By
Last change: 2015-08-06 2.0.0.1 detectMobileFamily() method fixed to support a specific agent
Update README.md
Date: 1 year ago
Size: 2,266 bytes
 

Contents

Class file image Download

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.


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