An open API service indexing awesome lists of open source software.

https://github.com/jphenow/tomlrs-php

Rust extension to bring fast TOML parsing to PHP
https://github.com/jphenow/tomlrs-php

php rust toml

Last synced: 11 months ago
JSON representation

Rust extension to bring fast TOML parsing to PHP

Awesome Lists containing this project

README

          

# tomlrs-php

Use Rust to provide fast TOML parsing to PHP.

This is somewhat experimental at the moment, but happy to help anyone take it to the next stage.

This was written after leaving a company that used PHP and I had some performance issues in particular cases.
I will not be using PHP professionally for the foreseeable future, so if you'd like to take this project and turn it into a published library please do so.

## Building, extending PHP

```sh
$> cargo build --release
# in php.ini set extension=/path-to-project/target/debug/libtomlrs_php.dylib or:
$> php -dextension=path-to-project/target/release/libtomlrs_php.dylib
```

# PHP

```php