PHP developer in Antwerp

WordPress for businesses in Antwerp, delivered remotely by one developer.

PHP developer

My place in the WordPress community

  • I have had a wordpress.org account since 2006.
  • I contributed to WordPress core for versions 7.0 and 7.1.
  • I maintain 30 plugins on wordpress.org.
  • I organise and speak at WordCamps.
  • I have attended every WordCamp Europe from 2017 to 2026.

My WordPress.org profile

A Belgian customer who types an enterprise number into a PHP form expects the form to know the company. Getting from the number to a name, an address and a status is a small feature with several traps. I am Mariusz Szatkowski, a PHP developer on the Baltic coast, and company data is a regular part of that work. This page covers what the Crossroads Bank for Enterprises (KBO in Dutch, BCE in French) publishes for applications, and how a custom PHP system should handle it. I am not a lawyer, and nothing here is legal advice.

Grote Markt and the Cathedral of Our Lady in Antwerp

Grote Markt in Antwerp with the spire of the Cathedral of Our Lady, a panoramio photograph by Sergey Ashmarin under CC BY-SA 3.0 on Wikimedia Commons.

#What does the KBO public search show?

KBO Public Search, run by FPS Economy, shows the public data of all entities registered in the Crossroads Bank for Enterprises, including their establishment units. It lists them whatever their state: active, published or stopped. You can search by number, name, activity, authorisation or address, on the public search site.

Three notes from the page matter for a developer:

  • The English version is an unofficial translation. The official application is in Dutch, French or German, and no legal rights follow from the English text.
  • The page carries a footer with the situation of the database. When this page was checked on 4 December 2026, the footer said the situation was that of 3 December 2026. Treat the data as a day behind, not live.
  • Some 7-digit NACE-BEL codes are replaced on screen by the 5-digit preferential code.

A person can read this site. An application needs one of the other two routes below.

#Which route should a PHP application use?

The CBE open data site, kbopub.economie.fgov.be/kbo-open-data, says it gives access to two things.

  1. The Open Data files. They contain information about all the active entities registered in the CBE. Access to them is free, and the application asks only for what it needs to secure the data reception.
  2. The Public Search Web Services. They let you integrate all the information and search options in your applications.

Both sit behind a login and a sign-up form. Details such as file layout, refresh schedule and licence terms are described on FPS Economy pages that sit behind a human-verification step, which I did not try to bypass. The documentation you receive at sign-up is the authority for those points.

The choice follows the use case:

  • Validate or enrich one company at the moment a user types a number. Use the web services. You need one record, now, and the file is the wrong tool.
  • Match your customer or supplier list against the register once a week. Use the files. A local copy gives you joins, reports and no per-call dependency.
  • Show a company card in a quote form. Web service for the lookup, and a short cache keyed by enterprise number.

Whether scraping the public search pages is acceptable is not answered by the pages I could read. The sources describe the files and the web services as the routes for applications, and that is the route a client contract should name.

#How to validate an enterprise number in PHP

The public search shows numbers in the form 0403.227.515. A test on 4 December 2026 showed how the search form treats input:

  • the number with dots and the number without dots returned the same entity;
  • a number with nine digits and the leading zero dropped also returned that entity;
  • a number with a changed last digit returned “The number is invalid”;
  • a number prefixed with letters failed with a parse error from the form.

The invalid-number answer implies a check on the last two digits. The pages that could be read do not publish the rule. The calculation below, 97 minus the first eight digits modulo 97, matched three numbers that the public search returned as real entities, so I use it in a first-pass validator and I mark it as an observation, not a quotation from a specification. Anything that passes still needs a lookup against the register.

<?php
declare(strict_types=1);

function normalizeEnterpriseNumber(string $input): ?string
{
    $digits = preg_replace('/^BE/i', '', trim($input));
    $digits = preg_replace('/\D+/', '', (string) $digits);

    if (strlen($digits) === 9) {
        $digits = '0' . $digits;
    }

    return strlen($digits) === 10 ? $digits : null;
}

function hasPlausibleCheckDigits(string $digits): bool
{
    $base  = (int) substr($digits, 0, 8);
    $check = (int) substr($digits, 8, 2);

    return 97 - ($base % 97) === $check;
}

function displayEnterpriseNumber(string $digits): string
{
    return substr($digits, 0, 4) . '.' . substr($digits, 4, 3) . '.' . substr($digits, 7, 3);
}

Store the ten digits as a string, never as an integer column, so the leading zero survives. Show the dotted form to users. Reject with a helpful message when the check fails, and say the number may be mistyped, not that the company does not exist.

#Why does imported company data go stale?

The register changes for reasons that have nothing to do with the company’s own filings. The public search news page lists several, and each one is a rule for an importer.

