PHP
PHP, Laravel, data structures, and practical notes from building open-source software.
15 articles · most recent first
-
OpenID4VCI Proof-of-Concept Implementation in SimpleSAMLphp
As part of the GEANT Trust & Identity Incubator project, I had the opportunity to implement and demonstrate proof-of-concept functionalities for the emerging OpenID for Verifiable Credential Issuance…
-
Implementing OpenID Federation Specification in SimpleSAMLphp: GEANT T&I Incubator
As part of my participation in the GEANT Trust and Identity Incubator project, I had the opportunity to implement the OpenID Federation specification in SimpleSAMLphp. This project involved…
-
SimpleSAMLphp Personal Profile Page
In 2022. and 2023, I’ve participated in a GÉANT Trust & Identity Incubator project for creating a “Personal Profile Page” in Shibboleth and SimpleSAMLphp software. I’ve worked on…
-
OpenID Connect OP Support in SimpleSAMLphp
In 2021. I’ve participated in a GÉANT Trust & Identity Incubator project for adding OpenID Connect OP support in SimpleSAMLphp software together with Sergio Gomes and Patrick Radtke.…
-
Docker image with PHP 8 and Xdebug 3
Update (1 November 2026): This article documents a PHP 8.0 / Xdebug 3 development setup from 2020. PHP 8.0 reached end of life on 26 November 2023. For…
-
My Laravel Upgrade Flow
Update (1 November 2026): This 2020 walkthrough covers an upgrade from Laravel 5.5 to Laravel 7. Laravel 7’s security support ended on 3 March 2021. For a current…
-
Dynamic Array Data Structure in PHP
When talking about array data structure in general (not in PHP), we know that arrays
-
Fixed Array Data Structure in PHP
When talking about Array as a data structure in general (not in PHP), we know that arrays:
-
Round a decimal number using Modulo operator
If you ever need to round a number, you can easily do that by using a Modulo operator. Modulo operator returns a remainder after division of one number…
-
Provjera ispravnosti OIBa u PHP-u
U nastavku slijedi funkcija koja provjerava format i kontrolnu znamenku OIB-a po normi ISO 7064 (MOD 11, 10). Opis postupka dostupan je u Prilogu 2, točki 3.2. Naputka…
-
AAI@EduHr plugin for WordPress
I have written a WordPress plugin called WP AAI@EduHr Auth, which can be used to replace standard WordPress authentication mechanism with AAI@EduHr authentication.
-
Generate random string in PHP
If you need to generate a random alpha-numeric string PHP, you can use this simple method:
-
Set the Authorization Bearer header in Guzzle HTTP client
When you need to fetch data from some API, you’ll often need to set the Authorization header in your HTTP client.
-
jQuery X-CSRF-TOKEN header in Laravel 5.4
In Laravel 5.4, we already have HTTP client configured out-of-the-box, that we can use in frontend. It is axios. In file resources\assets\js\bootstrap.js we can see the default headers…
-
PHP skripta za korištenje MAC Address Lookup API-a (XML verzija resursa)
U nastavku je mala PHP skripta za korištenje API-a koji omogućuje traženje proizvođača vezanog za pojedinu MAC adresu. Besplatan API koji koristim dostupan je na adresi: http://www.macvendorlookup.com/api. Prije…