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
- Host: GitHub
- URL: https://github.com/jphenow/tomlrs-php
- Owner: jphenow
- License: mit
- Created: 2022-03-16T15:24:46.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-29T18:16:59.000Z (over 4 years ago)
- Last Synced: 2025-04-07T18:52:14.659Z (over 1 year ago)
- Topics: php, rust, toml
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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