.. include:: /Includes.rst.txt .. _cgl-modeling-cross-cutting-concerns: .. _cgl-php-architecture: .. _cgl-best-practices: ================ PHP architecture ================ Writing excellent PHP code within the TYPO3 framework involves more than just correctly utilizing the framework's API: It also requires making sound decisions regarding general PHP architecture. This chapter addresses general PHP architectural considerations and best practices, with a focus on TYPO3. It covers both overarching principles of good PHP architecture relevant to TYPO3 Core developers and best practices specifically for extension developers. .. toctree:: :maxdepth: 1 :titlesonly: NamedArguments Services StaticMethods Traits WorkingWithExceptions Singletons Readonly