Giter VIP home page Giter VIP logo

Comments (6)

DragonBe avatar DragonBe commented on July 19, 2024 1

Hello @juretopolak,

Thank you for reporting this issue. I will investigate this next week since I'm traveling for work at the moment.

from vies.

krzaczek avatar krzaczek commented on July 19, 2024 1

@juretopolak which version of the library and PHP are You using ?. I did a quick test and the results are as follow

DragonBe\Vies\CheckVatResponse Object
(
    [countryCode:protected] => SI
    [vatNumber:protected] => 21825831
    [requestDate:protected] => DateTime Object
        (
            [date] => 2019-05-24 02:00:00.000000
            [timezone_type] => 3
            [timezone] => UTC
        )

    [valid:protected] => 1
    [name:protected] => E+ PROJEKT D.O.O.
    [address:protected] => ŠRATOVCI 57, 9252 RADENCI
    [identifier:protected] => 
    [nameMatch:protected] => 
    [companyTypeMatch:protected] => 
    [streetMatch:protected] => 
    [postcodeMatch:protected] => 
    [cityMatch:protected] => 
)

from vies.

juretopolak avatar juretopolak commented on July 19, 2024 1

@krzaczek thank you for pointing me in the right direction... it was indeed a problem with library version. My version was 1.0 xD

I have installed it with "composer install dragonbe/vies" and didn't define a version... thought that if no version is specified the last one is used. Didn't even look in the composer.json.

After defining the last version (2.1.6) and updating everything is working as expected.

Thank you for such a fast response!

from vies.

juretopolak avatar juretopolak commented on July 19, 2024 1

You are both right.

If I go through the history... it was like this.

composer install dragonbe/vies

This returned error message, just like you explained.

composer require dragonbe/vies

This installed version 1.0.0. I guess because the composer was executed with PHP 5.6 which is default CLI version on the system.

After I found out that version 1.0.0. was installed, I have changed the version to 2.1.6 in the composer.json file.

composer update
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
    - dragonbe/vies 2.1.6 requires php >=7.1 -> your PHP version (5.6.40) does not satisfy that requirement.
    - dragonbe/vies 2.1.6 requires php >=7.1 -> your PHP version (5.6.40) does not satisfy that requirement.
    - Installation request for dragonbe/vies ^2.1.6 -> satisfiable by dragonbe/vies[2.1.6].

This reminded me about the default version.

/usr/local/php72/bin/php72 /usr/local/bin/composer update

The library was finally updated when PHP 7.2 was used to run the composer.

Hope this helps somehow.

from vies.

DragonBe avatar DragonBe commented on July 19, 2024

Hey @juretopolak,

Glad everything sorted out for you. A huge thanks to @krzaczek for analysing the issues and pointing towards the solution so quickly. Great job 👍

One thing though: I checked myself using composer install dragonbe/vies and I got the following error message back from composer

composer install dragonbe/vies
Invalid argument dragonbe/vies. Use "composer require dragonbe/vies" instead to add packages to your composer.json.

And when using composer require dragonbe/vies it installs the latest 2.1.6 version by default.

composer require dragonbe/vies
Using version ^2.1 for dragonbe/vies
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing dragonbe/vies (2.1.6): Downloading (100%)
Writing lock file
Generating autoload files

@juretopolak since I want to make sure people always get the latest version your issue intrigues me. Could you describe your installation process to me?

from vies.

krzaczek avatar krzaczek commented on July 19, 2024

I would say it has to do with PHP version used to run composer.

PHP 5.3 would install 1.0.1
PHP 5.4 - 5.6 would install 1.0.6
PHP >=7 would install 2.x

from vies.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.