Converting a flat JSON object like {"nome": "Mario", "eta": 34} to XML is a five-line recursive function — we covered that ground in the first article of this series. The moment real data shows up, [...] Leggi tutto
Una precisazione importante Questo sistema non significa che una persona abbia installato la libreria. Il contatore di Packagist misura i download e non identifica il singolo utilizzatore. Inoltre un [...] Leggi tutto
The other direction of the same problem: you're consuming an XML API — a legacy SOAP service, a supplier feed, a government data source — and you want to work with it as normal PHP data, or hand it [...] Leggi tutto
Converting a flat JSON object like {"nome": "Mario", "eta": 34} to XML is a five-line recursive function — we covered that ground in the first article of this series. The moment real data shows up, [...] Leggi tutto
If you've ended up here, you probably already know why you need this: some API, some legacy SOAP endpoint, or some client integration only speaks XML, while everything in your PHP app — your database [...] Leggi tutto
Codice base con parsing di file .ics <?php function icsParse($icsUrl = "")
{ if (!empty($icsUrl)) { $icsContent = file_get_contents($icsUrl); if (!$icsContent) { die("Impossibile leggere il [...] Leggi tutto
Rimuovere la condivisione di un elemento public function removeShareFileFolder(array $params = []) { if (empty($params["fileFolder"]) OR empty($params["mailDest"])) { return false; } $esito = false; [...] Leggi tutto
Calcola il primo giorno lavorativo utile dopo una data di scadenza, considerando weekend, festività nazionali italiane, Santi Patroni e festività locali. <?php
function getPayDay($dateCheck, [...] Leggi tutto
Creare una cartella in Google Drive public function createFolderInDrive(array $params = []) { if (empty($params["folderParent"]) && empty($params["folderName"])) { return false; } try { [...] Leggi tutto