How to display the current and parent category in WordPress
Need to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
A PHP system that records when staff start and stop work used to be an internal tool. For many Greek employers it is now a reporting channel to the Ministry of Labour. I am Mariusz Szatkowski. I build PHP systems from Gdynia and keep every agreement in writing. This page is about one angle that matters for custom PHP in Athens: the digital work card (ψηφιακή κάρτα εργασίας) and what the ministry publishes about it. The shop owner or HR lead decides the legal position. I am not a lawyer, and I build what the written requirements ask for.

View of the Acropolis at first light, taken by Andrew Parlette and published under CC BY 4.0 on Wikimedia Commons.
The Ministry of Labour and Social Security describes the digital work card as a measure introduced by Law 4808/2021 on the protection of labour. Through it, the upgraded ERGANI II system learns the working hours of employees in real time and classifies each hour automatically as regular time, overwork, overtime or rearranged working time. It also records breaks, days off and leave. The ministry page is on ypergasias.gov.gr.
The ministry’s dedicated site, psifiakikarta.gov.gr, explains the split of roles. The employee holds a personal card as a QR code in the free myErgani app and signs in with Taxisnet codes. The employer must provide a time-measurement system, and the ministry offers the free Ergani CardScanner app for that purpose. Employees “swipe” at arrival and departure, and the events end up in ERGANI.
For a PHP team the interesting part is the third path. A company may connect its own time-measurement system to ERGANI II. That is where a custom application comes in.
Coverage is set by sector, through the employer’s main activity code (ΚΑΔ). The ministry FAQ lists banks, large supermarkets, insurers, security companies, utilities, industry, retail, tourism and food service, energy, wholesale, vehicle repair and financial services. Tourism and food service were added by a ministerial decision of 11 September 2024, and a further group by one of 25 June 2025, according to the same page.
The 2026 expansion matters most for software built this year. The ministry states that full application started on 12 October 2026 for human health activities (hospitals, treatment and diagnostic centres, doctors excluded), employment support, telecoms, hairdressers, beauty centres, dry cleaners, and building and outdoor services, mainly cleaning. A second phase starts on 16 November 2026 for consultancy, advertising and other office activities, repairs, warehousing and logistics support, water and waste management, and gambling. The ministry counts about 2.5 million protected workers in total.
The summary guide, updated on 23 September 2026, adds three rules a developer should know:
Which activity code a business has, and whether a secondary activity pulls it in, is a legal question. The guide has chapters on the main-code rule and on multiple activities in one place. Read them with your adviser before you scope software.
The ministry splits the employer side into two stages, on the employer page.
The ministry says a company can connect its own time-measurement system directly to the card mechanism in ERGANI, or use the CardScanner app, which reads the QR code and submits the event automatically. Submitted card events are available to the employer in the ERGANI web portal at eservices.yeka.gr.
That portal’s login page lists documents: a short guide dated 13 February 2026, an extended manual, a guide for the trial application and a “guide for the use of interoperabilities”. The interoperability guide is the document that should define message formats for a PHP integration. I have not reproduced it here, and a build should start from its current version, not from this page.
The guide is explicit. The declaration of a start or end event must be submitted with a maximum delay of 15 minutes. The window applies to whichever channel the employer chose: filling in the form, importing XML, submitting through an API or using the CardScanner app. The obligation to transmit the swipes lies with the employer, not the employee.
For software this is a service-level requirement, and it shapes the architecture:
A minimal value object for the deadline:
<?php
declare(strict_types=1);
final class SwipeEvent
{
public function __construct(
public readonly string $employeeId,
public readonly string $type, // 'start' or 'end'
public readonly DateTimeImmutable $happenedAt,
) {}
public function submitBy(): DateTimeImmutable
{
return $this->happenedAt->add(new DateInterval('PT15M'));
}
public function isOverdue(DateTimeImmutable $now): bool
{
return $now > $this->submitBy();
}
}A worker that reads unsent events ordered by submitBy() and pages someone when the oldest event is within a few minutes of its limit is more useful than a worker that only retries.
The guide also names a duty to notify the Labour Inspectorate immediately when force majeure or an objective impossibility, not caused by the employer, blocks the time-measurement system or its transmission to ERGANI, and again when it ends. A system that knows it is failing can write that incident log for the employer.
The guide lists the sanctions from ministerial decision 80016/2022. I quote amounts as printed there and I do not interpret when they apply.
There are also general breaches fined regardless of headcount: not having a working real-time system, and not notifying the inspectorate of an outage.
None of this tells a developer what a fine “would be” in a given case. It tells a developer which defects the authority treats as breaches. Missing events, events with the wrong time, a card that was never activated and records that were deleted too early are the same defects a test suite can catch.
From the ministry text I derive these design rules. They are engineering choices, not legal advice.
Keep raw events append-only. One table holds employee, event type, the timestamp from the device, the timestamp the server received it, the channel and the submission status. Corrections are new rows that point to the old one. The five-year duty and the inspectors’ interest in deviations both argue against editing history.
Separate the declared schedule from the swipes. The guide expects an initial declared schedule, at week or month level, and compares swipes against it. A swipe before a declared start is not automatically the same as a swipe within a declared flexible window. The guide says flexible arrival must be declared per employee in ERGANI. Its example: with a declared 09:00 to 17:00 schedule and 60 minutes of flexibility, arriving at 9:53 and leaving at 17:53 is not a change of schedule. A 30-minute flexibility does not allow a swipe at 8:30 instead of 9:00. Model the window as data, per employee, and test the boundaries.
Count single swipes per month. The guide accepts up to three single swipes per month per employee, citing ministerial decision 44485/2024. In that case the inspectorate issues a recommendation, not a fine. A monthly report of employees with unmatched start or end events lets HR fix gaps before an inspection. The tolerance is the inspectorate’s choice, not a feature to design around.
Handle work outside the premises. For staff who work outside the employer’s buildings by the nature of the job, the guide says the declared daily schedule is presumed and a missing swipe on those days is justified. The duty to swipe remains when they work inside the premises. A person who is on the road on Monday and in the office on Tuesday needs a per-day location flag, not a per-employee one.
Do not guess the payload. Field names, authentication and error codes belong to the ministry’s interoperability documentation. Wrap the transport in one class behind an interface, so that a change in the specification touches one file and the contract tests stay.
The ministry decision cited in the guide requires time-measurement data to be kept for at least five years. Plan for that in three places.
The ministry site ergani.gov.gr did not answer when I tried it on 4 December 2026. Everything above comes from the ministry pages named in the sources.
I work remotely from Gdynia, one hour behind Athens. Agreements live in email threads and shared documents, so the event flow is written down before it is built. At handover you keep the repository, the component library and the runbooks.
If your Athens company runs PHP time-tracking or shift software that has to meet the card deadline, send the current system description through the contact page. The first written estimate is free and starts from how your events flow today. The general PHP scope is on the PHP developer page.
Examples of my work.
Jobsin.co is a modern job board focused on posting job offers for qualified specialists in the fields of construction, mechanics, and engineering worldwide.
The event application project dedicated to the 15th Broadband Technology Conference is a WordPress-based event site with editable content and event-management features for conference participants.
Effective e-Publishing is an innovative project focused on digital content creation, import, publishing, and distribution. This platform is designed for effe...
Describe your project by e-mail. I reply within 24 hours.
Describe your projectNeed to show the category hierarchy in your theme? Learn how to get the current category and its parent using get_the_category() and get_category_parents().
Need to get the URL of the first image or link in an article? Prefer DOMDocument over regex. Ready-made WordPress PHP for developers.
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.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Stores, checkout flow, and sales logic.
Stability, updates, and post-launch support.
What the monthly care fee covers and what changes it.
Business process automation around WordPress and company systems.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.

How to start as a WordPress developer in 2026. Local environment, theme and plugin development, REST API and headless paths, security and Core Web Vitals. A practitioner playbook that does not waste your first month.

WordPress 7.0 with AI Client against Astro 7 with the Rust compiler and Vite 8. Speed, cost, SEO and security compared, plus the real bill for my own Astro 6 to 7 migration.

A detailed comparison table of EmDash CMS and WordPress across architecture, security, plugins, AI features, content model, hosting, and ecosystem maturity.