profile
viewpoint
Danny van Kooten dannyvankooten ibericode BV Middelburg, The Netherlands https://dannyvankooten.com Independent developer, writing open-source code for a living.

dannyvankooten/AltoRouter 1086

PHP routing class. Lightweight yet flexible. Supports REST, dynamic and reversed routing.

browserpass/browserpass-legacy 1013

Legacy Browserpass repo, development is now happening at:

dannyvankooten/grender 93

Go package for easily rendering JSON/XML data and HTML templates

dannyvankooten/change-username 55

A WordPress plugin to change usernames

dannyvankooten/goseo 52

command line tool to assess readability and SEO score for any HTML document or web page

dannyvankooten/extemplate 41

Wrapper package for Go's template/html to allow for easy file-based template inheritance.

barrykooij/related-posts-for-wp 19

Related Posts for WordPress

barrykooij/post-connector 14

Post Connector

dannyvankooten/advent-of-code-2020 10

My solutions for advent of code 2020, in C.

dannyvankooten/dutchfirecalc.nl 7

Source code for dutchfirecalc.nl

push eventibericode/unofficial-convertkit

Danny van Kooten

commit sha 70057b133c67d86af0a7ed60a26402514d66c50a

add date and emoji to notice

view details

push time in 5 days

push eventibericode/unofficial-convertkit

Danny van Kooten

commit sha 4b7c61082265713414ebbfff896056f28aaaf319

add notice to readme

view details

push time in 5 days

release ibericode/vat-bundle

2.0.3

released time in 9 days

created tagibericode/vat-bundle

tag2.0.3

Symfony4 bundle for ibericode/vat

created time in 9 days

issue closedibericode/vat

vat rates package abandoned?

