PHP code example of falcon758 / phlexus-library-translations

1. Go to this page and download the library: Download falcon758/phlexus-library-translations 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/ */

    

falcon758 / phlexus-library-translations example snippets


use Phlexus\Libraries\Translations\TranslationFactory;
use Phlexus\Libraries\Translations\Database\Models\Page;
use Phlexus\Libraries\Translations\Database\Models\TextType;

(new TranslationFactory())->build('en-US')
                          ->setPageType(PAGE::DEFAULTPAGE, TextType::PAGE)