yooper / php-text-analysis

PHP Text Analysis is a library for performing Information Retrieval (IR) and Natural Language Processing (NLP) tasks using the PHP language
https://github.com/yooper/php-text-analysis/wiki
MIT License
527 stars 87 forks source link

issue with laravel composer #29

Closed jesseyofferenvan closed 6 years ago

jesseyofferenvan commented 6 years ago

I was checking if I could use this within my own project, but when trying to make a proof of concept it seemed to be unable to work with a clean laravel installation.

macbookpro$ composer require yooper/php-text-analysis
Using version ^1.3 for yooper/php-text-analysis
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for yooper/php-text-analysis ^1.3 -> satisfiable by yooper/php-text-analysis[1.3].
    - Conclusion: remove symfony/console v4.0.4
    - Conclusion: don't install symfony/console v4.0.4`

would it be possible to allow symfony console?

yooper commented 6 years ago

I just pushed a release 1.3.1 that increases the compatibility options for symfony console. Give it try and let me know if that resolves your issue.

What version of Laravel are you trying to integrate with?

jesseyofferenvan commented 6 years ago

I was trying it with Laravel 5.6, its latest release as of now, I will try to check if it worked once i'm home. Will add that in about an hour or two.

jesseyofferenvan commented 6 years ago

I just tried, and sadly it's giving me an error message because of my PHP version.

Jesseys-MacBook-Pro:poc jessey-macbookpro$ composer require yooper/php-text-analysis 1.3.1

  [InvalidArgumentException]
  Package yooper/php-text-analysis at version 1.3.1 has a PHP requirement incompatible with your PHP version (7.1.3.0)

I take it's not made to be compatible with php7? Since this is required for Laravel 5.5+

yooper commented 6 years ago

I just pushed a new tag 1.3.2 that should resolve the php version issue for you. Thanks for your feedback.

jesseyofferenvan commented 6 years ago

I just tried it, and it gave me the same error, that my PHP is incompatible with version 1.3.2.

Jesseys-MacBook-Pro:poc jessey-macbookpro$ composer require yooper/php-text-analysis 1.3.2

[InvalidArgumentException]
Package yooper/php-text-analysis at version 1.3.2 has a PHP requirement incompatible with your PHP version (7.1.3.0)
yooper commented 6 years ago

I pushed another fix, release 1.3.3 . Packagist was not updating to the newest version because of a licensing issue. Please let me know if it doesn't work.

jesseyofferenvan commented 6 years ago

It worked this time! awesome!