PHP developer in Gothenburg

WordPress for businesses in Gothenburg, 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.
  • Local WordPress meetup: WordPress Göteborg Meetup

My WordPress.org profile

A PHP order or invoice system in Sweden creates accounting information whenever it issues an invoice or registers a payment. I am Mariusz Szatkowski, a developer from Gdynia, and work for Gothenburg clients goes through email and shared documents. Whether a given record counts as accounting information is a question for you and your accountant. I am not a lawyer. This page sets out what the Swedish sources say, so the application can be built to match.

Gothenburg city court building, Göteborgs rådhus

The Göteborgs rådhus in the city centre. Picture by Arild Vågen, CC BY-SA 4.0, Wikimedia Commons.

#What does the Swedish Bookkeeping Act ask of an order system?

The Bokföringslag (1999:1078) is published by the Riksdag. The version I read lists SFS 2024:342 as its latest change, in force from 1 July 2024. I found no later amendment on the page, and the register behind it is where to check again.

For a PHP system the rules at the recording stage are short:

  • 4 kap. 1 § requires current bookkeeping of all business events.
  • 5 kap. 1 § says events are recorded so that they can be presented in order of registration (the journal, grundbokföring) and in systematic order (the general ledger).
  • 5 kap. 2 § says cash receipts and payments are booked by the next working day, and other events as soon as it can be done.
  • 5 kap. 6 § and 7 § require a verification for every event, with the time it was compiled, the time of the event, what it concerns, the amount and the counterparty.
  • 5 kap. 9 § says that when a verification is corrected, the correction states when it was made and by whom.

The last rule is the one that shapes data design. An invoice row that is edited in place cannot say when it was corrected and by whom. A correction written as a new row, with the user and the time, can.

#Does the law ask for machine-readable records?

No. The wording is about print-out. 7 kap. 1 § says accounting information is kept either as a paper document or in a form readable only with technical aids, an electronic document, which can be produced as a paper document by an immediate print-out. The Bokföringsnämnden (BFN) guidance to BFNAR 2013:2 (updated 2024-09-16) accepts a delay for records stored with technology the company no longer uses, because an old computer and program may have to be installed again first.

The BFN guidance connects this to documentation. The system documentation has to describe how electronic accounting information is produced on paper (point 9.12), and where encryption is used, how encrypted information becomes readable. A PHP application therefore needs a documented print-out path that still works in year seven, not only a database.

#Why must e-invoices stay in the format they arrived in?

The second paragraph of 7 kap. 1 § says electronic documents with accounting information, whether received from someone else or created by the company, are kept in the format and with the content they had when they came to the company or when the information was compiled. The BFN guidance names PDF files, e-invoices, text messages and emails as electronic documents, and says the starting point is to keep this form for the whole retention period.

The guidance then allows two things:

  • The company may change storage medium or location freely, as long as the format is the same and the information does not change.
  • Converting to another format, for instance from an email to a PDF, or printing on paper, is a transfer under 7 kap. 6 §. The original may be destroyed only if the transfer carries no risk that information changes or disappears. The company is responsible for the technical solution and for the routines around it. Checks before destruction include that everything in a scanned receipt came through and is legible, and that all pages are there. If the company cannot be sure, both the original and the new document are kept for the whole period.

The guidance also says information collected from someone else’s website, such as invoices a buyer downloads from the supplier’s portal or payment data from an internet bank, may be kept in the electronic format in which it is meant to be presented in the company (point 7.3). Records the company makes itself count as compiled once they have the form and format in which they are meant to be presented (point 7.5). For a PHP invoicing module this means the issued invoice file, in the shape the customer received it, is the record. Regenerating it later from changed templates is not the same thing.

#How long and where are the records kept?

7 kap. 2 § says the paper and electronic documents used to preserve accounting information are durable and easily accessible. They are kept until the end of the seventh year after the calendar year in which the financial year ended, in Sweden, in good order and in a secure and clear manner. The equipment and systems needed to present the records on paper stay available in Sweden for the whole retention period.

function retainUntil(DateTimeImmutable $financialYearEnd): DateTimeImmutable
{
    $year = (int) $financialYearEnd->format('Y') + 7;
    return new DateTimeImmutable($year . '-12-31');
}

// financial year ending 2026-12-31: kept until 2033-12-31

A second check keeps the stored file honest. The php.net manual lists hash() with a string result and sha256 among the algorithms, so a stored hash lets a later reader confirm that an archived e-invoice is byte for byte what was received.

