use-php-ini 0.0.1

PHP INI metadata primitives for RustUse.
Documentation
  • Coverage
  • 16.67%
    5 out of 30 items documented1 out of 18 items with examples
  • Size
  • Source code size: 9.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 726.42 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-php
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-php-ini

PHP INI metadata primitives for RustUse.

Experimental

use-php-ini is experimental while use-php remains below 0.3.0.

Example

use use_php_ini::{PhpIniDirective, PhpIniDirectiveName, PhpIniValue};

let directive = PhpIniDirective::new(
    PhpIniDirectiveName::new("memory_limit")?,
    PhpIniValue::String("128M".to_string()),
);

assert_eq!(directive.to_string(), "memory_limit = 128M");
# Ok::<(), use_php_ini::PhpIniError>(())

Scope

  • INI section names, directive names, scalar values, environment labels, and simple line parsing.

Non-goals

  • A complete INI parser, file merger, runtime configuration loader, or SAPI integration.

License

Licensed under either Apache-2.0 or MIT.