承接 xenokore/component-loader 相关项目开发

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

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

xenokore/component-loader

Composer 安装命令:

composer require xenokore/component-loader

包简介

Component loader for the Xeno framework

README 文档

README

A library that helps with loading Xeno compatible components. Libraries that are compatible will be able to easily expose autowire definitions for a DI container, expose Twig templates, etc...

Installation

composer require xenokore/component-loader

Usage

$component_loader = new Xenokore\ComponentLoader\Loader('/vendor');

// When using PHP-DI
$builder = new DI\ContainerBuilder();
$builder->useAnnotations(true);
$builder->useAutowiring(true);

$builder->addDefinitions(
    $component_loader->getContainerDefinitions()
);

Creating a component

  1. Create a /component directory in the root of your component library
  2. Add your DI container definitions in /component/container.php
  3. Require your component using composer in a project or framework that uses the Xeno Component Loader
  4. Your definitions will be automatically added to the main DI container

Status

Currently only container definitions are supported. Twig templates still have to be added. And there will most likely be more features than this.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固