PHP code example of swiftyper / fbt-sync

1. Go to this page and download the library: Download swiftyper/fbt-sync 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/ */

    

swiftyper / fbt-sync example snippets


       $swiftyper = new \Swiftyper\fbt\SwiftyperIntlRouter();
    
       // yourdomain.com/intl/sync:
       $swiftyper->sync();
    
       // yourdomain.com/intl/deploy:
       $swiftyper->deploy();
    
       // yourdomain.com/intl/upload:
       $swiftyper->upload();
       
shell
    $ php ./vendor/bin/swiftyper fbt --init
    
shell
php ./vendor/bin/swiftyper