1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! # codegraph-php
//!
//! PHP parser for CodeGraph - extracts code entities and relationships from PHP source files.
//!
//! ## Features
//!
//! - Parse PHP source files
//! - Extract functions, classes, interfaces, traits, and enums
//! - Track relationships (calls, imports, inheritance, implementations)
//! - Full integration with codegraph-parser-api
//!
//! ## Quick Start
//!
//! ```rust,no_run
//! use codegraph_php::PhpParser;
//! use codegraph_parser_api::CodeParser;
//! use codegraph::CodeGraph;
//! use std::path::Path;
//!
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let mut graph = CodeGraph::in_memory()?;
//! let parser = PhpParser::new();
//!
//! let file_info = parser.parse_file(Path::new("index.php"), &mut graph)?;
//! println!("Parsed {} functions", file_info.functions.len());
//! # Ok(())
//! # }
//! ```
// Re-export parser-api types for convenience
pub use ;
// Export the PHP parser implementation
pub use PhpParser;