webmil / text-language-detect

Detects the language of a given piece of text.
46 stars 23 forks source link

Stable release at packagist #8

Closed nichtich closed 7 years ago

nichtich commented 7 years ago

The current version is only available as developer release without version number and it has a bug with PHP7. I could do some pull requests to improve test coverage but is this package still actively maintained?

nichtich commented 7 years ago

The original package at http://pear.php.net/package/Text_LanguageDetect includes fixes as well so we seem to have two unmaintained out-of-sync packages of the same name. I prefer to use the original version 1.0.0 from PEAR until maintainership has been clarified :

{
  "repositories": [
    {
      "type": "pear", 
      "url": "https://pear.php.net/"
    }
  ],
  "require": {
    "pear-pear.php.net/Text_LanguageDetect": "1.0.0"
  }
}

@rwos has another fork, maybe he is willig to take over?

rwos commented 7 years ago

@nichtich our fork is just a collection of the fixes that lie around here on github - https://github.com/easybiblabs/text-language-detect/releases/tag/0.4.0 (diff).

But thanks for the notice - it seems https://github.com/pear/Text_LanguageDetect is in active development (again?). So maybe that's the version we should all switch to (I haven't looked at the diff yet).

nichtich commented 7 years ago

Yes, better ask @cweiske to release at packagist and then replace the clones with dummy packages that require the original and include a deprecation message:

https://packagist.org/packages/webmil/text-language-detect https://packagist.org/packages/hugsbrugs/text-language-detect

Meanwhile this works to make use of the package in your project:

  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/pear/Text_LanguageDetect"
    }       
  ],    
  "require": {
    "pear/Text_LanguageDetect": "dev-master",
cweiske commented 7 years ago

I did not see that the official package was not on packagist. It is now: https://packagist.org/packages/pear/text_languagedetect