$bytes = file_get_contents($receivedPath);
$row = [
    'sha256'       => hash('sha256', $bytes),
    'received_at'  => (new DateTimeImmutable())->format('c'),
    'retain_until' => retainUntil($financialYearEnd)->format('Y-m-d'),
];

The sentence about equipment matters for software. The BFN guidance accepts a delay when old technology has to be reinstalled. That only helps if the old application can be reinstalled at all, so an archived record that only a discontinued application can render is a risk to weigh with your accountant. Keep the code, the dependency lockfile and the PHP version of each release in the archive.

#Can the server stand outside Sweden?

7 kap. 3 a § lets a company keep electronic records, and the equipment and systems to present them, in another EU country when three conditions are met. The location and any change of it are reported to Skatteverket. On request the company gives immediate electronic access for control during the retention period. And the company can produce a paper print-out of the records in Sweden. The provision also reaches certain countries outside the EU that have comparable mutual-assistance instruments. 7 kap. 4 § lets Skatteverket permit other solutions for special reasons, with conditions and a time limit. Companies under the supervision of Finansinspektionen deal with that authority instead.

For a PHP project the practical consequence is that hosting country, backup country and any export target belong in the system documentation. A move of the database to another region is a notification question, not only an infrastructure change.

#What do backups and the archive plan have to cover?

The BFN guidance applies the requirement of secure storage to electronic records. Point 8.2 says electronic accounting information is backed up, with the frequency judged by the company’s circumstances, and the backup is kept apart from the copied information. The commentary gives a range: a company with many business events may need a daily backup, a very small one may manage monthly. A company that has agreed with a software supplier or accountant that the other party runs the backups has to make sure the schedule fits the company. The quality of the storage medium counts too.

Point 8.3 asks for an archive plan where needed to overview the archived information: what is archived and where. If it exists, it forms part of the system documentation (point 9.2 d). For a PHP application that is one short document listing the database, the file store for invoices and received documents, the backup target and the retention date per record type.

#What are system documentation and processing history?

5 kap. 11 § requires the company to document the organisation and structure of the bookkeeping system and its processing history, so that entries can be followed. The BFN guidance fills this in:

  • The system documentation contains the chart of accounts, a description of how accounts are used and compiled, a collection plan (samlingsplan) and the archive plan (point 9.2).
  • The processing history shows the bookkeeping entries added to the system and, in computer systems, the registration date. It also describes changes in the system that affect how entries are processed, and when they were introduced (point 9.16).
  • Examples of such changes in the commentary: new program versions or subsystems, changes in fixed register data such as the percentage for automatic VAT posting, and new accounts. Changes to a customer register that do not affect processing are outside the requirement.

For a custom PHP system this is a release log with a business reading. A deployment that changes how a tax rate is applied is an entry. A deployment that changes the colour of a button is not.

#What counts as accounting information in a PHP system?

1 kap. 2 § defines räkenskapsinformation to include the balance sheet, the ledgers, verifications and system documentation, agreements and other documents of special importance for the finances, and other information needed to follow and understand how individual entries were treated. The BFN commentary lists instructions on accounting principles, access instructions, encryption keys, bank statements and EDI agreements as examples. Encryption keys therefore belong to the archive, and where records are encrypted, point 7.8 allows it only for security reasons and only if the information can be presented immediately in clear text.

#Checklist for a Swedish PHP order or invoice system

  • Corrections are new rows with user and time, and the original row stays.
  • The issued invoice file is stored as issued, and a received e-invoice is stored as received.
  • A documented print-out path exists and has been run on an old archive record.
  • A retention date based on the financial year is stored with each record.
  • The hosting country, the backup target and the backup copy kept apart are written down.
  • The system documentation lists chart of accounts, archive plan and release log.
  • Encryption keys for stored records are archived and documented.

#How does a project run?

  1. You send the stack, the hosting country, the accounting system your PHP application feeds and how invoices leave the system today.
  2. I answer in writing with the scope, my assumptions and the questions for your accountant.
  3. A staging copy carries the build, and you test issuing, correcting and archiving with sample orders.
  4. The release to production follows your written approval. What I build in general is described on the PHP developer page.

#Tell me about your Gothenburg invoicing setup

If a Gothenburg company runs orders or invoices through custom PHP, send the stack, the hosting country and the accounting tool at the end of the chain through the contact form. The opening estimate for an invoicing or archive project comes in writing at no charge. How the Bookkeeping Act applies to your company is for you and your accountant to decide.

See also in Sweden

Need this service: PHP developer in Gothenburg?

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