Download the PHP package oneofftech/laravel-language-recognizer without Composer
On this page you can find all versions of the php package oneofftech/laravel-language-recognizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oneofftech/laravel-language-recognizer
More information about oneofftech/laravel-language-recognizer
Files in oneofftech/laravel-language-recognizer
Package laravel-language-recognizer
Short Description Recognize language in text
License MIT
Homepage https://github.com/oneofftech/laravel-language-recognizer
Informations about the package laravel-language-recognizer
Laravel Language Recognizer
Recognize the language in which a text is written.
Language Recognizer for Laravel is a package providing various drivers to recognize the language of a given text.
Currently two drivers are offered:
- A local binary application
- A DeepL based one
Installation
You can install the package via composer:
You can publish the config file with:
If you change the path to the Franc binary, as configured in the local driver, ensure that the file is moved or present in that location. You can run
php artisan language-recognizer:install-local-driver
to download the binary in the configured location
The configuration file allows to configure the driver parameter for performing the language recognition.
Driver pre-requisites
Local Driver
The language recognition, when performed using the local driver, is done using the Franc library, in particular a packaged version in form on an executable.
To download the executable version run:
DeepL Driver
The DeepL driver requires a valid API key. You can obtain a free key on deepl.com.
After obtaining the key specifiy it via the LANGUAGE_RECOGNIZER_DEEPL_KEY
environment variable.
Usage
Testing
A test suite is available. To execute the tests run:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-language-recognizer with dependencies
illuminate/contracts Version ^9.12|^10.0
illuminate/support Version ^9.12|^10.0
illuminate/http Version ^9.12|^10.0
symfony/process Version ^6.0