Registry / utility / zendframework-zend-code

zendframework-zend-code

JSON →
library3.4.1phppackagistunverified

Extensions to the PHP Reflection API, static code scanning, and code generation.

composer require zendframework/zend-code
INSTALL
IMPORT
SIG · ZENDFRAMEWORK-ZEND
Z
zendframework-zend-code
utilityphpv3.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ClassGenerator
use Zend\Code\Generator\ClassGenerator;

Generates a PHP class with a method.

use Zend\Code\Generator\ClassGenerator; $class = new ClassGenerator('MyClass'); $class->addMethod('myMethod'); echo $class->generate();
Debug
Known issues
breakingMigrated to laminas-code; zendframework packages are deprecated.
fix
Use laminas/laminas-code instead.
affects: >=3.4.1
Upgrade
Version history
3.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
22
Resources
zendframework-zend-code — pip install zendframework-zend-code · libregistry