承接 afragen/autoloader 相关项目开发

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

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

afragen/autoloader

最新稳定版本:3.0.1

Composer 安装命令:

composer require afragen/autoloader

包简介

PSR-4 style autoloader and classmap loader.

关键字:

README 文档

README

This repository contains a generic class autoloader that will load classes from a PSR-4 namespace root directory and an alternate directory/location for vendor or classmap of classes necessary for your plugin.

PRs welcome, especially for additional class aliases as you find needing them. Please refer to the readme in that folder for additional information on how to create these.

This is an alternative to composer's autoload creator.

$root = [ 'My_Namespace' => 'path/to/my-namespace' ];
$classmap = [
    'Extra_Class' => 'path/to/extra-class.php',
    'AnotherClass' => 'path/to/class-another.php',
];

require_once 'Autoloader.php';
new \Fragen\Autoloader( $root, $classmap );

Changelog

CHANGES.md

Credits

Built by Andy Fragen

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-10