PHP code example of egeatech / app-updater

1. Go to this page and download the library: Download egeatech/app-updater 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/ */

    

egeatech / app-updater example snippets


EgeaTech\AppUpdater\Facades\AppUpdater::routes();

EgeaTech\AppUpdater\Facades\AppUpdater::routes(
    new EgeaTech\AppUpdater\Http\Routing\RoutingOptions([
        'middleware' => ['api'],
        'prefix' => 'api'
    ],[
        'client-credentials',
        'throttle:60,1',
        'my-custom-middleware-name',
    ])
);

class DependencyInjectionHandler extends ServiceProvider {
    /**
     * Register services.
     *
     * @return void
     */
    public function register()
    {
        app()->bind(ApplicationModelContract::class, MyCustomApplication::class);
    }
}
bash
 php artisan vendor:publish --tag app-updater.config
bash
 php artisan vendor:publish --tag app-updater.migrations