Download the PHP package devium/toml without Composer

On this page you can find all versions of the php package devium/toml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package toml

Stand With Ukraine 🇺🇦

Stand With Ukraine

Devium/Toml

Tests status Latest Version Downloads License

A robust and efficient PHP library for encoding and decoding TOML compatible with v1.0.0

This library tries to support the TOML specification as much as possible.

Overview

This library provides a comprehensive solution for working with TOML in PHP applications

Features

Installation

You can install this library via composer:

Usage

Decoding:

Encoding:

About TOML datetime formats

This library tries to parse TOML datetime formats into next variants (according to the specification):

Example:

If you use

TOML will be parsed into array

Each class implements Stringable interface.

TomlLocal* classes are marked with TomlDateTimeInterface for usability. Each class has public properties.

There is TomlDateTime class to support TOML offset date time format also.

Of course any DateTimeInterface or TomlDateTimeInterface are encoded into TOML datetime string. So

will be encoded into

About informative errors

If there is parsing error, TomlError has the approximate location of the problem in the message. Something like:

Else it has message about whole input.

About floating-point values

The decoder returns each floating-point value as a string by default.

You can force it to return a float type by setting the $asFloat argument:

About NULL

TOML does not support null values.

If the array contains a null value, an exception will be thrown.

The only thing possible is a null value for the keys in the tables. Such keys are simply skipped during encoding.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request

License

devium/toml is open-sourced software licensed under the MIT license.

Vano Devium


Made with ❤️ in Ukraine


All versions of toml with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
php-ds/php-ds Version ^1.5
symfony/polyfill-mbstring Version ^1.30
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devium/toml contains the following files

Loading the files please wait ....