Download the PHP package okapi/aop without Composer

On this page you can find all versions of the php package okapi/aop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aop

PHP AOP

License: MIT Twitter: @WalterWoshid PHP: >=8.1 Packagist Build

Coverage - PHP 8.1 Coverage - PHP 8.2

PHP AOP is a PHP library that provides a powerful Aspect Oriented Programming (AOP) implementation for PHP.

Installation

Usage

📖 List of contents

Terminology

Implicit Aspects

Click to expand ### Create a Kernel ### Create an Aspect ### Regular-expression patterns `class` and `method` accept either wildcard strings or explicit `Okapi\Wildcards\Regex` objects. Each argument can use a different pattern type: This matches controller methods whose names start with a letter, excluding constructors and other magic methods. Regex objects can also be used for `class`. The same arguments are supported by `Before`, `Around`, and `After`. Pass a complete PHP regular expression, including delimiters and any modifiers. Regex patterns are used as written: add `^` and `$` when you want to match the whole name. Plain strings always retain wildcard semantics, even if they look like `/regex/`. Invalid explicit regex patterns throw `InvalidArgumentException` when the advice attribute is instantiated, identifying the affected argument. ### Target Classes ### Initialize the Kernel ### Result

Class-Level Explicit Aspects

Click to expand Adding the custom Aspect to the Kernel is not required for class-level explicit aspects as they are registered automatically at runtime. ### Create an Aspect ### Target Classes ### Initialize the Kernel ### Result

Method-Level Explicit Aspects

Click to expand Adding the custom Aspect to the Kernel is not required for method-level explicit aspects as they are registered automatically at runtime. ### Create an Aspect ### Target Classes ### Initialize the Kernel ### Result

Features

Limitations

How it works

General workflow when a class is loaded

PHP-AOP builds on CodeTransformer's autoloader, stream filters, and cache. After kernel initialization, eligible classes follow this simplified flow:

Internal classes and excluded paths bypass this flow. Debug mode disables cache reuse; development checks freshness, while production trusts existing cache state.

For weaving, the original implementation is renamed to MyClass__AopProxied, and the generated MyClass extends that renamed implementation. Its intercepted methods delegate to the advice machinery; callers keep using the original name.

See How PHP-AOP works for the initialization, class-loading, and method-invocation diagrams, with links to the implementation.

Testing

Development quality checks: see Mago setup and commands.

For performance tests and the JIT configuration used by CI, see Performance testing.

Contributing

Show your support

Give a ⭐ if this project helped you!

🙏 Thanks

📝 License

Copyright © 2023 Valentin Wotschel.
This project is MIT licensed.


All versions of aop with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
nette/php-generator Version ^4.0
okapi/code-transformer Version 1.3.7
okapi/wildcards Version ^1.0
okapi/singleton Version ^1.0
php-di/php-di Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package okapi/aop contains the following files

Loading the files please wait ...