PHP code example of ziya / latest-update

1. Go to this page and download the library: Download ziya/latest-update library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ziya / latest-update example snippets



    echo UpdateWidget::widget([
        'title' => "<h3>New Updates</h3>",
        'message' => "<div>You have new updates</div>",
        'url' => Url::to(['order/index']),
        'update_url' => Url::to(['order/updates'])
    ]);