use-php-symbol 0.0.1

PHP symbol metadata primitives for RustUse.
Documentation
  • Coverage
  • 18.92%
    7 out of 37 items documented1 out of 17 items with examples
  • Size
  • Source code size: 9.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 729.92 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-symbol

PHP symbol metadata primitives for RustUse.

Experimental

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

Example

use use_php_symbol::{PhpSymbol, SymbolKind, SymbolName};

let symbol = PhpSymbol::new(SymbolKind::Class, SymbolName::new("ExampleController")?);

assert_eq!(symbol.kind(), SymbolKind::Class);
assert_eq!(symbol.name().as_str(), "ExampleController");
# Ok::<(), use_php_symbol::PhpSymbolError>(())

Scope

  • Class, interface, trait, enum, function, constant, method, property, and parameter symbol metadata.
  • Lightweight name validation helpers.

Non-goals

  • Symbol tables, name resolution, reflection, autoloading, or static analysis engines.

License

Licensed under either Apache-2.0 or MIT.