Skip to content

Releases: a19836/php-code-lib

PHP Code Lib - v1

18 Dec 17:14

Choose a tag to compare

PHP Code Lib is a comprehensive library for analyzing, validating, executing, editing, beautifying, and obfuscating PHP code.
It is designed for advanced code introspection, automation, refactoring, security hardening, and developer tooling.

This library allows you to safely inspect and manipulate PHP source code at a structural level. You can extract classes, properties, methods, functions, namespaces, comments, and dependencies from files, folders, raw strings, or tokens. It also provides powerful utilities to validate syntax, execute code in controlled environments, beautify formatting, and obfuscate source code for distribution or protection.

The library allows you to:

  • Parse PHP code into structured components (classes, methods, properties, functions).
  • Extract namespaces, use statements, includes, and comments.
  • Edit PHP source code programmatically.
  • Validate PHP syntax safely with multiple strategies.
  • Execute PHP code securely with error control.
  • Beautify PHP code for readability.
  • Obfuscate PHP code to protect intellectual property.
  • Work with PHP embedded in HTML.
  • Operate on single files, folders, or recursive directory structures.

This library provides a powerful foundation for building advanced PHP developer tools, code automation platforms, and secure execution environments.