https://github.com/crazyfactory/php-translations
Classes for the TranslatorApp
https://github.com/crazyfactory/php-translations
Last synced: 9 months ago
JSON representation
Classes for the TranslatorApp
- Host: GitHub
- URL: https://github.com/crazyfactory/php-translations
- Owner: crazyfactory
- Created: 2018-06-25T02:38:19.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-24T01:15:44.000Z (almost 8 years ago)
- Last Synced: 2025-02-16T15:31:21.873Z (over 1 year ago)
- Language: PHP
- Size: 88.9 KB
- Stars: 0
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php-translations
##Classes for the TranslatorApp
- ```TranslationManagerBase```: Handles all translations stored in the database. retrieves their values
- ```TranslationCacheBase```: Retrieves translation by id or key, can preload scopes. scopes are retrieved from a generated php-file.
- ```TranslationValidator```: Verify value before insert or update in database.
## Running tests
This packages use Codeception testing framework (http://codeception.com/). To run tests:
- get dependencies ready:
```composer install```
- run ALL tests:
```php /vendor/codeception/codeception/codecept run```