1. Go to this page and download the library: Download worldia/textmaster-bundle 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/ */
worldia / textmaster-bundle example snippets
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Worldia\Bundle\TextmasterBundle\WorldiaTextmasterBundle(),
// ...
);
}
// src/AppBundle/MyService/MyService.php
namespace AppBundle\MyService;
use Worldia\Bundle\TextmasterBundle\Translation\TranslationManager;
class MyService
{
/**
* @var TranslationManager
*/
protected $translationManager;
public function createProject()
{
// retrieve all entities to translate in array $translatable.
$project = $this->translationManager->create(
$translatable,
'Project name',
'en',
'fr',
'CO21',
'My poject briefing',
array('language_level' => 'premium')
);
// the project is sent to TextMaster and launched.
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.