Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Efficient Language Detector Laravel Package

nitotm/efficient-language-detector

Fast, accurate language detection in pure PHP (mbstring required). No dependencies. Supports 60 languages and multiple database sizes/modes (array/string/bytes/disk) to balance speed vs memory, with performance comparable to C++ detectors.

View on GitHub
Deep Wiki
Context7
v3.2.0

ELD database new default size is large, and mode string.

Compared with previous array mode, string reduces peak memory up to 35x and memory usage by 30x, enabling larger databases as default with higher accuracy.

large-string has a 50% memory reduction over small-array.
string is only about 2x slower than array, which is still quite fast.

v3.1.1

ELD has now database execution modes: array, string, bytes and disk. More Info at README.

Current default, that matches previous execution is array-small. (Small for database size)

In a future version, the new default will be string-large, so I encourage trying it.

v3.1.1 : Composer install fix

v3.0.0

Changes from ELD v2 to v3:

detect()->language now returns string 'und' for undetermined instead of NULL
Databases are not compatible, and bigger, medium v2 ≈ small v3
dynamicLangSubset() function is removed
Function cleanText() is now named enableTextCleanup()
v2.1.2
v2.1.1

Remove files in tests/ misc/ and benchmark/ from the installation when installing the library via composer install --prefer-dist

v2.1.0

Added info() function

v2.0.0

Return type changed from array to object. Upgraded from PHP 7.3 to 7.4

v1.0.3

Code improvements. Fixed LanguageDetector file name.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views