PHP code example of hydrarulz / phrase-app-export

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

    

hydrarulz / phrase-app-export example snippets


'providers' => [
    // ...
    Hydrarulz\PhraseAppExport\PhraseAppExportProvider::class,
];


return [
    'locales' => [
        'project_id' => '', // Get the project id from Phrase App
        'languages' => [
            'en' => '', // Get the locale id for this language from Phrase App
            'ro' => '', // You can specify multiple languages
        ],
        'format' => 'laravel',
        'file_name' => 'messages.php', // This will create a filename (i.e /resources/lang/en/messages.php)
    ]
];

bash
php artisan phraseapp:download
bash
php artisan vendor:publish --provider="Hydrarulz\PhraseAppExport\PhraseAppExportProvider"
bash
php artisan phraseapp:download