Skip to content

dartmoon-io/prestashop-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prestashop Utils

A collection of useful utils.

Installation

composer require dartmoon/prestashop-utils

Multilang text

This util will get all the languages installed inside PrestaShop and generate the multitext of the input string. The index of the array will be the id of the language.

use Dartmoon\Utils\Facades\MultiLangText;

$text = MultiLangText::generate('text'); // [0 => 'text', 3 => 'text', ...]

License

This project is licensed under the MIT License - see the LICENSE.md file for details