承接 obf/classloader 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

obf/classloader

最新稳定版本:v1.0.8

Composer 安装命令:

composer require obf/classloader

包简介

The Opsbears Framework Classloader Component

关键字:

README 文档

README

Build Status Coverage Status Dependency Status Latest Stable Version License

This is the base component of the Opsbears Framework, which loads classes. It builds upon the SPL autoload facility and can be connected to the composer autoloader.

It has been built to facilitate better error messages in case of autoloading errors, as well as some additional features, such as iClassLoadListener, which is the OBF counterpart of Java static constructors.

Documentation

The API documentation is available at opsbears.github.io/obf-classloader.

Requirements

Since the OBF classloader uses namespaces, the minimum required PHP version is 5.3.0, but it contains support for traits as well. It also requires the PCRE extension to work. For other OBF components, however, 5.4.0 is the minimum required version because they actively use traits.

Usage

Composer

If you are using composer, you can pull in the classloader as a dependency doing this:

composer require obf/classloader

Manual loading

If you are using some other dependency manager, use the src directory as a root for OBF\Classloader like this:

require_once('/path/to/obf/classloader/src/ClassLoader.php');

//Add own path
ClassLoader::addClassPath('/path/to/obf/classloader/src', 'OBF\\ClassLoader');

//Register az SPL autoloader
ClassLoader::register();

This will enable the classloader.

统计信息

  • 总下载量: 4.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-10