How to convert JSON to XML in PHP with attributes, CDATA, and repeated elements

- Pubblicato in coding di
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

JSON to XML - v1.3.0 / v1.3.1

- Pubblicato in Projects di
Versione Italiana v.1.3.1 Versione di correzione dei bug per lo strumento da riga di comando. Correzioni bin/json-to-xml ora funziona quando il pacchetto è installato come dipendenza. A partire dalla [...] Leggi tutto

How to convert XML to JSON in PHP while preserving attributes

- Pubblicato in coding di
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

JSON to XML - v1.2.0

- Pubblicato in Projects di
Versione Italiana Aggiunto il supporto per l'associazione dei fogli di stile (setStylesheet/clearStylesheet) JsonToXmlConverter::setStylesheet() / clearStylesheet() aggiungono un'istruzione di [...] Leggi tutto

JSON to XML - v1.1.0

- Pubblicato in Projects di
Versione Italiana Nuovo Strumento CLI bin/json-to-xml per la conversione tra JSON e XML direttamente dalla shell. CliTest.php: suite di test che copre la CLI come vero e proprio [...] Leggi tutto

How to convert JSON to XML in PHP with attributes, CDATA, and repeated elements

- Pubblicato in coding di
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

How to convert JSON to XML in PHP

- Pubblicato in coding di
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

JSON to XML - v1.0.1

- Pubblicato in Projects di
v1.0.1 Fix leak file temporanei, test di integrità XXE/PSR-4/sanitizzazione Maggiori dettagli: Fix: tempFilename() per directory non scrivibili Correzioni test cross-platform Fix: eliminata una [...] Leggi tutto

JSON to XML - Piccola libreria in PHP

- Pubblicato in Projects di
Libreria PHP per convertire una stringa JSON in un documento XML valido (e viceversa), con supporto per attributi, CDATA automatico e mixed content. Requisiti PHP >= 8.1 estensioni dom e json [...] Leggi tutto

Another Project? YES!

- Pubblicato in coding di
"Hai iniziato un altro Progetto?" "Sì!" "Hai completato gli ultimi 35?" "No..." "...eh bravo...continua così..." [...] Leggi tutto
Pagina 1 di 2