PHP Reflect Book

Laurent Laville

Revision History
Revision 3.1.22015-09-28LL

Table of Contents

I. Getting Started
1. Download
2. Configuration
3. Structure
4. Execution
5. Summary
6. Next
II. User Guide
7. Installation
7.1. Requirements
7.2. Composer
7.3. PHAR
8. The Json Configuration File
8.1. section Source Providers
8.2. section Plugins
8.3. section Analysers
9. The Command-Line
9.1. Command-Line Options
10. Summary
III. Migration Guide v2
11. Containers
12. Properties
13. Summary
IV. Migration Guide v3
14. Collections
15. Summary
V. Developer Guide
16. API compared
16.1. Class Reflection
16.2. Constant Reflection
16.3. Function Reflection
16.4. Function Abstract Reflection
16.5. Method Reflection
16.6. Parameter Reflection
16.7. Property Reflection
17. API
17.1. Data Source Identification
18. Plugins
18.1. Events
18.2. Register Plugins
19. Cache Plugin
19.1. Register Plugin
19.2. Doctrine Adapter
19.3. File cache
19.4. SQLite3 cache
20. Log Plugin
20.1. Register Plugin
20.2. Default logger
20.3. Using your private logger
20.4. Using Monolog
21. Notifier Plugin
21.1. Register Plugin
22. Build your Analysers
22.1. Visitor pattern
22.2. Print results

List of Examples

11.1. With standard container
11.2. With a non standard container
11.3. Enumerate each user functions
12.1. Configure interface, class and method properties
12.2. Properties on demand
14.1. Exploit model collections to print methods of a user class
14.2. Print methods of a user class
18.1. Add a listener that will echo out files when they are parsed