Download the PHP package hehex/hehep-hcontainer without Composer

On this page you can find all versions of the php package hehex/hehep-hcontainer. 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 hehep-hcontainer

hehep-hcontainer

介绍

安装

Bean组件

常规定义Bean

注解定义bean

注册Bean

实例化Bean

Bean作用域

依赖注入

构造函数注入

属性赋值注入

属性注入Bean

Bean代理

延迟注入

扫描,注解处理器

扫描规则

注解处理器

AOP方法拦截

默认通知点位置

通知点位置 说明
before 业务行为会在调用目标方法之前执行
after 业务行为会在调用目标方法之后执行,如目标方法发生异常,则不会执行
around 业务行为会在调用目标方法之前与之后执行(即一前一后执行两次),如目标方法发生异常,则不会执行之后的方法
afterThrowing 调用目标方法时发生异常,则会执行此通知点的业务行为
afterReturning 调用目标方法后,无论是否发生异常,都会执行此通知点的业务行为,相当于异常的finally

定义"业务行为"

定义目标类

注解

定义注解处理器

定义注解器

PHP原生注解

未定义注解处理器

默认注解器列表

注解器 说明 格式
hehe\core\hcontainer\annotation\Bean 标识此类为bean对象 @Bean("user"),@Bean(id="user"),@Bean("user",_onProxy=>true)
hehe\core\hcontainer\annotation\Proxy 标识此类启用了代理,同时会生成代理对象,一般用于切面 @Proxy()
hehe\core\hcontainer\annotation\Ref 标识类属性为bean对象 @Ref("user"),@Ref("user",lazy=true)
hehe\core\hcontainer\aop\annotation\After aop切面注解器,用于在执行目标方法之后切入“业务行为” @After("业务行为类路径"),@After("业务行为类路径@方法"),@After("业务行为类路径@@静态方法")
hehe\core\hcontainer\aop\annotation\Before aop切面注解器,用于在执行目标方法之前切入“业务行为” 与@After格式一致
hehe\core\hcontainer\aop\annotation\Around aop切面注解器,用于在执行目标方法之前与之后切入“业务行为” 与@After格式一致
hehe\core\hcontainer\aop\annotation\AfterThrowing aop切面注解器,用于在执行目标方法时发生异常时切入“业务行为” 与@After格式一致
hehe\core\hcontainer\aop\annotation\AfterReturning aop切面注解器,用于在执行目标方法之后,无论是否发生异常,都会切入“业务行为”,类似异常的finally 与@After格式一致

All versions of hehep-hcontainer with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
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 hehex/hehep-hcontainer contains the following files

Loading the files please wait ....