Comments (6)
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.
@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.
@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.
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.
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.
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)
- Validation of Irish VAT ID failed for valid VAT ID HOT 7
- Making VIES package more inclusive
- Missing BG checksum validation for foreign natual persons
- VIES_EU_COUNTRY_LIST Visibility HOT 1
- Package upgrade to composer 2.0
- Ensure this package can be installed with Composer 2.0
- Implementing a Symfony constraint based on this library HOT 2
- Remove support for the United Kingdom ("GB") HOT 16
- Add support for United Kingdom (Northern Ireland) ("GB-NIR") HOT 7
- Support php8
- Validation failed for valid VAT numbers HOT 8
- 32 Bit Support HOT 1
- The service moved to SSL endpoint. HOT 1
- use of ::VIES_EXCLUDED_COUNTRY_CODES
- ValidatorLV results inconsistent with official EU validation
- heartbeat is not working anymore HOT 12
- Cannot populate CheckVatResponse after using `toArray`
- Optional Argument Validation Fails for ® HOT 2
- Heathbeat check always false HOT 1
- GetAddress non getting separated city, zip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vies.