Transparent PHP AOP PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name:
  • Last update:
  • Platform: Windows / Linux / BSD
  • Language: PHP
  • Price:Free for non-commerc
  • Company: Guilherme Blanco (View more)

Transparent PHP AOP script description:




Publisher review:
Transparent PHP AOP can be used to implement Aspect Oriented Programming (AOP) in PHP in a transparent way. This package can be used to implement Aspect Oriented Programming (AOP) in PHP in a transparent way. This means that you can add or remove aspects to a class without changing its code.The class provides an alternative for the PHP require() function that includes a PHP class and transparently modifies it to insert aspect advice code in the pointcuts defined in the class code that is going to have new orthogonal aspects added.Also, it can automatically include advice code in automatic pointcuts, like at the begin and end of each method.The pointcuts are marked in the class modify as simple PHP comments, so the class behavior is not affect when AOP support is not being used.The automatic pointcuts do not need to be marked. This approach follows exactly the AOP theory, without need to touch a single line of 3rd-party code, for example.The class is compiled and a new class file is generated with the code of the new aspects. The compiled class version is cached to avoid the recompilation overhead next time the same class is include using the same aspects.The technique checks for changes in one of each XML file, or in original class file or even if new XML files were added/removed.The aspects are defined in a separate XML file that includes the definition of the PHP advice code and the pointcuts where the code should inserted.Optionally, the advice code can be compacted into a single line before it is inserted in the pointcuts, so the original class line numbers are preserved.Another interesting option is to define the compiled files directory.This package requires PHP 4.3.0 as it uses the PHP tokenizer extension. It does not use any external PHP extension.
Transparent PHP AOP is a PHP script for PHP Classes scripts design by Guilherme Blanco. It runs on following operating system: Windows / Linux / BSD.

Operating system:
Windows / Linux / BSD

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5