Hi, I see your package relies on this (https://github.com/adamcooke/vat-rates) which is no more available. So your package will still be able to get updated VAT rates by countries?

closed time in 9 days

Echecivuole

issue commentibericode/vat

vat rates package abandoned?

Hello. Yes, see #30 and #5.

Echecivuole

comment created time in 9 days

pull request commentibericode/vat-bundle

Add unique validation error code

@RobinHoutevelts Thank you. I wasn't aware of the code property nor have I used it before but this makes total sense.

Is there anything useful to be gained in also declaring the 'errorNames' property with a more human readable error name? I wonder why the code is so obscure despite it being a string. Would love your thoughts on this.

RobinHoutevelts

comment created time in 15 days

push eventibericode/vat-bundle

Robin Houtevelts

commit sha 5732d3e5bf2c6e4352f56ecfb219783e0d62bb6e

Add unique validation error code

view details

Danny van Kooten

commit sha 1b0080a4cbb6afd17ba61d4f4051a903944c7339

Merge pull request #4 from RobinHoutevelts/master

view details

push time in 15 days

PR merged ibericode/vat-bundle

Add unique validation error code

A unique error-code allows for a machine-readable way to differentiate between types of validation errors.

All Symfony constraints expose a unique error code for this reason.

This PR adds a unique error-code to the VatNumber constraint.


This allows for example Api-Platform to display the error code. So consumers of your API know what went wrong without having to parse the error message.

Before

A code of null is displayed. Forcing us to parse the error message to know what actually went wrong and act accordingly.

{
    "type": "https://tools.ietf.org/html/rfc2616#section-10",
    "title": "An error occurred",
    "detail": "vat: \"BEfoobar\" does not look like a valid VAT number.",
    "violations": [
        {
            "propertyPath": "vat",
            "message": "\"BEfoobar\" does not look like a valid VAT number.",
            "code": null
        }
    ]
}

After

A code of 59421d43-d474-489c-b18c-7701329d51a0 is displayed, meaning we can hardcode this into our application instead of parsing the error message.

{
    "type": "https://tools.ietf.org/html/rfc2616#section-10",
    "title": "An error occurred",
    "detail": "vat: \"BEfoobar\" does not look like a valid VAT number.",
    "violations": [
        {
            "propertyPath": "vat",
            "message": "\"BEfoobar\" does not look like a valid VAT number.",
            "code": "59421d43-d474-489c-b18c-7701329d51a0"
        }
    ]
}
+4 -0

1 comment

3 changed files

RobinHoutevelts

pr closed time in 15 days

push eventibericode/koko-analytics

Dominik Schilling

commit sha 53b09f249acbc7786a95e103e99a1bcbbd21da77

Skip empty lines in buffer file during aggregation

view details

Danny van Kooten

commit sha a53cbc8248508a39943bf6db0b9e729fa30cc27d

Merge pull request #129 from wearerequired/fix/avoid-php-notices Skip (unexpected) empty lines in buffer file during aggregation

view details

push time in 18 days

PR merged ibericode/koko-analytics

Skip empty lines in buffer file during aggregation

It seems like it's possible that fgets() can read an empty line, probably the last one. Too avoid some PHP notices I added this sanity check.

The notices are:

PHP Notice: Undefined offset: 1 PHP Notice: Undefined offset: 2 PHP Notice: Undefined offset: 3

+5 -1

0 comment

1 changed file

ocean90

pr closed time in 18 days

issue commentibericode/vat

add hasPattern to Validator

Perhaps we should throw an Exception if calling the validate method using an unsupported country code prefix?

Currently the library assumes that the validation method is only called after the isCountryCodeInEU( $countryCode ) method on an instance of the Countries class is called. I agree that we should probably design this in a better way... Open to any ideas you might have!

gemal

comment created time in 19 days

issue closedibericode/vat

RegEx for Northern Ireland (XI)

As desribed at https://ec.europa.eu/taxation_customs/vies/faqvies.do#item_11 :

'XI' => '(GD\d{3}|HA\d{3}|\d{9}|\d{12})'

closed time in 19 days

KaHa6uc

issue commentibericode/vat

RegEx for Northern Ireland (XI)

This library only allows for validation of VAT numbers which are EU member states, which Northern Ireland is not. Correct me if I'm wrong please.

KaHa6uc

comment created time in 19 days

issue commentibericode/vat

Add VAT modulus11 check for countries

Hey @gemal,

Yes, definitely! Anything that could invalidate VAT numbers before sending a request off to the (sometimes somewhat unreliable) VIES API is encouraged, in my book. :+1:

gemal

comment created time in 19 days

startedopendata-stuttgart/sensors-software

started time in 19 days

release ibericode/vat

2.0.6

released time in 19 days

created tagibericode/vat

tag2.0.6

PHP library for dealing with European VAT

created time in 19 days

pull request commentibericode/vat

Avoid deprecations using php 8.1

Hey @franmomu,

Great work, love how you went about solving this. Thank you!

franmomu

comment created time in 19 days

push eventibericode/vat

Fran Moreno

commit sha fc0413db65c4ff3d4694c958a35e79739abb76a6

Avoid deprecations using php 8.1

view details

Danny van Kooten

commit sha 59831d65c8fbe2885228b09fc33a8ea5e1b5dee4

Merge pull request #45 from franmomu/deprecations_php81 Avoid deprecations using php 8.1

view details

push time in 19 days

PR merged ibericode/vat

Avoid deprecations using php 8.1

Using PHP 8.1, it triggers deprecations for implementations of some core interfaces without a return type.

Adding the return type will break BC, so using #[\ReturnTypeWillChange] attribute will suppress the deprecation.

These deprecations can be seen merging https://github.com/ibericode/vat/pull/43 and https://github.com/ibericode/vat/pull/44

+9 -0

0 comment

1 changed file

franmomu

pr closed time in 19 days

push eventibericode/vat

Fran Moreno

commit sha a46447264d2aafedd2729143a70af5c76cb063c1

Move travis to Github Actions

view details

Danny van Kooten

commit sha bccb0a1557a85dffae655d78d659d204df98c4c9

Merge pull request #43 from franmomu/ci Move travis to Github Actions

view details

push time in 19 days

PR merged ibericode/vat

Move travis to Github Actions

I wanted to remove some PHP 8.1 deprecations, this is a previous step, after this I'll create a couple of PR upgrading PHPUnit and avoiding deprecations in PHP 8.1

The result can be seen in https://github.com/franmomu/vat/pull/1

+71 -12

0 comment

2 changed files

franmomu

pr closed time in 19 days

push eventibericode/vat

Fran Moreno

commit sha b9392c46bb52247bdaec7cf934b6b87f182dfe94

Bump to phpunit 9.5

view details

Danny van Kooten

commit sha 1a78e35f9f592c817b98f7f5b6ad0866dd6d2e85

Merge pull request #44 from franmomu/update_phpunit Bump to phpunit 9.5

view details

push time in 19 days

PR merged ibericode/vat

Bump to phpunit 9.5
+9 -6

0 comment

3 changed files

franmomu

pr closed time in 19 days

pull request commentibericode/vat

use https for vies

@gemal Yes. Sorry, totally missed this somehow. Thank you for the PR!

gemal

comment created time in 19 days

push eventibericode/vat

Henrik Gemal

commit sha 2b39d593286f78db68f57392e4cc8ee4dd7d47da

use https for vies fixes #38

view details

Danny van Kooten

commit sha 4efcd4b7080c6855e71aa92c54635fcad9dc0482

Merge pull request #39 from gemal/httpsvies use https for vies

view details

push time in 19 days

PR merged ibericode/vat

use https for vies

fixes #38

+2 -2

1 comment

2 changed files

gemal

pr closed time in 19 days

issue closedibericode/vat

use https for vies

https://github.com/ibericode/vat/blob/master/src/Vies/Client.php#L15

closed time in 19 days

gemal

push eventibericode/html-forms

Danny van Kooten

commit sha da275969c99c66abe6c2fa4b3b097505b6ade0b5

fix phpcs

view details

push time in 20 days

more