PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of ASCOOS CMS   converter-toml   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: converter-toml
Converts files of various formats to and from TOML
Author: By
Last change: Initial
Initial
Initial
Date: 1 month ago
Size: 1,605 bytes
 

Contents

Class file image Download

Converter TOML

AGL-F GitHub Downloads (all assets, all releases) GitHub Release GitHub Release Date GitHub repo size Ascoos Web Extended Studio - total lines Ascoos Web Extended Studio - source code lines Ascoos Web Extended Studio - files in repository

Descript

Converts files of various formats to and from TOML data or file using the Ascoos Framework.

Requires

Require version of Ascoos Framework >= 25.0.0.10992

Example Use

<?php
use ASCOOS\FRAMEWORK\Kernel\Arrays\TArrayHandler;

function convert_toml_to_json(string $filename): string
{
  $objArray = new TArrayHandler();
  $objArray->fromTOML($filename);
  $return = $objArray->toJSON();
  $objArray->Free($objArray);

  return $return;  
}

echo convert_toml_to_json('config.toml');
?>