Addresses change by themselves. On 2 December 2024 and 1 January 2025, two Walloon and 28 Flemish municipalities merged. The register adjusts the seat addresses of legal persons, establishment units and branches automatically, based on the authentic address source, when the current address matches an address in that source. The entities do not have to act. An address you copied in October can be wrong in January with no event on your side.

Codes are retired and replaced. The news page records authorisations and skills that were discontinued, new capacities added for tax and postal rules, and replaced professional-body codes. Never hard-code a list of authorisation or capacity codes as a PHP enum. Keep a code table that you refresh with the data, with a flag for codes no longer in use.

Fields disappear. Since 1 January 2024, cooperative companies of the former CVBA type have no capital in the register. For those active on that date the capital was set to 0 and is no longer visible in the KBO applications. A schema that requires a capital figure for every company would break on them.

Functions can be struck ex officio. Under Article III.40 of the Code of Economic Law, the KBO management service can strike functions and entrepreneurial skills administratively. The entry then carries the note “ambtshalve doorgehaald sinds”, and where applicable the strike is published in the Belgian Official Gazette. The strike does not release the entity from its formalities. Store the date and the flag.

#What changed with NACE-BEL 2025?

The new NACE-BEL nomenclature took effect on 1 January 2025. According to the public search news, all activities registered with a 2008 code were converted automatically, activity group by activity group, through a conversion table. Some 2008 codes have several 2025 equivalents in that table. In such cases the automatic conversion entered only one 2025 code. As a result, the activities of an entity or establishment unit may be incorrect or incomplete, and the register asks entities to correct and complete them. FPS Economy publishes the 2025 nomenclature with five and seven digits and the 2008 to 2025 conversion table on its code tables page.

For a PHP application the consequences are practical:

  • Store the nomenclature version next to every activity code. A code without a version is ambiguous from 2025 on.
  • Do not use the activity code for a hard decision, such as a price tier or a sector-specific rule, without a manual override field. The data may be wrong for a legitimate reason.
  • If your reports group by sector, keep the conversion table in your database and map old rows once, not on every request.

#What should a KBO importer store?

A compact model that survives the changes above:

  • enterprise_number as a ten-character string, unique.
  • status and status_checked_at.
  • name, legal_form, seat_address as received, plus source and received_at.
  • activities as rows with code, nomenclature_version and flag_unreliable.
  • last_seen_in_open_data as a date.

The last field answers a question the files alone cannot. The files contain active entities only. A number that was in last month’s file and is missing from this month’s file might be stopped, might be a changed number or might be a transfer problem. The public search shows entities of every status, so a single lookup on the public search or through the web services settles the case. Mark such rows as “not in active file” and check them, instead of deleting them.

A small import loop, assuming a CSV file with a header row. The file format is not stated on the pages I could read, so confirm it after sign-up and adjust the parser.

<?php
declare(strict_types=1);

function readRows(string $path): Generator
{
    $file = new SplFileObject($path, 'r');
    $file->setFlags(SplFileObject::READ_CSV | SplFileObject::SKIP_EMPTY | SplFileObject::READ_AHEAD);

    $header = null;
    foreach ($file as $row) {
        if ($header === null) {
            $header = $row;
            continue;
        }
        yield array_combine($header, $row);
    }
}

Process the generator in batches inside a transaction, and run the whole import on staging first. Measure memory use on staging with a real file before the first production run.

#What to leave out of the first version

  • A background crawler of the public search. The sources do not offer it as a route for applications.
  • Automatic correction of the register. The public search page points entities to the My Enterprise application for corrections, and an application can only link to it.
  • Treating the English public search as a source of truth for legal text.

#What I could not confirm

  • The file layout, refresh schedule and licence terms of the open data. They sit on FPS Economy pages behind a human-verification step, and the sign-up area is the place to read them.
  • The check-digit rule as a published specification. It is an observation from the public search, as explained above.
  • Rate limits of the web services. They belong in the documentation you receive.

#Written ownership, remote from Gdynia

I work remotely from Gdynia, in the same time zone as Antwerp. Questions and answers stay in writing, so the field list is agreed before any import runs. At handover you keep the repository, the import scripts and the runbook that says what to do when the register changes a rule.

If your Antwerp business needs a lookup, an import or a clean-up of Belgian company data in a PHP system, send the data fields you rely on through the contact page. The first written estimate is free and begins with where the company number enters your system. Other PHP work is listed on the PHP developer page.

See also in Belgium

Need this service: PHP developer in Antwerp?

Describe your project by e-mail. I reply within 24 hours.

Describe your project

Latest PHP developer articles

Dec 2, 2026

Laravel Rust: what does it mean for PHP apps?

On 1 December 2026 Taylor Otwell shipped the Laravel Rust beta, and Laravel Go followed a day later. What the framework contains, what the 18x benchmark really measures, what happens to Laravel PHP and WordPress, and when a rewrite makes sense.

Explore other WordPress services and knowledge base